pub type R = crate::R<IERrs>;
pub type W = crate::W<IERrs>;
pub type TAMP1IE_R = crate::BitReader;
pub type TAMP1IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP2IE_R = crate::BitReader;
pub type TAMP2IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP3IE_R = crate::BitReader;
pub type TAMP3IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ITAMP1IE_R = crate::BitReader;
pub type ITAMP1IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ITAMP2IE_R = crate::BitReader;
pub type ITAMP2IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ITAMP3IE_R = crate::BitReader;
pub type ITAMP3IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ITAMP4IE_R = crate::BitReader;
pub type ITAMP4IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ITAMP5IE_R = crate::BitReader;
pub type ITAMP5IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ITAMP6IE_R = crate::BitReader;
pub type ITAMP6IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ITAMP8IE_R = crate::BitReader;
pub type ITAMP8IE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tamp1ie(&self) -> TAMP1IE_R {
TAMP1IE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tamp2ie(&self) -> TAMP2IE_R {
TAMP2IE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn tamp3ie(&self) -> TAMP3IE_R {
TAMP3IE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn itamp1ie(&self) -> ITAMP1IE_R {
ITAMP1IE_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn itamp2ie(&self) -> ITAMP2IE_R {
ITAMP2IE_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn itamp3ie(&self) -> ITAMP3IE_R {
ITAMP3IE_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn itamp4ie(&self) -> ITAMP4IE_R {
ITAMP4IE_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn itamp5ie(&self) -> ITAMP5IE_R {
ITAMP5IE_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn itamp6ie(&self) -> ITAMP6IE_R {
ITAMP6IE_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn itamp8ie(&self) -> ITAMP8IE_R {
ITAMP8IE_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("IER")
.field("tamp1ie", &self.tamp1ie())
.field("tamp2ie", &self.tamp2ie())
.field("tamp3ie", &self.tamp3ie())
.field("itamp1ie", &self.itamp1ie())
.field("itamp2ie", &self.itamp2ie())
.field("itamp3ie", &self.itamp3ie())
.field("itamp4ie", &self.itamp4ie())
.field("itamp5ie", &self.itamp5ie())
.field("itamp6ie", &self.itamp6ie())
.field("itamp8ie", &self.itamp8ie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tamp1ie(&mut self) -> TAMP1IE_W<IERrs> {
TAMP1IE_W::new(self, 0)
}
#[inline(always)]
pub fn tamp2ie(&mut self) -> TAMP2IE_W<IERrs> {
TAMP2IE_W::new(self, 1)
}
#[inline(always)]
pub fn tamp3ie(&mut self) -> TAMP3IE_W<IERrs> {
TAMP3IE_W::new(self, 2)
}
#[inline(always)]
pub fn itamp1ie(&mut self) -> ITAMP1IE_W<IERrs> {
ITAMP1IE_W::new(self, 16)
}
#[inline(always)]
pub fn itamp2ie(&mut self) -> ITAMP2IE_W<IERrs> {
ITAMP2IE_W::new(self, 17)
}
#[inline(always)]
pub fn itamp3ie(&mut self) -> ITAMP3IE_W<IERrs> {
ITAMP3IE_W::new(self, 18)
}
#[inline(always)]
pub fn itamp4ie(&mut self) -> ITAMP4IE_W<IERrs> {
ITAMP4IE_W::new(self, 19)
}
#[inline(always)]
pub fn itamp5ie(&mut self) -> ITAMP5IE_W<IERrs> {
ITAMP5IE_W::new(self, 20)
}
#[inline(always)]
pub fn itamp6ie(&mut self) -> ITAMP6IE_W<IERrs> {
ITAMP6IE_W::new(self, 21)
}
#[inline(always)]
pub fn itamp8ie(&mut self) -> ITAMP8IE_W<IERrs> {
ITAMP8IE_W::new(self, 23)
}
}
pub struct IERrs;
impl crate::RegisterSpec for IERrs {
type Ux = u32;
}
impl crate::Readable for IERrs {}
impl crate::Writable for IERrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IERrs {}