pub type R = crate::R<IERrs>;
pub type W = crate::W<IERrs>;
pub type AFCOIE_R = crate::BitReader;
pub type AFCOIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ALCOIE_R = crate::BitReader;
pub type ALCOIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TEIE_R = crate::BitReader;
pub type TEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AFCC1IE_R = crate::BitReader;
pub type AFCC1IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ALCC1IE_R = crate::BitReader;
pub type ALCC1IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ALCC2IE_R = crate::BitReader;
pub type ALCC2IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RFC1RIE_R = crate::BitReader;
pub type RFC1RIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RFC2RIE_R = crate::BitReader;
pub type RFC2RIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EV1IE_R = crate::BitReader;
pub type EV1IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EV2IE_R = crate::BitReader;
pub type EV2IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EV3IE_R = crate::BitReader;
pub type EV3IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EV4IE_R = crate::BitReader;
pub type EV4IE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WDGAIE_R = crate::BitReader;
pub type WDGAIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WDGPIE_R = crate::BitReader;
pub type WDGPIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn afcoie(&self) -> AFCOIE_R {
AFCOIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn alcoie(&self) -> ALCOIE_R {
ALCOIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn teie(&self) -> TEIE_R {
TEIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn afcc1ie(&self) -> AFCC1IE_R {
AFCC1IE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn alcc1ie(&self) -> ALCC1IE_R {
ALCC1IE_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn alcc2ie(&self) -> ALCC2IE_R {
ALCC2IE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn rfc1rie(&self) -> RFC1RIE_R {
RFC1RIE_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn rfc2rie(&self) -> RFC2RIE_R {
RFC2RIE_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn ev1ie(&self) -> EV1IE_R {
EV1IE_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn ev2ie(&self) -> EV2IE_R {
EV2IE_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn ev3ie(&self) -> EV3IE_R {
EV3IE_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn ev4ie(&self) -> EV4IE_R {
EV4IE_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn wdgaie(&self) -> WDGAIE_R {
WDGAIE_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn wdgpie(&self) -> WDGPIE_R {
WDGPIE_R::new(((self.bits >> 25) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IER")
.field("afcoie", &self.afcoie())
.field("alcoie", &self.alcoie())
.field("teie", &self.teie())
.field("afcc1ie", &self.afcc1ie())
.field("alcc1ie", &self.alcc1ie())
.field("alcc2ie", &self.alcc2ie())
.field("rfc1rie", &self.rfc1rie())
.field("rfc2rie", &self.rfc2rie())
.field("ev1ie", &self.ev1ie())
.field("ev2ie", &self.ev2ie())
.field("ev3ie", &self.ev3ie())
.field("ev4ie", &self.ev4ie())
.field("wdgaie", &self.wdgaie())
.field("wdgpie", &self.wdgpie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn afcoie(&mut self) -> AFCOIE_W<IERrs> {
AFCOIE_W::new(self, 0)
}
#[inline(always)]
pub fn alcoie(&mut self) -> ALCOIE_W<IERrs> {
ALCOIE_W::new(self, 1)
}
#[inline(always)]
pub fn teie(&mut self) -> TEIE_W<IERrs> {
TEIE_W::new(self, 2)
}
#[inline(always)]
pub fn afcc1ie(&mut self) -> AFCC1IE_W<IERrs> {
AFCC1IE_W::new(self, 4)
}
#[inline(always)]
pub fn alcc1ie(&mut self) -> ALCC1IE_W<IERrs> {
ALCC1IE_W::new(self, 8)
}
#[inline(always)]
pub fn alcc2ie(&mut self) -> ALCC2IE_W<IERrs> {
ALCC2IE_W::new(self, 9)
}
#[inline(always)]
pub fn rfc1rie(&mut self) -> RFC1RIE_W<IERrs> {
RFC1RIE_W::new(self, 12)
}
#[inline(always)]
pub fn rfc2rie(&mut self) -> RFC2RIE_W<IERrs> {
RFC2RIE_W::new(self, 13)
}
#[inline(always)]
pub fn ev1ie(&mut self) -> EV1IE_W<IERrs> {
EV1IE_W::new(self, 16)
}
#[inline(always)]
pub fn ev2ie(&mut self) -> EV2IE_W<IERrs> {
EV2IE_W::new(self, 17)
}
#[inline(always)]
pub fn ev3ie(&mut self) -> EV3IE_W<IERrs> {
EV3IE_W::new(self, 18)
}
#[inline(always)]
pub fn ev4ie(&mut self) -> EV4IE_W<IERrs> {
EV4IE_W::new(self, 19)
}
#[inline(always)]
pub fn wdgaie(&mut self) -> WDGAIE_W<IERrs> {
WDGAIE_W::new(self, 24)
}
#[inline(always)]
pub fn wdgpie(&mut self) -> WDGPIE_W<IERrs> {
WDGPIE_W::new(self, 25)
}
}
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 {}