pub type R = crate::R<DIEPTXF0rs>;
pub type W = crate::W<DIEPTXF0rs>;
pub type TX0FSA_R = crate::FieldReader<u16>;
pub type TX0FSA_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
pub type TX0FD_R = crate::FieldReader<u16>;
pub type TX0FD_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn tx0fsa(&self) -> TX0FSA_R {
TX0FSA_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn tx0fd(&self) -> TX0FD_R {
TX0FD_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("DIEPTXF0")
.field("tx0fsa", &self.tx0fsa())
.field("tx0fd", &self.tx0fd())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tx0fsa(&mut self) -> TX0FSA_W<DIEPTXF0rs> {
TX0FSA_W::new(self, 0)
}
#[inline(always)]
pub fn tx0fd(&mut self) -> TX0FD_W<DIEPTXF0rs> {
TX0FD_W::new(self, 16)
}
}
pub struct DIEPTXF0rs;
impl crate::RegisterSpec for DIEPTXF0rs {
type Ux = u32;
}
impl crate::Readable for DIEPTXF0rs {}
impl crate::Writable for DIEPTXF0rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DIEPTXF0rs {
const RESET_VALUE: u32 = 0x0200;
}