pub type R = crate::R<CR3rs>;
pub type W = crate::W<CR3rs>;
pub type EWUP1_R = crate::BitReader;
pub type EWUP1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EWUP2_R = crate::BitReader;
pub type EWUP2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EWUP3_R = crate::BitReader;
pub type EWUP3_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EWUP4_R = crate::BitReader;
pub type EWUP4_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EWUP5_R = crate::BitReader;
pub type EWUP5_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EWUP6_R = crate::BitReader;
pub type EWUP6_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type APC_R = crate::BitReader;
pub type APC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EIWUL_R = crate::BitReader;
pub type EIWUL_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn ewup1(&self) -> EWUP1_R {
EWUP1_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn ewup2(&self) -> EWUP2_R {
EWUP2_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ewup3(&self) -> EWUP3_R {
EWUP3_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn ewup4(&self) -> EWUP4_R {
EWUP4_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn ewup5(&self) -> EWUP5_R {
EWUP5_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn ewup6(&self) -> EWUP6_R {
EWUP6_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn apc(&self) -> APC_R {
APC_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn eiwul(&self) -> EIWUL_R {
EIWUL_R::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CR3")
.field("ewup1", &self.ewup1())
.field("ewup2", &self.ewup2())
.field("ewup3", &self.ewup3())
.field("ewup4", &self.ewup4())
.field("ewup5", &self.ewup5())
.field("ewup6", &self.ewup6())
.field("apc", &self.apc())
.field("eiwul", &self.eiwul())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ewup1(&mut self) -> EWUP1_W<CR3rs> {
EWUP1_W::new(self, 0)
}
#[inline(always)]
pub fn ewup2(&mut self) -> EWUP2_W<CR3rs> {
EWUP2_W::new(self, 1)
}
#[inline(always)]
pub fn ewup3(&mut self) -> EWUP3_W<CR3rs> {
EWUP3_W::new(self, 2)
}
#[inline(always)]
pub fn ewup4(&mut self) -> EWUP4_W<CR3rs> {
EWUP4_W::new(self, 3)
}
#[inline(always)]
pub fn ewup5(&mut self) -> EWUP5_W<CR3rs> {
EWUP5_W::new(self, 4)
}
#[inline(always)]
pub fn ewup6(&mut self) -> EWUP6_W<CR3rs> {
EWUP6_W::new(self, 5)
}
#[inline(always)]
pub fn apc(&mut self) -> APC_W<CR3rs> {
APC_W::new(self, 10)
}
#[inline(always)]
pub fn eiwul(&mut self) -> EIWUL_W<CR3rs> {
EIWUL_W::new(self, 15)
}
}
pub struct CR3rs;
impl crate::RegisterSpec for CR3rs {
type Ux = u32;
}
impl crate::Readable for CR3rs {}
impl crate::Writable for CR3rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CR3rs {
const RESET_VALUE: u32 = 0x8000;
}