pub type R = crate::R<DOEPMSKrs>;
pub type W = crate::W<DOEPMSKrs>;
pub type XFRCM_R = crate::BitReader;
pub type XFRCM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EPDM_R = crate::BitReader;
pub type EPDM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type STUPM_R = crate::BitReader;
pub type STUPM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OTEPDM_R = crate::BitReader;
pub type OTEPDM_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn xfrcm(&self) -> XFRCM_R {
XFRCM_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn epdm(&self) -> EPDM_R {
EPDM_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn stupm(&self) -> STUPM_R {
STUPM_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn otepdm(&self) -> OTEPDM_R {
OTEPDM_R::new(((self.bits >> 4) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DOEPMSK")
.field("xfrcm", &self.xfrcm())
.field("epdm", &self.epdm())
.field("stupm", &self.stupm())
.field("otepdm", &self.otepdm())
.finish()
}
}
impl W {
#[inline(always)]
pub fn xfrcm(&mut self) -> XFRCM_W<DOEPMSKrs> {
XFRCM_W::new(self, 0)
}
#[inline(always)]
pub fn epdm(&mut self) -> EPDM_W<DOEPMSKrs> {
EPDM_W::new(self, 1)
}
#[inline(always)]
pub fn stupm(&mut self) -> STUPM_W<DOEPMSKrs> {
STUPM_W::new(self, 3)
}
#[inline(always)]
pub fn otepdm(&mut self) -> OTEPDM_W<DOEPMSKrs> {
OTEPDM_W::new(self, 4)
}
}
pub struct DOEPMSKrs;
impl crate::RegisterSpec for DOEPMSKrs {
type Ux = u32;
}
impl crate::Readable for DOEPMSKrs {}
impl crate::Writable for DOEPMSKrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DOEPMSKrs {}