pub type R = crate::R<CIDR1rs>;
pub type PREAMBLE_R = crate::FieldReader;
pub type CLASS_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn preamble(&self) -> PREAMBLE_R {
PREAMBLE_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn class(&self) -> CLASS_R {
CLASS_R::new(((self.bits >> 4) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CIDR1")
.field("preamble", &self.preamble())
.field("class", &self.class())
.finish()
}
}
pub struct CIDR1rs;
impl crate::RegisterSpec for CIDR1rs {
type Ux = u32;
}
impl crate::Readable for CIDR1rs {}
impl crate::Resettable for CIDR1rs {
const RESET_VALUE: u32 = 0xf0;
}