pub type R = crate::R<IERrs>;
pub type W = crate::W<IERrs>;
pub type CCFIE_R = crate::BitReader;
pub type CCFIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RWEIE_R = crate::BitReader;
pub type RWEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type KEIE_R = crate::BitReader;
pub type KEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RNGEIE_R = crate::BitReader;
pub type RNGEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn ccfie(&self) -> CCFIE_R {
CCFIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn rweie(&self) -> RWEIE_R {
RWEIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn keie(&self) -> KEIE_R {
KEIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn rngeie(&self) -> RNGEIE_R {
RNGEIE_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("ccfie", &self.ccfie())
.field("rweie", &self.rweie())
.field("keie", &self.keie())
.field("rngeie", &self.rngeie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ccfie(&mut self) -> CCFIE_W<IERrs> {
CCFIE_W::new(self, 0)
}
#[inline(always)]
pub fn rweie(&mut self) -> RWEIE_W<IERrs> {
RWEIE_W::new(self, 1)
}
#[inline(always)]
pub fn keie(&mut self) -> KEIE_W<IERrs> {
KEIE_W::new(self, 2)
}
#[inline(always)]
pub fn rngeie(&mut self) -> RNGEIE_W<IERrs> {
RNGEIE_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 {}