pub type R = crate::R<IERrs>;
pub type W = crate::W<IERrs>;
pub type SEIE_R = crate::BitReader;
pub type SEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type XONEIE_R = crate::BitReader;
pub type XONEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type KEIE_R = crate::BitReader;
pub type KEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn seie(&self) -> SEIE_R {
SEIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn xoneie(&self) -> XONEIE_R {
XONEIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn keie(&self) -> KEIE_R {
KEIE_R::new(((self.bits >> 2) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IER")
.field("seie", &self.seie())
.field("xoneie", &self.xoneie())
.field("keie", &self.keie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn seie(&mut self) -> SEIE_W<IERrs> {
SEIE_W::new(self, 0)
}
#[inline(always)]
pub fn xoneie(&mut self) -> XONEIE_W<IERrs> {
XONEIE_W::new(self, 1)
}
#[inline(always)]
pub fn keie(&mut self) -> KEIE_W<IERrs> {
KEIE_W::new(self, 2)
}
}
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 {}