pub type R = crate::R<IERrs>;
pub type W = crate::W<IERrs>;
pub type LIE_R = crate::BitReader;
pub type LIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FUIE_R = crate::BitReader;
pub type FUIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TERRIE_R = crate::BitReader;
pub type TERRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RRIE_R = crate::BitReader;
pub type RRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn lie(&self) -> LIE_R {
LIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn fuie(&self) -> FUIE_R {
FUIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn terrie(&self) -> TERRIE_R {
TERRIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn rrie(&self) -> RRIE_R {
RRIE_R::new(((self.bits >> 3) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IER")
.field("lie", &self.lie())
.field("fuie", &self.fuie())
.field("terrie", &self.terrie())
.field("rrie", &self.rrie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn lie(&mut self) -> LIE_W<IERrs> {
LIE_W::new(self, 0)
}
#[inline(always)]
pub fn fuie(&mut self) -> FUIE_W<IERrs> {
FUIE_W::new(self, 1)
}
#[inline(always)]
pub fn terrie(&mut self) -> TERRIE_W<IERrs> {
TERRIE_W::new(self, 2)
}
#[inline(always)]
pub fn rrie(&mut self) -> RRIE_W<IERrs> {
RRIE_W::new(self, 3)
}
}
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 {}