pub type R = crate::R<IMRrs>;
pub type W = crate::W<IMRrs>;
pub type RXNEIE_R = crate::BitReader;
pub type RXNEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CSRNEIE_R = crate::BitReader;
pub type CSRNEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PERRIE_R = crate::BitReader;
pub type PERRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OVRIE_R = crate::BitReader;
pub type OVRIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SBLKIE_R = crate::BitReader;
pub type SBLKIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SYNCDIE_R = crate::BitReader;
pub type SYNCDIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type IFEIE_R = crate::BitReader;
pub type IFEIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn rxneie(&self) -> RXNEIE_R {
RXNEIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn csrneie(&self) -> CSRNEIE_R {
CSRNEIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn perrie(&self) -> PERRIE_R {
PERRIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn ovrie(&self) -> OVRIE_R {
OVRIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn sblkie(&self) -> SBLKIE_R {
SBLKIE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn syncdie(&self) -> SYNCDIE_R {
SYNCDIE_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn ifeie(&self) -> IFEIE_R {
IFEIE_R::new(((self.bits >> 6) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IMR")
.field("rxneie", &self.rxneie())
.field("csrneie", &self.csrneie())
.field("perrie", &self.perrie())
.field("ovrie", &self.ovrie())
.field("sblkie", &self.sblkie())
.field("syncdie", &self.syncdie())
.field("ifeie", &self.ifeie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn rxneie(&mut self) -> RXNEIE_W<IMRrs> {
RXNEIE_W::new(self, 0)
}
#[inline(always)]
pub fn csrneie(&mut self) -> CSRNEIE_W<IMRrs> {
CSRNEIE_W::new(self, 1)
}
#[inline(always)]
pub fn perrie(&mut self) -> PERRIE_W<IMRrs> {
PERRIE_W::new(self, 2)
}
#[inline(always)]
pub fn ovrie(&mut self) -> OVRIE_W<IMRrs> {
OVRIE_W::new(self, 3)
}
#[inline(always)]
pub fn sblkie(&mut self) -> SBLKIE_W<IMRrs> {
SBLKIE_W::new(self, 4)
}
#[inline(always)]
pub fn syncdie(&mut self) -> SYNCDIE_W<IMRrs> {
SYNCDIE_W::new(self, 5)
}
#[inline(always)]
pub fn ifeie(&mut self) -> IFEIE_W<IMRrs> {
IFEIE_W::new(self, 6)
}
}
pub struct IMRrs;
impl crate::RegisterSpec for IMRrs {
type Ux = u32;
}
impl crate::Readable for IMRrs {}
impl crate::Writable for IMRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IMRrs {}