pub type R = crate::R<AFCC1Rrs>;
pub type W = crate::W<AFCC1Rrs>;
pub type FRAME_R = crate::FieldReader<u32>;
pub type FRAME_W<'a, REG> = crate::FieldWriter<'a, REG, 20, u32>;
impl R {
#[inline(always)]
pub fn frame(&self) -> FRAME_R {
FRAME_R::new(self.bits & 0x000f_ffff)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("AFCC1R").field("frame", &self.frame()).finish()
}
}
impl W {
#[inline(always)]
pub fn frame(&mut self) -> FRAME_W<AFCC1Rrs> {
FRAME_W::new(self, 0)
}
}
pub struct AFCC1Rrs;
impl crate::RegisterSpec for AFCC1Rrs {
type Ux = u32;
}
impl crate::Readable for AFCC1Rrs {}
impl crate::Writable for AFCC1Rrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for AFCC1Rrs {}