pub type R = crate::R<HWCFRrs>;
pub type CFG1_R = crate::FieldReader;
pub type CFG2_R = crate::FieldReader;
pub type CFG3_R = crate::FieldReader;
pub type CFG4_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn cfg1(&self) -> CFG1_R {
CFG1_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn cfg2(&self) -> CFG2_R {
CFG2_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[inline(always)]
pub fn cfg3(&self) -> CFG3_R {
CFG3_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn cfg4(&self) -> CFG4_R {
CFG4_R::new(((self.bits >> 12) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HWCFR")
.field("cfg4", &self.cfg4())
.field("cfg3", &self.cfg3())
.field("cfg2", &self.cfg2())
.field("cfg1", &self.cfg1())
.finish()
}
}
pub struct HWCFRrs;
impl crate::RegisterSpec for HWCFRrs {
type Ux = u32;
}
impl crate::Readable for HWCFRrs {}
impl crate::Resettable for HWCFRrs {
const RESET_VALUE: u32 = 0x02;
}