pub type R = crate::R<STARTFRAMErs>;
pub type W = crate::W<STARTFRAMErs>;
pub type StartframeR = crate::FieldReader<u16>;
pub type StartframeW<'a, REG> = crate::FieldWriter<'a, REG, 9, u16>;
impl R {
#[inline(always)]
pub fn startframe(&self) -> StartframeR {
StartframeR::new((self.bits & 0x01ff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("STARTFRAME")
.field("startframe", &self.startframe())
.finish()
}
}
impl W {
#[inline(always)]
pub fn startframe(&mut self) -> StartframeW<'_, STARTFRAMErs> {
StartframeW::new(self, 0)
}
}
pub struct STARTFRAMErs;
impl crate::RegisterSpec for STARTFRAMErs {
type Ux = u32;
}
impl crate::Readable for STARTFRAMErs {}
impl crate::Writable for STARTFRAMErs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for STARTFRAMErs {}