pub type R = crate::R<IMRrs>;
pub type W = crate::W<IMRrs>;
pub type DINIE_R = crate::BitReader;
pub type DINIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DCIE_R = crate::BitReader;
pub type DCIE_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn dinie(&self) -> DINIE_R {
DINIE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dcie(&self) -> DCIE_R {
DCIE_R::new(((self.bits >> 1) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("IMR")
.field("dcie", &self.dcie())
.field("dinie", &self.dinie())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dinie(&mut self) -> DINIE_W<IMRrs> {
DINIE_W::new(self, 0)
}
#[inline(always)]
pub fn dcie(&mut self) -> DCIE_W<IMRrs> {
DCIE_W::new(self, 1)
}
}
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 {}