pub type R = crate::R<PERIPH_ID_2rs>;
pub type JEP106ID_R = crate::FieldReader;
pub type JEDEC_R = crate::BitReader;
pub type REVISION_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn jep106id(&self) -> JEP106ID_R {
JEP106ID_R::new((self.bits & 7) as u8)
}
#[inline(always)]
pub fn jedec(&self) -> JEDEC_R {
JEDEC_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn revision(&self) -> REVISION_R {
REVISION_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_2")
.field("jep106id", &self.jep106id())
.field("jedec", &self.jedec())
.field("revision", &self.revision())
.finish()
}
}
pub struct PERIPH_ID_2rs;
impl crate::RegisterSpec for PERIPH_ID_2rs {
type Ux = u32;
}
impl crate::Readable for PERIPH_ID_2rs {}
impl crate::Resettable for PERIPH_ID_2rs {
const RESET_VALUE: u32 = 0x04;
}