pub type R = crate::R<DAINTMSKrs>;
pub type W = crate::W<DAINTMSKrs>;
pub type IEPM_R = crate::FieldReader<u16>;
pub type IEPM_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
pub type OEPM_R = crate::FieldReader<u16>;
pub type OEPM_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn iepm(&self) -> IEPM_R {
IEPM_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn oepm(&self) -> OEPM_R {
OEPM_R::new(((self.bits >> 16) & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DAINTMSK")
.field("iepm", &self.iepm())
.field("oepm", &self.oepm())
.finish()
}
}
impl W {
#[inline(always)]
pub fn iepm(&mut self) -> IEPM_W<DAINTMSKrs> {
IEPM_W::new(self, 0)
}
#[inline(always)]
pub fn oepm(&mut self) -> OEPM_W<DAINTMSKrs> {
OEPM_W::new(self, 16)
}
}
pub struct DAINTMSKrs;
impl crate::RegisterSpec for DAINTMSKrs {
type Ux = u32;
}
impl crate::Readable for DAINTMSKrs {}
impl crate::Writable for DAINTMSKrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DAINTMSKrs {}