pub type R = crate::R<PERIPH_ID_4rs>;
pub type JEP106CON_R = crate::FieldReader;
pub type KCOUNT4_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn jep106con(&self) -> JEP106CON_R {
JEP106CON_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn kcount4(&self) -> KCOUNT4_R {
KCOUNT4_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_4")
.field("jep106con", &self.jep106con())
.field("kcount4", &self.kcount4())
.finish()
}
}
pub struct PERIPH_ID_4rs;
impl crate::RegisterSpec for PERIPH_ID_4rs {
type Ux = u32;
}
impl crate::Readable for PERIPH_ID_4rs {}
impl crate::Resettable for PERIPH_ID_4rs {
const RESET_VALUE: u32 = 0x04;
}