pub type R = crate::R<IERrs>;
pub type W = crate::W<IERrs>;
pub type GIE_R = crate::BitReader;
pub type GIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GECCSEIE_R = crate::BitReader;
pub type GECCSEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GECCDEIE_R = crate::BitReader;
pub type GECCDEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GECCDEBWIE_R = crate::BitReader;
pub type GECCDEBWIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn gie(&self) -> GIE_R {
GIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn geccseie(&self) -> GECCSEIE_R {
GECCSEIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn geccdeie(&self) -> GECCDEIE_R {
GECCDEIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn geccdebwie(&self) -> GECCDEBWIE_R {
GECCDEBWIE_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("gie", &self.gie())
.field("geccseie", &self.geccseie())
.field("geccdeie", &self.geccdeie())
.field("geccdebwie", &self.geccdebwie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn gie(&mut self) -> GIE_W<IERrs> {
GIE_W::new(self, 0)
}
#[inline(always)]
pub fn geccseie(&mut self) -> GECCSEIE_W<IERrs> {
GECCSEIE_W::new(self, 1)
}
#[inline(always)]
pub fn geccdeie(&mut self) -> GECCDEIE_W<IERrs> {
GECCDEIE_W::new(self, 2)
}
#[inline(always)]
pub fn geccdebwie(&mut self) -> GECCDEBWIE_W<IERrs> {
GECCDEBWIE_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 {}