pub type R = crate::R<DIEPTXFrs>;
pub type W = crate::W<DIEPTXFrs>;
pub type INEPTXSA_R = crate::FieldReader<u16>;
pub type INEPTXSA_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
pub type INEPTXFD_R = crate::FieldReader<u16>;
pub type INEPTXFD_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn ineptxsa(&self) -> INEPTXSA_R {
INEPTXSA_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn ineptxfd(&self) -> INEPTXFD_R {
INEPTXFD_R::new(((self.bits >> 16) & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DIEPTXF")
.field("ineptxsa", &self.ineptxsa())
.field("ineptxfd", &self.ineptxfd())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ineptxsa(&mut self) -> INEPTXSA_W<DIEPTXFrs> {
INEPTXSA_W::new(self, 0)
}
#[inline(always)]
pub fn ineptxfd(&mut self) -> INEPTXFD_W<DIEPTXFrs> {
INEPTXFD_W::new(self, 16)
}
}
pub struct DIEPTXFrs;
impl crate::RegisterSpec for DIEPTXFrs {
type Ux = u32;
}
impl crate::Readable for DIEPTXFrs {}
impl crate::Writable for DIEPTXFrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DIEPTXFrs {
const RESET_VALUE: u32 = 0x0200_0400;
}