pub type R = crate::R<HWCFGRrs>;
pub type SMBUS_R = crate::FieldReader;
pub type ASYN_R = crate::FieldReader;
pub type WKP_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn smbus(&self) -> SMBUS_R {
SMBUS_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn asyn(&self) -> ASYN_R {
ASYN_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[inline(always)]
pub fn wkp(&self) -> WKP_R {
WKP_R::new(((self.bits >> 8) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HWCFGR")
.field("smbus", &self.smbus())
.field("asyn", &self.asyn())
.field("wkp", &self.wkp())
.finish()
}
}
pub struct HWCFGRrs;
impl crate::RegisterSpec for HWCFGRrs {
type Ux = u32;
}
impl crate::Readable for HWCFGRrs {}
impl crate::Resettable for HWCFGRrs {
const RESET_VALUE: u32 = 0x0111;
}