pub type R = crate::R<IERrs>;
pub type W = crate::W<IERrs>;
pub type BSYENDIE_R = crate::BitReader;
pub type BSYENDIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ERRIE_R = crate::BitReader;
pub type ERRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn bsyendie(&self) -> BSYENDIE_R {
BSYENDIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn errie(&self) -> ERRIE_R {
ERRIE_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("bsyendie", &self.bsyendie())
.field("errie", &self.errie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn bsyendie(&mut self) -> BSYENDIE_W<IERrs> {
BSYENDIE_W::new(self, 1)
}
#[inline(always)]
pub fn errie(&mut self) -> ERRIE_W<IERrs> {
ERRIE_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 {}