pub type R = crate::R<PIDR1rs>;
pub type PARTNUM_R = crate::FieldReader;
pub type JEP106ID_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn partnum(&self) -> PARTNUM_R {
PARTNUM_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn jep106id(&self) -> JEP106ID_R {
JEP106ID_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("PIDR1")
.field("partnum", &self.partnum())
.field("jep106id", &self.jep106id())
.finish()
}
}
pub struct PIDR1rs;
impl crate::RegisterSpec for PIDR1rs {
type Ux = u32;
}
impl crate::Readable for PIDR1rs {}
impl crate::Resettable for PIDR1rs {}