pub type R = crate::R<CRrs>;
pub type W = crate::W<CRrs>;
pub type B0OIE_R = crate::BitReader;
pub type B0OIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type B1OIE_R = crate::BitReader;
pub type B1OIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type B2OIE_R = crate::BitReader;
pub type B2OIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type B3OIE_R = crate::BitReader;
pub type B3OIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AMEIE_R = crate::BitReader;
pub type AMEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BS_R = crate::BitReader;
pub type BS_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ATE_R = crate::BitReader;
pub type ATE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type B0PE_R = crate::BitReader;
pub type B0PE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type B0PM_R = crate::BitReader;
pub type B0PM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type B1PE_R = crate::BitReader;
pub type B1PE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type B1PM_R = crate::BitReader;
pub type B1PM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type B2PE_R = crate::BitReader;
pub type B2PE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type B2PM_R = crate::BitReader;
pub type B2PM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type B3PE_R = crate::BitReader;
pub type B3PE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type B3PM_R = crate::BitReader;
pub type B3PM_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn b0oie(&self) -> B0OIE_R {
B0OIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn b1oie(&self) -> B1OIE_R {
B1OIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn b2oie(&self) -> B2OIE_R {
B2OIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn b3oie(&self) -> B3OIE_R {
B3OIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn ameie(&self) -> AMEIE_R {
AMEIE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn bs(&self) -> BS_R {
BS_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn ate(&self) -> ATE_R {
ATE_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn b0pe(&self) -> B0PE_R {
B0PE_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn b0pm(&self) -> B0PM_R {
B0PM_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn b1pe(&self) -> B1PE_R {
B1PE_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn b1pm(&self) -> B1PM_R {
B1PM_R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn b2pe(&self) -> B2PE_R {
B2PE_R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn b2pm(&self) -> B2PM_R {
B2PM_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn b3pe(&self) -> B3PE_R {
B3PE_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn b3pm(&self) -> B3PM_R {
B3PM_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CR")
.field("b0oie", &self.b0oie())
.field("b1oie", &self.b1oie())
.field("b2oie", &self.b2oie())
.field("b3oie", &self.b3oie())
.field("ameie", &self.ameie())
.field("bs", &self.bs())
.field("ate", &self.ate())
.field("b0pe", &self.b0pe())
.field("b0pm", &self.b0pm())
.field("b1pe", &self.b1pe())
.field("b1pm", &self.b1pm())
.field("b2pe", &self.b2pe())
.field("b2pm", &self.b2pm())
.field("b3pe", &self.b3pe())
.field("b3pm", &self.b3pm())
.finish()
}
}
impl W {
#[inline(always)]
pub fn b0oie(&mut self) -> B0OIE_W<CRrs> {
B0OIE_W::new(self, 0)
}
#[inline(always)]
pub fn b1oie(&mut self) -> B1OIE_W<CRrs> {
B1OIE_W::new(self, 1)
}
#[inline(always)]
pub fn b2oie(&mut self) -> B2OIE_W<CRrs> {
B2OIE_W::new(self, 2)
}
#[inline(always)]
pub fn b3oie(&mut self) -> B3OIE_W<CRrs> {
B3OIE_W::new(self, 3)
}
#[inline(always)]
pub fn ameie(&mut self) -> AMEIE_W<CRrs> {
AMEIE_W::new(self, 4)
}
#[inline(always)]
pub fn bs(&mut self) -> BS_W<CRrs> {
BS_W::new(self, 6)
}
#[inline(always)]
pub fn ate(&mut self) -> ATE_W<CRrs> {
ATE_W::new(self, 15)
}
#[inline(always)]
pub fn b0pe(&mut self) -> B0PE_W<CRrs> {
B0PE_W::new(self, 24)
}
#[inline(always)]
pub fn b0pm(&mut self) -> B0PM_W<CRrs> {
B0PM_W::new(self, 25)
}
#[inline(always)]
pub fn b1pe(&mut self) -> B1PE_W<CRrs> {
B1PE_W::new(self, 26)
}
#[inline(always)]
pub fn b1pm(&mut self) -> B1PM_W<CRrs> {
B1PM_W::new(self, 27)
}
#[inline(always)]
pub fn b2pe(&mut self) -> B2PE_W<CRrs> {
B2PE_W::new(self, 28)
}
#[inline(always)]
pub fn b2pm(&mut self) -> B2PM_W<CRrs> {
B2PM_W::new(self, 29)
}
#[inline(always)]
pub fn b3pe(&mut self) -> B3PE_W<CRrs> {
B3PE_W::new(self, 30)
}
#[inline(always)]
pub fn b3pm(&mut self) -> B3PM_W<CRrs> {
B3PM_W::new(self, 31)
}
}
pub struct CRrs;
impl crate::RegisterSpec for CRrs {
type Ux = u32;
}
impl crate::Readable for CRrs {}
impl crate::Writable for CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CRrs {}