pub type R = crate::R<PERIPH_ID_3rs>;
pub type CUST_MOD_NUM_R = crate::FieldReader;
pub type REV_AND_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn cust_mod_num(&self) -> CUST_MOD_NUM_R {
CUST_MOD_NUM_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn rev_and(&self) -> REV_AND_R {
REV_AND_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("PERIPH_ID_3")
.field("cust_mod_num", &self.cust_mod_num())
.field("rev_and", &self.rev_and())
.finish()
}
}
pub struct PERIPH_ID_3rs;
impl crate::RegisterSpec for PERIPH_ID_3rs {
type Ux = u32;
}
impl crate::Readable for PERIPH_ID_3rs {}
impl crate::Resettable for PERIPH_ID_3rs {
const RESET_VALUE: u32 = 0x04;
}