pub type R = crate::R<DIEPMSKrs>;
pub type W = crate::W<DIEPMSKrs>;
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 TOM_R = crate::BitReader;
pub type TOM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ITTXFEMSK_R = crate::BitReader;
pub type ITTXFEMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type INEPNMM_R = crate::BitReader;
pub type INEPNMM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type INEPNEM_R = crate::BitReader;
pub type INEPNEM_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 tom(&self) -> TOM_R {
TOM_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn ittxfemsk(&self) -> ITTXFEMSK_R {
ITTXFEMSK_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn inepnmm(&self) -> INEPNMM_R {
INEPNMM_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn inepnem(&self) -> INEPNEM_R {
INEPNEM_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("DIEPMSK")
.field("xfrcm", &self.xfrcm())
.field("epdm", &self.epdm())
.field("tom", &self.tom())
.field("ittxfemsk", &self.ittxfemsk())
.field("inepnmm", &self.inepnmm())
.field("inepnem", &self.inepnem())
.finish()
}
}
impl W {
#[inline(always)]
pub fn xfrcm(&mut self) -> XFRCM_W<DIEPMSKrs> {
XFRCM_W::new(self, 0)
}
#[inline(always)]
pub fn epdm(&mut self) -> EPDM_W<DIEPMSKrs> {
EPDM_W::new(self, 1)
}
#[inline(always)]
pub fn tom(&mut self) -> TOM_W<DIEPMSKrs> {
TOM_W::new(self, 3)
}
#[inline(always)]
pub fn ittxfemsk(&mut self) -> ITTXFEMSK_W<DIEPMSKrs> {
ITTXFEMSK_W::new(self, 4)
}
#[inline(always)]
pub fn inepnmm(&mut self) -> INEPNMM_W<DIEPMSKrs> {
INEPNMM_W::new(self, 5)
}
#[inline(always)]
pub fn inepnem(&mut self) -> INEPNEM_W<DIEPMSKrs> {
INEPNEM_W::new(self, 6)
}
}
pub struct DIEPMSKrs;
impl crate::RegisterSpec for DIEPMSKrs {
type Ux = u32;
}
impl crate::Readable for DIEPMSKrs {}
impl crate::Writable for DIEPMSKrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DIEPMSKrs {}