pub type R = crate::R<WKUPFRrs>;
pub type WKUPF1_R = crate::BitReader;
pub type WKUPF2_R = crate::BitReader;
pub type WKUPF3_R = crate::BitReader;
pub type WKUPF4_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn wkupf1(&self) -> WKUPF1_R {
WKUPF1_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn wkupf2(&self) -> WKUPF2_R {
WKUPF2_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn wkupf3(&self) -> WKUPF3_R {
WKUPF3_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn wkupf4(&self) -> WKUPF4_R {
WKUPF4_R::new(((self.bits >> 3) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WKUPFR")
.field("wkupf1", &self.wkupf1())
.field("wkupf2", &self.wkupf2())
.field("wkupf3", &self.wkupf3())
.field("wkupf4", &self.wkupf4())
.finish()
}
}
pub struct WKUPFRrs;
impl crate::RegisterSpec for WKUPFRrs {
type Ux = u32;
}
impl crate::Readable for WKUPFRrs {}
impl crate::Resettable for WKUPFRrs {}