pub type R = crate::R<HS_DOEPEACHMSK1rs>;
pub type W = crate::W<HS_DOEPEACHMSK1rs>;
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 AHBERRM_R = crate::BitReader;
pub type AHBERRM_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>;
pub type B2BSTUPM_R = crate::BitReader;
pub type B2BSTUPM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OUTPKTERRM_R = crate::BitReader;
pub type OUTPKTERRM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BNAM_R = crate::BitReader;
pub type BNAM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BERRM_R = crate::BitReader;
pub type BERRM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type NAKMSK_R = crate::BitReader;
pub type NAKMSK_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type NYETMSK_R = crate::BitReader;
pub type NYETMSK_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 ahberrm(&self) -> AHBERRM_R {
AHBERRM_R::new(((self.bits >> 2) & 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)
}
#[inline(always)]
pub fn b2bstupm(&self) -> B2BSTUPM_R {
B2BSTUPM_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn outpkterrm(&self) -> OUTPKTERRM_R {
OUTPKTERRM_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn bnam(&self) -> BNAM_R {
BNAM_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn berrm(&self) -> BERRM_R {
BERRM_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn nakmsk(&self) -> NAKMSK_R {
NAKMSK_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn nyetmsk(&self) -> NYETMSK_R {
NYETMSK_R::new(((self.bits >> 14) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HS_DOEPEACHMSK1")
.field("xfrcm", &self.xfrcm())
.field("epdm", &self.epdm())
.field("ahberrm", &self.ahberrm())
.field("stupm", &self.stupm())
.field("otepdm", &self.otepdm())
.field("b2bstupm", &self.b2bstupm())
.field("outpkterrm", &self.outpkterrm())
.field("bnam", &self.bnam())
.field("berrm", &self.berrm())
.field("nakmsk", &self.nakmsk())
.field("nyetmsk", &self.nyetmsk())
.finish()
}
}
impl W {
#[inline(always)]
pub fn xfrcm(&mut self) -> XFRCM_W<HS_DOEPEACHMSK1rs> {
XFRCM_W::new(self, 0)
}
#[inline(always)]
pub fn epdm(&mut self) -> EPDM_W<HS_DOEPEACHMSK1rs> {
EPDM_W::new(self, 1)
}
#[inline(always)]
pub fn ahberrm(&mut self) -> AHBERRM_W<HS_DOEPEACHMSK1rs> {
AHBERRM_W::new(self, 2)
}
#[inline(always)]
pub fn stupm(&mut self) -> STUPM_W<HS_DOEPEACHMSK1rs> {
STUPM_W::new(self, 3)
}
#[inline(always)]
pub fn otepdm(&mut self) -> OTEPDM_W<HS_DOEPEACHMSK1rs> {
OTEPDM_W::new(self, 4)
}
#[inline(always)]
pub fn b2bstupm(&mut self) -> B2BSTUPM_W<HS_DOEPEACHMSK1rs> {
B2BSTUPM_W::new(self, 6)
}
#[inline(always)]
pub fn outpkterrm(&mut self) -> OUTPKTERRM_W<HS_DOEPEACHMSK1rs> {
OUTPKTERRM_W::new(self, 8)
}
#[inline(always)]
pub fn bnam(&mut self) -> BNAM_W<HS_DOEPEACHMSK1rs> {
BNAM_W::new(self, 9)
}
#[inline(always)]
pub fn berrm(&mut self) -> BERRM_W<HS_DOEPEACHMSK1rs> {
BERRM_W::new(self, 12)
}
#[inline(always)]
pub fn nakmsk(&mut self) -> NAKMSK_W<HS_DOEPEACHMSK1rs> {
NAKMSK_W::new(self, 13)
}
#[inline(always)]
pub fn nyetmsk(&mut self) -> NYETMSK_W<HS_DOEPEACHMSK1rs> {
NYETMSK_W::new(self, 14)
}
}
pub struct HS_DOEPEACHMSK1rs;
impl crate::RegisterSpec for HS_DOEPEACHMSK1rs {
type Ux = u32;
}
impl crate::Readable for HS_DOEPEACHMSK1rs {}
impl crate::Writable for HS_DOEPEACHMSK1rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for HS_DOEPEACHMSK1rs {}