pub type R = crate::R<WKUPCRrs>;
pub type W = crate::W<WKUPCRrs>;
pub type WKUPC1_R = crate::BitReader;
pub type WKUPC1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WKUPC2_R = crate::BitReader;
pub type WKUPC2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WKUPC4_R = crate::BitReader;
pub type WKUPC4_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WKUPC6_R = crate::BitReader;
pub type WKUPC6_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn wkupc1(&self) -> WKUPC1_R {
WKUPC1_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn wkupc2(&self) -> WKUPC2_R {
WKUPC2_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn wkupc4(&self) -> WKUPC4_R {
WKUPC4_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn wkupc6(&self) -> WKUPC6_R {
WKUPC6_R::new(((self.bits >> 5) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("WKUPCR")
.field("wkupc1", &self.wkupc1())
.field("wkupc2", &self.wkupc2())
.field("wkupc4", &self.wkupc4())
.field("wkupc6", &self.wkupc6())
.finish()
}
}
impl W {
#[inline(always)]
pub fn wkupc1(&mut self) -> WKUPC1_W<WKUPCRrs> {
WKUPC1_W::new(self, 0)
}
#[inline(always)]
pub fn wkupc2(&mut self) -> WKUPC2_W<WKUPCRrs> {
WKUPC2_W::new(self, 1)
}
#[inline(always)]
pub fn wkupc4(&mut self) -> WKUPC4_W<WKUPCRrs> {
WKUPC4_W::new(self, 3)
}
#[inline(always)]
pub fn wkupc6(&mut self) -> WKUPC6_W<WKUPCRrs> {
WKUPC6_W::new(self, 5)
}
}
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 {}