pub type R = crate::R<INTMSKrs>;
pub type W = crate::W<INTMSKrs>;
pub type XFRCM_R = crate::BitReader;
pub type XFRCM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CHHM_R = crate::BitReader;
pub type CHHM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type AHBERR_R = crate::BitReader;
pub type AHBERR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type STALLM_R = crate::BitReader;
pub type STALLM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type NAKM_R = crate::BitReader;
pub type NAKM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ACKM_R = crate::BitReader;
pub type ACKM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type NYET_R = crate::BitReader;
pub type NYET_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TXERRM_R = crate::BitReader;
pub type TXERRM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BBERRM_R = crate::BitReader;
pub type BBERRM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FRMORM_R = crate::BitReader;
pub type FRMORM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DTERRM_R = crate::BitReader;
pub type DTERRM_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 chhm(&self) -> CHHM_R {
CHHM_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn ahberr(&self) -> AHBERR_R {
AHBERR_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn stallm(&self) -> STALLM_R {
STALLM_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn nakm(&self) -> NAKM_R {
NAKM_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn ackm(&self) -> ACKM_R {
ACKM_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn nyet(&self) -> NYET_R {
NYET_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn txerrm(&self) -> TXERRM_R {
TXERRM_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn bberrm(&self) -> BBERRM_R {
BBERRM_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn frmorm(&self) -> FRMORM_R {
FRMORM_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn dterrm(&self) -> DTERRM_R {
DTERRM_R::new(((self.bits >> 10) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("INTMSK")
.field("xfrcm", &self.xfrcm())
.field("chhm", &self.chhm())
.field("ahberr", &self.ahberr())
.field("stallm", &self.stallm())
.field("nakm", &self.nakm())
.field("ackm", &self.ackm())
.field("nyet", &self.nyet())
.field("txerrm", &self.txerrm())
.field("bberrm", &self.bberrm())
.field("frmorm", &self.frmorm())
.field("dterrm", &self.dterrm())
.finish()
}
}
impl W {
#[inline(always)]
pub fn xfrcm(&mut self) -> XFRCM_W<INTMSKrs> {
XFRCM_W::new(self, 0)
}
#[inline(always)]
pub fn chhm(&mut self) -> CHHM_W<INTMSKrs> {
CHHM_W::new(self, 1)
}
#[inline(always)]
pub fn ahberr(&mut self) -> AHBERR_W<INTMSKrs> {
AHBERR_W::new(self, 2)
}
#[inline(always)]
pub fn stallm(&mut self) -> STALLM_W<INTMSKrs> {
STALLM_W::new(self, 3)
}
#[inline(always)]
pub fn nakm(&mut self) -> NAKM_W<INTMSKrs> {
NAKM_W::new(self, 4)
}
#[inline(always)]
pub fn ackm(&mut self) -> ACKM_W<INTMSKrs> {
ACKM_W::new(self, 5)
}
#[inline(always)]
pub fn nyet(&mut self) -> NYET_W<INTMSKrs> {
NYET_W::new(self, 6)
}
#[inline(always)]
pub fn txerrm(&mut self) -> TXERRM_W<INTMSKrs> {
TXERRM_W::new(self, 7)
}
#[inline(always)]
pub fn bberrm(&mut self) -> BBERRM_W<INTMSKrs> {
BBERRM_W::new(self, 8)
}
#[inline(always)]
pub fn frmorm(&mut self) -> FRMORM_W<INTMSKrs> {
FRMORM_W::new(self, 9)
}
#[inline(always)]
pub fn dterrm(&mut self) -> DTERRM_W<INTMSKrs> {
DTERRM_W::new(self, 10)
}
}
pub struct INTMSKrs;
impl crate::RegisterSpec for INTMSKrs {
type Ux = u32;
}
impl crate::Readable for INTMSKrs {}
impl crate::Writable for INTMSKrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for INTMSKrs {}