pub type R = crate::R<DIERrs>;
pub type W = crate::W<DIERrs>;
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>;
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)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DIER")
.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())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cc1ie(&mut self) -> CC1IE_W<DIERrs> {
CC1IE_W::new(self, 0)
}
#[inline(always)]
pub fn arrmie(&mut self) -> ARRMIE_W<DIERrs> {
ARRMIE_W::new(self, 1)
}
#[inline(always)]
pub fn exttrigie(&mut self) -> EXTTRIGIE_W<DIERrs> {
EXTTRIGIE_W::new(self, 2)
}
#[inline(always)]
pub fn cmp1okie(&mut self) -> CMP1OKIE_W<DIERrs> {
CMP1OKIE_W::new(self, 3)
}
#[inline(always)]
pub fn arrokie(&mut self) -> ARROKIE_W<DIERrs> {
ARROKIE_W::new(self, 4)
}
#[inline(always)]
pub fn upie(&mut self) -> UPIE_W<DIERrs> {
UPIE_W::new(self, 5)
}
#[inline(always)]
pub fn downie(&mut self) -> DOWNIE_W<DIERrs> {
DOWNIE_W::new(self, 6)
}
#[inline(always)]
pub fn ueie(&mut self) -> UEIE_W<DIERrs> {
UEIE_W::new(self, 7)
}
#[inline(always)]
pub fn repokie(&mut self) -> REPOKIE_W<DIERrs> {
REPOKIE_W::new(self, 8)
}
}
pub struct DIERrs;
impl crate::RegisterSpec for DIERrs {
type Ux = u32;
}
impl crate::Readable for DIERrs {}
impl crate::Writable for DIERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DIERrs {}