pub type R = crate::R<IMSCRrs>;
pub type W = crate::W<IMSCRrs>;
pub type INIM_R = crate::BitReader;
pub type INIM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OUTIM_R = crate::BitReader;
pub type OUTIM_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn inim(&self) -> INIM_R {
INIM_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn outim(&self) -> OUTIM_R {
OUTIM_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("IMSCR")
.field("outim", &self.outim())
.field("inim", &self.inim())
.finish()
}
}
impl W {
#[inline(always)]
pub fn inim(&mut self) -> INIM_W<IMSCRrs> {
INIM_W::new(self, 0)
}
#[inline(always)]
pub fn outim(&mut self) -> OUTIM_W<IMSCRrs> {
OUTIM_W::new(self, 1)
}
}
pub struct IMSCRrs;
impl crate::RegisterSpec for IMSCRrs {
type Ux = u32;
}
impl crate::Readable for IMSCRrs {}
impl crate::Writable for IMSCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for IMSCRrs {}