pub type R = crate::R<DIER_OUTPUTrs>;
pub type W = crate::W<DIER_OUTPUTrs>;
pub type CC1IE_R = crate::BitReader;
pub type CC1IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ARRMIE_R = crate::BitReader;
pub type ARRMIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EXTTRIGIE_R = crate::BitReader;
pub type EXTTRIGIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CMP1OKIE_R = crate::BitReader;
pub type CMP1OKIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ARROKIE_R = crate::BitReader;
pub type ARROKIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type UPIE_R = crate::BitReader;
pub type UPIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DOWNIE_R = crate::BitReader;
pub type DOWNIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type UEIE_R = crate::BitReader;
pub type UEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type REPOKIE_R = crate::BitReader;
pub type REPOKIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC2IE_R = crate::BitReader;
pub type CC2IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CMP2OKIE_R = crate::BitReader;
pub type CMP2OKIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type UEDE_R = crate::BitReader;
pub type UEDE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn cc1ie(&self) -> CC1IE_R {
CC1IE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn arrmie(&self) -> ARRMIE_R {
ARRMIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn exttrigie(&self) -> EXTTRIGIE_R {
EXTTRIGIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn cmp1okie(&self) -> CMP1OKIE_R {
CMP1OKIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn arrokie(&self) -> ARROKIE_R {
ARROKIE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn upie(&self) -> UPIE_R {
UPIE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn downie(&self) -> DOWNIE_R {
DOWNIE_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn ueie(&self) -> UEIE_R {
UEIE_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn repokie(&self) -> REPOKIE_R {
REPOKIE_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn cc2ie(&self) -> CC2IE_R {
CC2IE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn cmp2okie(&self) -> CMP2OKIE_R {
CMP2OKIE_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn uede(&self) -> UEDE_R {
UEDE_R::new(((self.bits >> 23) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DIER_OUTPUT")
.field("cc1ie", &self.cc1ie())
.field("arrmie", &self.arrmie())
.field("exttrigie", &self.exttrigie())
.field("cmp1okie", &self.cmp1okie())
.field("arrokie", &self.arrokie())
.field("upie", &self.upie())
.field("downie", &self.downie())
.field("ueie", &self.ueie())
.field("repokie", &self.repokie())
.field("cc2ie", &self.cc2ie())
.field("cmp2okie", &self.cmp2okie())
.field("uede", &self.uede())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cc1ie(&mut self) -> CC1IE_W<DIER_OUTPUTrs> {
CC1IE_W::new(self, 0)
}
#[inline(always)]
pub fn arrmie(&mut self) -> ARRMIE_W<DIER_OUTPUTrs> {
ARRMIE_W::new(self, 1)
}
#[inline(always)]
pub fn exttrigie(&mut self) -> EXTTRIGIE_W<DIER_OUTPUTrs> {
EXTTRIGIE_W::new(self, 2)
}
#[inline(always)]
pub fn cmp1okie(&mut self) -> CMP1OKIE_W<DIER_OUTPUTrs> {
CMP1OKIE_W::new(self, 3)
}
#[inline(always)]
pub fn arrokie(&mut self) -> ARROKIE_W<DIER_OUTPUTrs> {
ARROKIE_W::new(self, 4)
}
#[inline(always)]
pub fn upie(&mut self) -> UPIE_W<DIER_OUTPUTrs> {
UPIE_W::new(self, 5)
}
#[inline(always)]
pub fn downie(&mut self) -> DOWNIE_W<DIER_OUTPUTrs> {
DOWNIE_W::new(self, 6)
}
#[inline(always)]
pub fn ueie(&mut self) -> UEIE_W<DIER_OUTPUTrs> {
UEIE_W::new(self, 7)
}
#[inline(always)]
pub fn repokie(&mut self) -> REPOKIE_W<DIER_OUTPUTrs> {
REPOKIE_W::new(self, 8)
}
#[inline(always)]
pub fn cc2ie(&mut self) -> CC2IE_W<DIER_OUTPUTrs> {
CC2IE_W::new(self, 9)
}
#[inline(always)]
pub fn cmp2okie(&mut self) -> CMP2OKIE_W<DIER_OUTPUTrs> {
CMP2OKIE_W::new(self, 19)
}
#[inline(always)]
pub fn uede(&mut self) -> UEDE_W<DIER_OUTPUTrs> {
UEDE_W::new(self, 23)
}
}
pub struct DIER_OUTPUTrs;
impl crate::RegisterSpec for DIER_OUTPUTrs {
type Ux = u32;
}
impl crate::Readable for DIER_OUTPUTrs {}
impl crate::Writable for DIER_OUTPUTrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DIER_OUTPUTrs {}