pub type R = crate::R<PERIPH_ID_0rs>;
pub type PARTNUM_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn partnum(&self) -> PARTNUM_R {
PARTNUM_R::new((self.bits & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PERIPH_ID_0").field("partnum", &self.partnum()).finish()
}
}
pub struct PERIPH_ID_0rs;
impl crate::RegisterSpec for PERIPH_ID_0rs {
type Ux = u32;
}
impl crate::Readable for PERIPH_ID_0rs {}
impl crate::Resettable for PERIPH_ID_0rs {
const RESET_VALUE: u32 = 0x04;
}