pub type R = crate::R<IER1rs>;
pub type W = crate::W<IER1rs>;
pub type TOHSTXIE_R = crate::BitReader;
pub type TOHSTXIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TOLPRXIE_R = crate::BitReader;
pub type TOLPRXIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ECCSEIE_R = crate::BitReader;
pub type ECCSEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ECCMEIE_R = crate::BitReader;
pub type ECCMEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CRCEIE_R = crate::BitReader;
pub type CRCEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PSEIE_R = crate::BitReader;
pub type PSEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EOTPEIE_R = crate::BitReader;
pub type EOTPEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LPWREIE_R = crate::BitReader;
pub type LPWREIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GCWREIE_R = crate::BitReader;
pub type GCWREIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GPWREIE_R = crate::BitReader;
pub type GPWREIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GPTXEIE_R = crate::BitReader;
pub type GPTXEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GPRDEIE_R = crate::BitReader;
pub type GPRDEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GPRXEIE_R = crate::BitReader;
pub type GPRXEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tohstxie(&self) -> TOHSTXIE_R {
TOHSTXIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tolprxie(&self) -> TOLPRXIE_R {
TOLPRXIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn eccseie(&self) -> ECCSEIE_R {
ECCSEIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn eccmeie(&self) -> ECCMEIE_R {
ECCMEIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn crceie(&self) -> CRCEIE_R {
CRCEIE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn pseie(&self) -> PSEIE_R {
PSEIE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn eotpeie(&self) -> EOTPEIE_R {
EOTPEIE_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn lpwreie(&self) -> LPWREIE_R {
LPWREIE_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn gcwreie(&self) -> GCWREIE_R {
GCWREIE_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn gpwreie(&self) -> GPWREIE_R {
GPWREIE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn gptxeie(&self) -> GPTXEIE_R {
GPTXEIE_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn gprdeie(&self) -> GPRDEIE_R {
GPRDEIE_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn gprxeie(&self) -> GPRXEIE_R {
GPRXEIE_R::new(((self.bits >> 12) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IER1")
.field("tohstxie", &self.tohstxie())
.field("tolprxie", &self.tolprxie())
.field("eccseie", &self.eccseie())
.field("eccmeie", &self.eccmeie())
.field("crceie", &self.crceie())
.field("pseie", &self.pseie())
.field("eotpeie", &self.eotpeie())
.field("lpwreie", &self.lpwreie())
.field("gcwreie", &self.gcwreie())
.field("gpwreie", &self.gpwreie())
.field("gptxeie", &self.gptxeie())
.field("gprdeie", &self.gprdeie())
.field("gprxeie", &self.gprxeie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tohstxie(&mut self) -> TOHSTXIE_W<IER1rs> {
TOHSTXIE_W::new(self, 0)
}
#[inline(always)]
pub fn tolprxie(&mut self) -> TOLPRXIE_W<IER1rs> {
TOLPRXIE_W::new(self, 1)
}
#[inline(always)]
pub fn eccseie(&mut self) -> ECCSEIE_W<IER1rs> {
ECCSEIE_W::new(self, 2)
}
#[inline(always)]
pub fn eccmeie(&mut self) -> ECCMEIE_W<IER1rs> {
ECCMEIE_W::new(self, 3)
}
#[inline(always)]
pub fn crceie(&mut self) -> CRCEIE_W<IER1rs> {
CRCEIE_W::new(self, 4)
}
#[inline(always)]
pub fn pseie(&mut self) -> PSEIE_W<IER1rs> {
PSEIE_W::new(self, 5)
}
#[inline(always)]
pub fn eotpeie(&mut self) -> EOTPEIE_W<IER1rs> {
EOTPEIE_W::new(self, 6)
}
#[inline(always)]
pub fn lpwreie(&mut self) -> LPWREIE_W<IER1rs> {
LPWREIE_W::new(self, 7)
}
#[inline(always)]
pub fn gcwreie(&mut self) -> GCWREIE_W<IER1rs> {
GCWREIE_W::new(self, 8)
}
#[inline(always)]
pub fn gpwreie(&mut self) -> GPWREIE_W<IER1rs> {
GPWREIE_W::new(self, 9)
}
#[inline(always)]
pub fn gptxeie(&mut self) -> GPTXEIE_W<IER1rs> {
GPTXEIE_W::new(self, 10)
}
#[inline(always)]
pub fn gprdeie(&mut self) -> GPRDEIE_W<IER1rs> {
GPRDEIE_W::new(self, 11)
}
#[inline(always)]
pub fn gprxeie(&mut self) -> GPRXEIE_W<IER1rs> {
GPRXEIE_W::new(self, 12)
}
}
pub struct IER1rs;
impl crate::RegisterSpec for IER1rs {
type Ux = u32;
}
impl crate::Readable for IER1rs {}
impl crate::Writable for IER1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IER1rs {}