pub type R = crate::R<WKUPCRrs>;
pub type W = crate::W<WKUPCRrs>;
pub type WKUPC_R = crate::FieldReader;
pub type WKUPC_W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
impl R {
#[inline(always)]
pub fn wkupc(&self) -> WKUPC_R {
WKUPC_R::new((self.bits & 0x3f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WKUPCR").field("wkupc", &self.wkupc()).finish()
}
}
impl W {
#[inline(always)]
pub fn wkupc(&mut self) -> WKUPC_W<WKUPCRrs> {
WKUPC_W::new(self, 0)
}
}
pub struct WKUPCRrs;
impl crate::RegisterSpec for WKUPCRrs {
type Ux = u32;
}
impl crate::Readable for WKUPCRrs {}
impl crate::Writable for WKUPCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for WKUPCRrs {}