pub type R = crate::R<_DIERrs>;
pub type W = crate::W<_DIERrs>;
pub type UIE_R = crate::BitReader;
pub type UIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CC1IE_R = crate::BitReader;
pub type CC1IE_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 TIE_R = crate::BitReader;
pub type TIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn uie(&self) -> UIE_R {
UIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn cc1ie(&self) -> CC1IE_R {
CC1IE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn cc2ie(&self) -> CC2IE_R {
CC2IE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn tie(&self) -> TIE_R {
TIE_R::new(((self.bits >> 6) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("_DIER")
.field("uie", &self.uie())
.field("cc1ie", &self.cc1ie())
.field("cc2ie", &self.cc2ie())
.field("tie", &self.tie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn uie(&mut self) -> UIE_W<_DIERrs> {
UIE_W::new(self, 0)
}
#[inline(always)]
pub fn cc1ie(&mut self) -> CC1IE_W<_DIERrs> {
CC1IE_W::new(self, 1)
}
#[inline(always)]
pub fn cc2ie(&mut self) -> CC2IE_W<_DIERrs> {
CC2IE_W::new(self, 2)
}
#[inline(always)]
pub fn tie(&mut self) -> TIE_W<_DIERrs> {
TIE_W::new(self, 6)
}
}
pub struct _DIERrs;
impl crate::RegisterSpec for _DIERrs {
type Ux = u16;
}
impl crate::Readable for _DIERrs {}
impl crate::Writable for _DIERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for _DIERrs {}