#[doc = "Register `HCINTMSK1` reader"]
pub type R = crate::R<HCINTMSK1_SPEC>;
#[doc = "Register `HCINTMSK1` writer"]
pub type W = crate::W<HCINTMSK1_SPEC>;
#[doc = "Field `H_XFERCOMPLMSK1` reader - "]
pub type H_XFERCOMPLMSK1_R = crate::BitReader;
#[doc = "Field `H_XFERCOMPLMSK1` writer - "]
pub type H_XFERCOMPLMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `H_CHHLTDMSK1` reader - "]
pub type H_CHHLTDMSK1_R = crate::BitReader;
#[doc = "Field `H_CHHLTDMSK1` writer - "]
pub type H_CHHLTDMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `H_AHBERRMSK1` reader - "]
pub type H_AHBERRMSK1_R = crate::BitReader;
#[doc = "Field `H_AHBERRMSK1` writer - "]
pub type H_AHBERRMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `H_STALLMSK1` reader - "]
pub type H_STALLMSK1_R = crate::BitReader;
#[doc = "Field `H_STALLMSK1` writer - "]
pub type H_STALLMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `H_NAKMSK1` reader - "]
pub type H_NAKMSK1_R = crate::BitReader;
#[doc = "Field `H_NAKMSK1` writer - "]
pub type H_NAKMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `H_ACKMSK1` reader - "]
pub type H_ACKMSK1_R = crate::BitReader;
#[doc = "Field `H_ACKMSK1` writer - "]
pub type H_ACKMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `H_NYETMSK1` reader - "]
pub type H_NYETMSK1_R = crate::BitReader;
#[doc = "Field `H_NYETMSK1` writer - "]
pub type H_NYETMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `H_XACTERRMSK1` reader - "]
pub type H_XACTERRMSK1_R = crate::BitReader;
#[doc = "Field `H_XACTERRMSK1` writer - "]
pub type H_XACTERRMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `H_BBLERRMSK1` reader - "]
pub type H_BBLERRMSK1_R = crate::BitReader;
#[doc = "Field `H_BBLERRMSK1` writer - "]
pub type H_BBLERRMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `H_FRMOVRUNMSK1` reader - "]
pub type H_FRMOVRUNMSK1_R = crate::BitReader;
#[doc = "Field `H_FRMOVRUNMSK1` writer - "]
pub type H_FRMOVRUNMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `H_DATATGLERRMSK1` reader - "]
pub type H_DATATGLERRMSK1_R = crate::BitReader;
#[doc = "Field `H_DATATGLERRMSK1` writer - "]
pub type H_DATATGLERRMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `H_BNAINTRMSK1` reader - "]
pub type H_BNAINTRMSK1_R = crate::BitReader;
#[doc = "Field `H_BNAINTRMSK1` writer - "]
pub type H_BNAINTRMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `H_DESC_LST_ROLLINTRMSK1` reader - "]
pub type H_DESC_LST_ROLLINTRMSK1_R = crate::BitReader;
#[doc = "Field `H_DESC_LST_ROLLINTRMSK1` writer - "]
pub type H_DESC_LST_ROLLINTRMSK1_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0"]
#[inline(always)]
pub fn h_xfercomplmsk1(&self) -> H_XFERCOMPLMSK1_R {
H_XFERCOMPLMSK1_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1"]
#[inline(always)]
pub fn h_chhltdmsk1(&self) -> H_CHHLTDMSK1_R {
H_CHHLTDMSK1_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2"]
#[inline(always)]
pub fn h_ahberrmsk1(&self) -> H_AHBERRMSK1_R {
H_AHBERRMSK1_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3"]
#[inline(always)]
pub fn h_stallmsk1(&self) -> H_STALLMSK1_R {
H_STALLMSK1_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4"]
#[inline(always)]
pub fn h_nakmsk1(&self) -> H_NAKMSK1_R {
H_NAKMSK1_R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5"]
#[inline(always)]
pub fn h_ackmsk1(&self) -> H_ACKMSK1_R {
H_ACKMSK1_R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6"]
#[inline(always)]
pub fn h_nyetmsk1(&self) -> H_NYETMSK1_R {
H_NYETMSK1_R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7"]
#[inline(always)]
pub fn h_xacterrmsk1(&self) -> H_XACTERRMSK1_R {
H_XACTERRMSK1_R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8"]
#[inline(always)]
pub fn h_bblerrmsk1(&self) -> H_BBLERRMSK1_R {
H_BBLERRMSK1_R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9"]
#[inline(always)]
pub fn h_frmovrunmsk1(&self) -> H_FRMOVRUNMSK1_R {
H_FRMOVRUNMSK1_R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10"]
#[inline(always)]
pub fn h_datatglerrmsk1(&self) -> H_DATATGLERRMSK1_R {
H_DATATGLERRMSK1_R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11"]
#[inline(always)]
pub fn h_bnaintrmsk1(&self) -> H_BNAINTRMSK1_R {
H_BNAINTRMSK1_R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 13"]
#[inline(always)]
pub fn h_desc_lst_rollintrmsk1(&self) -> H_DESC_LST_ROLLINTRMSK1_R {
H_DESC_LST_ROLLINTRMSK1_R::new(((self.bits >> 13) & 1) != 0)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HCINTMSK1")
.field(
"h_xfercomplmsk1",
&format_args!("{}", self.h_xfercomplmsk1().bit()),
)
.field(
"h_chhltdmsk1",
&format_args!("{}", self.h_chhltdmsk1().bit()),
)
.field(
"h_ahberrmsk1",
&format_args!("{}", self.h_ahberrmsk1().bit()),
)
.field("h_stallmsk1", &format_args!("{}", self.h_stallmsk1().bit()))
.field("h_nakmsk1", &format_args!("{}", self.h_nakmsk1().bit()))
.field("h_ackmsk1", &format_args!("{}", self.h_ackmsk1().bit()))
.field("h_nyetmsk1", &format_args!("{}", self.h_nyetmsk1().bit()))
.field(
"h_xacterrmsk1",
&format_args!("{}", self.h_xacterrmsk1().bit()),
)
.field(
"h_bblerrmsk1",
&format_args!("{}", self.h_bblerrmsk1().bit()),
)
.field(
"h_frmovrunmsk1",
&format_args!("{}", self.h_frmovrunmsk1().bit()),
)
.field(
"h_datatglerrmsk1",
&format_args!("{}", self.h_datatglerrmsk1().bit()),
)
.field(
"h_bnaintrmsk1",
&format_args!("{}", self.h_bnaintrmsk1().bit()),
)
.field(
"h_desc_lst_rollintrmsk1",
&format_args!("{}", self.h_desc_lst_rollintrmsk1().bit()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<HCINTMSK1_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
core::fmt::Debug::fmt(&self.read(), f)
}
}
impl W {
#[doc = "Bit 0"]
#[inline(always)]
#[must_use]
pub fn h_xfercomplmsk1(&mut self) -> H_XFERCOMPLMSK1_W<HCINTMSK1_SPEC> {
H_XFERCOMPLMSK1_W::new(self, 0)
}
#[doc = "Bit 1"]
#[inline(always)]
#[must_use]
pub fn h_chhltdmsk1(&mut self) -> H_CHHLTDMSK1_W<HCINTMSK1_SPEC> {
H_CHHLTDMSK1_W::new(self, 1)
}
#[doc = "Bit 2"]
#[inline(always)]
#[must_use]
pub fn h_ahberrmsk1(&mut self) -> H_AHBERRMSK1_W<HCINTMSK1_SPEC> {
H_AHBERRMSK1_W::new(self, 2)
}
#[doc = "Bit 3"]
#[inline(always)]
#[must_use]
pub fn h_stallmsk1(&mut self) -> H_STALLMSK1_W<HCINTMSK1_SPEC> {
H_STALLMSK1_W::new(self, 3)
}
#[doc = "Bit 4"]
#[inline(always)]
#[must_use]
pub fn h_nakmsk1(&mut self) -> H_NAKMSK1_W<HCINTMSK1_SPEC> {
H_NAKMSK1_W::new(self, 4)
}
#[doc = "Bit 5"]
#[inline(always)]
#[must_use]
pub fn h_ackmsk1(&mut self) -> H_ACKMSK1_W<HCINTMSK1_SPEC> {
H_ACKMSK1_W::new(self, 5)
}
#[doc = "Bit 6"]
#[inline(always)]
#[must_use]
pub fn h_nyetmsk1(&mut self) -> H_NYETMSK1_W<HCINTMSK1_SPEC> {
H_NYETMSK1_W::new(self, 6)
}
#[doc = "Bit 7"]
#[inline(always)]
#[must_use]
pub fn h_xacterrmsk1(&mut self) -> H_XACTERRMSK1_W<HCINTMSK1_SPEC> {
H_XACTERRMSK1_W::new(self, 7)
}
#[doc = "Bit 8"]
#[inline(always)]
#[must_use]
pub fn h_bblerrmsk1(&mut self) -> H_BBLERRMSK1_W<HCINTMSK1_SPEC> {
H_BBLERRMSK1_W::new(self, 8)
}
#[doc = "Bit 9"]
#[inline(always)]
#[must_use]
pub fn h_frmovrunmsk1(&mut self) -> H_FRMOVRUNMSK1_W<HCINTMSK1_SPEC> {
H_FRMOVRUNMSK1_W::new(self, 9)
}
#[doc = "Bit 10"]
#[inline(always)]
#[must_use]
pub fn h_datatglerrmsk1(&mut self) -> H_DATATGLERRMSK1_W<HCINTMSK1_SPEC> {
H_DATATGLERRMSK1_W::new(self, 10)
}
#[doc = "Bit 11"]
#[inline(always)]
#[must_use]
pub fn h_bnaintrmsk1(&mut self) -> H_BNAINTRMSK1_W<HCINTMSK1_SPEC> {
H_BNAINTRMSK1_W::new(self, 11)
}
#[doc = "Bit 13"]
#[inline(always)]
#[must_use]
pub fn h_desc_lst_rollintrmsk1(&mut self) -> H_DESC_LST_ROLLINTRMSK1_W<HCINTMSK1_SPEC> {
H_DESC_LST_ROLLINTRMSK1_W::new(self, 13)
}
}
#[doc = "\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hcintmsk1::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`hcintmsk1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct HCINTMSK1_SPEC;
impl crate::RegisterSpec for HCINTMSK1_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`hcintmsk1::R`](R) reader structure"]
impl crate::Readable for HCINTMSK1_SPEC {}
#[doc = "`write(|w| ..)` method takes [`hcintmsk1::W`](W) writer structure"]
impl crate::Writable for HCINTMSK1_SPEC {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets HCINTMSK1 to value 0"]
impl crate::Resettable for HCINTMSK1_SPEC {
const RESET_VALUE: u32 = 0;
}