pub type R = crate::R<HWCFGR10rs>;
pub type AHB_IOP_R = crate::FieldReader;
pub type AF_SIZE_R = crate::FieldReader;
pub type SPEED_CFG_R = crate::FieldReader;
pub type LOCK_CFG_R = crate::FieldReader;
pub type SEC_CFG_R = crate::FieldReader;
pub type OR_CFG_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn ahb_iop(&self) -> AHB_IOP_R {
AHB_IOP_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn af_size(&self) -> AF_SIZE_R {
AF_SIZE_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[inline(always)]
pub fn speed_cfg(&self) -> SPEED_CFG_R {
SPEED_CFG_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn lock_cfg(&self) -> LOCK_CFG_R {
LOCK_CFG_R::new(((self.bits >> 12) & 0x0f) as u8)
}
#[inline(always)]
pub fn sec_cfg(&self) -> SEC_CFG_R {
SEC_CFG_R::new(((self.bits >> 16) & 0x0f) as u8)
}
#[inline(always)]
pub fn or_cfg(&self) -> OR_CFG_R {
OR_CFG_R::new(((self.bits >> 20) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HWCFGR10")
.field("ahb_iop", &self.ahb_iop())
.field("af_size", &self.af_size())
.field("speed_cfg", &self.speed_cfg())
.field("lock_cfg", &self.lock_cfg())
.field("sec_cfg", &self.sec_cfg())
.field("or_cfg", &self.or_cfg())
.finish()
}
}
pub struct HWCFGR10rs;
impl crate::RegisterSpec for HWCFGR10rs {
type Ux = u32;
}
impl crate::Readable for HWCFGR10rs {}
impl crate::Resettable for HWCFGR10rs {
const RESET_VALUE: u32 = 0x0001_1240;
}