pub type R = crate::R<HCINTMSK8rs>;
pub type W = crate::W<HCINTMSK8rs>;
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 AHBERRM_R = crate::BitReader;
pub type AHBERRM_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>;
pub type BNAMSK_R = crate::BitReader;
pub type BNAMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DESCLSTROLLMSK_R = crate::BitReader;
pub type DESCLSTROLLMSK_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 ahberrm(&self) -> AHBERRM_R {
AHBERRM_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)
}
#[inline(always)]
pub fn bnamsk(&self) -> BNAMSK_R {
BNAMSK_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn desclstrollmsk(&self) -> DESCLSTROLLMSK_R {
DESCLSTROLLMSK_R::new(((self.bits >> 13) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HCINTMSK8")
.field("xfrcm", &self.xfrcm())
.field("chhm", &self.chhm())
.field("ahberrm", &self.ahberrm())
.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())
.field("bnamsk", &self.bnamsk())
.field("desclstrollmsk", &self.desclstrollmsk())
.finish()
}
}
impl W {
#[inline(always)]
pub fn xfrcm(&mut self) -> XFRCM_W<HCINTMSK8rs> {
XFRCM_W::new(self, 0)
}
#[inline(always)]
pub fn chhm(&mut self) -> CHHM_W<HCINTMSK8rs> {
CHHM_W::new(self, 1)
}
#[inline(always)]
pub fn ahberrm(&mut self) -> AHBERRM_W<HCINTMSK8rs> {
AHBERRM_W::new(self, 2)
}
#[inline(always)]
pub fn stallm(&mut self) -> STALLM_W<HCINTMSK8rs> {
STALLM_W::new(self, 3)
}
#[inline(always)]
pub fn nakm(&mut self) -> NAKM_W<HCINTMSK8rs> {
NAKM_W::new(self, 4)
}
#[inline(always)]
pub fn ackm(&mut self) -> ACKM_W<HCINTMSK8rs> {
ACKM_W::new(self, 5)
}
#[inline(always)]
pub fn nyet(&mut self) -> NYET_W<HCINTMSK8rs> {
NYET_W::new(self, 6)
}
#[inline(always)]
pub fn txerrm(&mut self) -> TXERRM_W<HCINTMSK8rs> {
TXERRM_W::new(self, 7)
}
#[inline(always)]
pub fn bberrm(&mut self) -> BBERRM_W<HCINTMSK8rs> {
BBERRM_W::new(self, 8)
}
#[inline(always)]
pub fn frmorm(&mut self) -> FRMORM_W<HCINTMSK8rs> {
FRMORM_W::new(self, 9)
}
#[inline(always)]
pub fn dterrm(&mut self) -> DTERRM_W<HCINTMSK8rs> {
DTERRM_W::new(self, 10)
}
#[inline(always)]
pub fn bnamsk(&mut self) -> BNAMSK_W<HCINTMSK8rs> {
BNAMSK_W::new(self, 11)
}
#[inline(always)]
pub fn desclstrollmsk(&mut self) -> DESCLSTROLLMSK_W<HCINTMSK8rs> {
DESCLSTROLLMSK_W::new(self, 13)
}
}
pub struct HCINTMSK8rs;
impl crate::RegisterSpec for HCINTMSK8rs {
type Ux = u32;
}
impl crate::Readable for HCINTMSK8rs {}
impl crate::Writable for HCINTMSK8rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for HCINTMSK8rs {}