pub type R = crate::R<DIER_INPUTrs>;
pub type W = crate::W<DIER_INPUTrs>;
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 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 CC1OIE_R = crate::BitReader;
pub type CC1OIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC2OIE_R = crate::BitReader;
pub type CC2OIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC1DE_R = crate::BitReader;
pub type CC1DE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type UEDE_R = crate::BitReader;
pub type UEDE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC2DE_R = crate::BitReader;
pub type CC2DE_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 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 cc1oie(&self) -> CC1OIE_R {
CC1OIE_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn cc2oie(&self) -> CC2OIE_R {
CC2OIE_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn cc1de(&self) -> CC1DE_R {
CC1DE_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn uede(&self) -> UEDE_R {
UEDE_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn cc2de(&self) -> CC2DE_R {
CC2DE_R::new(((self.bits >> 25) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DIER_INPUT")
.field("cc1ie", &self.cc1ie())
.field("arrmie", &self.arrmie())
.field("exttrigie", &self.exttrigie())
.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("cc1oie", &self.cc1oie())
.field("cc2oie", &self.cc2oie())
.field("cc1de", &self.cc1de())
.field("uede", &self.uede())
.field("cc2de", &self.cc2de())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cc1ie(&mut self) -> CC1IE_W<DIER_INPUTrs> {
CC1IE_W::new(self, 0)
}
#[inline(always)]
pub fn arrmie(&mut self) -> ARRMIE_W<DIER_INPUTrs> {
ARRMIE_W::new(self, 1)
}
#[inline(always)]
pub fn exttrigie(&mut self) -> EXTTRIGIE_W<DIER_INPUTrs> {
EXTTRIGIE_W::new(self, 2)
}
#[inline(always)]
pub fn arrokie(&mut self) -> ARROKIE_W<DIER_INPUTrs> {
ARROKIE_W::new(self, 4)
}
#[inline(always)]
pub fn upie(&mut self) -> UPIE_W<DIER_INPUTrs> {
UPIE_W::new(self, 5)
}
#[inline(always)]
pub fn downie(&mut self) -> DOWNIE_W<DIER_INPUTrs> {
DOWNIE_W::new(self, 6)
}
#[inline(always)]
pub fn ueie(&mut self) -> UEIE_W<DIER_INPUTrs> {
UEIE_W::new(self, 7)
}
#[inline(always)]
pub fn repokie(&mut self) -> REPOKIE_W<DIER_INPUTrs> {
REPOKIE_W::new(self, 8)
}
#[inline(always)]
pub fn cc2ie(&mut self) -> CC2IE_W<DIER_INPUTrs> {
CC2IE_W::new(self, 9)
}
#[inline(always)]
pub fn cc1oie(&mut self) -> CC1OIE_W<DIER_INPUTrs> {
CC1OIE_W::new(self, 12)
}
#[inline(always)]
pub fn cc2oie(&mut self) -> CC2OIE_W<DIER_INPUTrs> {
CC2OIE_W::new(self, 13)
}
#[inline(always)]
pub fn cc1de(&mut self) -> CC1DE_W<DIER_INPUTrs> {
CC1DE_W::new(self, 16)
}
#[inline(always)]
pub fn uede(&mut self) -> UEDE_W<DIER_INPUTrs> {
UEDE_W::new(self, 23)
}
#[inline(always)]
pub fn cc2de(&mut self) -> CC2DE_W<DIER_INPUTrs> {
CC2DE_W::new(self, 25)
}
}
pub struct DIER_INPUTrs;
impl crate::RegisterSpec for DIER_INPUTrs {
type Ux = u32;
}
impl crate::Readable for DIER_INPUTrs {}
impl crate::Writable for DIER_INPUTrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DIER_INPUTrs {}