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