pub type R = crate::R<MMC_RX_INTERRUPT_MASKrs>;
pub type W = crate::W<MMC_RX_INTERRUPT_MASKrs>;
pub type RXCRCERPIM_R = crate::BitReader;
pub type RXCRCERPIM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RXALGNERPIM_R = crate::BitReader;
pub type RXALGNERPIM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RXUCGPIM_R = crate::BitReader;
pub type RXUCGPIM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RXLPIUSCIM_R = crate::BitReader;
pub type RXLPIUSCIM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RXLPITRCIM_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn rxcrcerpim(&self) -> RXCRCERPIM_R {
RXCRCERPIM_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn rxalgnerpim(&self) -> RXALGNERPIM_R {
RXALGNERPIM_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn rxucgpim(&self) -> RXUCGPIM_R {
RXUCGPIM_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn rxlpiuscim(&self) -> RXLPIUSCIM_R {
RXLPIUSCIM_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn rxlpitrcim(&self) -> RXLPITRCIM_R {
RXLPITRCIM_R::new(((self.bits >> 27) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MMC_RX_INTERRUPT_MASK")
.field("rxcrcerpim", &self.rxcrcerpim())
.field("rxalgnerpim", &self.rxalgnerpim())
.field("rxucgpim", &self.rxucgpim())
.field("rxlpiuscim", &self.rxlpiuscim())
.field("rxlpitrcim", &self.rxlpitrcim())
.finish()
}
}
impl W {
#[inline(always)]
pub fn rxcrcerpim(&mut self) -> RXCRCERPIM_W<MMC_RX_INTERRUPT_MASKrs> {
RXCRCERPIM_W::new(self, 5)
}
#[inline(always)]
pub fn rxalgnerpim(&mut self) -> RXALGNERPIM_W<MMC_RX_INTERRUPT_MASKrs> {
RXALGNERPIM_W::new(self, 6)
}
#[inline(always)]
pub fn rxucgpim(&mut self) -> RXUCGPIM_W<MMC_RX_INTERRUPT_MASKrs> {
RXUCGPIM_W::new(self, 17)
}
#[inline(always)]
pub fn rxlpiuscim(&mut self) -> RXLPIUSCIM_W<MMC_RX_INTERRUPT_MASKrs> {
RXLPIUSCIM_W::new(self, 26)
}
}
pub struct MMC_RX_INTERRUPT_MASKrs;
impl crate::RegisterSpec for MMC_RX_INTERRUPT_MASKrs {
type Ux = u32;
}
impl crate::Readable for MMC_RX_INTERRUPT_MASKrs {}
impl crate::Writable for MMC_RX_INTERRUPT_MASKrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MMC_RX_INTERRUPT_MASKrs {}