pub type R = crate::R<GINTMSKrs>;
pub type W = crate::W<GINTMSKrs>;
pub type MMISM_R = crate::BitReader;
pub type MMISM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OTGINT_R = crate::BitReader;
pub type OTGINT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SOFM_R = crate::BitReader;
pub type SOFM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RXFLVLM_R = crate::BitReader;
pub type RXFLVLM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type NPTXFEM_R = crate::BitReader;
pub type NPTXFEM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GINAKEFFM_R = crate::BitReader;
pub type GINAKEFFM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type GONAKEFFM_R = crate::BitReader;
pub type GONAKEFFM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ESUSPM_R = crate::BitReader;
pub type ESUSPM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type USBSUSPM_R = crate::BitReader;
pub type USBSUSPM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type USBRST_R = crate::BitReader;
pub type USBRST_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ENUMDNEM_R = crate::BitReader;
pub type ENUMDNEM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ISOODRPM_R = crate::BitReader;
pub type ISOODRPM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type EOPFM_R = crate::BitReader;
pub type EOPFM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type IEPINT_R = crate::BitReader;
pub type IEPINT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type OEPINT_R = crate::BitReader;
pub type OEPINT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type IISOIXFRM_R = crate::BitReader;
pub type IISOIXFRM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type IPXFRM_R = crate::BitReader;
pub type IPXFRM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FSUSPM_R = crate::BitReader;
pub type FSUSPM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RSTDETM_R = crate::BitReader;
pub type RSTDETM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRTIM_R = crate::BitReader;
pub type HCIM_R = crate::BitReader;
pub type HCIM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PTXFEM_R = crate::BitReader;
pub type PTXFEM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type LPMINTM_R = crate::BitReader;
pub type LPMINTM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CIDSCHGM_R = crate::BitReader;
pub type CIDSCHGM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DISCINT_R = crate::BitReader;
pub type DISCINT_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SRQIM_R = crate::BitReader;
pub type SRQIM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WUIM_R = crate::BitReader;
pub type WUIM_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn mmism(&self) -> MMISM_R {
MMISM_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn otgint(&self) -> OTGINT_R {
OTGINT_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn sofm(&self) -> SOFM_R {
SOFM_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn rxflvlm(&self) -> RXFLVLM_R {
RXFLVLM_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn nptxfem(&self) -> NPTXFEM_R {
NPTXFEM_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn ginakeffm(&self) -> GINAKEFFM_R {
GINAKEFFM_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn gonakeffm(&self) -> GONAKEFFM_R {
GONAKEFFM_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn esuspm(&self) -> ESUSPM_R {
ESUSPM_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn usbsuspm(&self) -> USBSUSPM_R {
USBSUSPM_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn usbrst(&self) -> USBRST_R {
USBRST_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn enumdnem(&self) -> ENUMDNEM_R {
ENUMDNEM_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn isoodrpm(&self) -> ISOODRPM_R {
ISOODRPM_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn eopfm(&self) -> EOPFM_R {
EOPFM_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn iepint(&self) -> IEPINT_R {
IEPINT_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn oepint(&self) -> OEPINT_R {
OEPINT_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn iisoixfrm(&self) -> IISOIXFRM_R {
IISOIXFRM_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn ipxfrm(&self) -> IPXFRM_R {
IPXFRM_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn fsuspm(&self) -> FSUSPM_R {
FSUSPM_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn rstdetm(&self) -> RSTDETM_R {
RSTDETM_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn prtim(&self) -> PRTIM_R {
PRTIM_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn hcim(&self) -> HCIM_R {
HCIM_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn ptxfem(&self) -> PTXFEM_R {
PTXFEM_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn lpmintm(&self) -> LPMINTM_R {
LPMINTM_R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn cidschgm(&self) -> CIDSCHGM_R {
CIDSCHGM_R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn discint(&self) -> DISCINT_R {
DISCINT_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn srqim(&self) -> SRQIM_R {
SRQIM_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn wuim(&self) -> WUIM_R {
WUIM_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GINTMSK")
.field("mmism", &self.mmism())
.field("otgint", &self.otgint())
.field("sofm", &self.sofm())
.field("rxflvlm", &self.rxflvlm())
.field("nptxfem", &self.nptxfem())
.field("ginakeffm", &self.ginakeffm())
.field("gonakeffm", &self.gonakeffm())
.field("esuspm", &self.esuspm())
.field("usbsuspm", &self.usbsuspm())
.field("usbrst", &self.usbrst())
.field("enumdnem", &self.enumdnem())
.field("isoodrpm", &self.isoodrpm())
.field("eopfm", &self.eopfm())
.field("iepint", &self.iepint())
.field("oepint", &self.oepint())
.field("iisoixfrm", &self.iisoixfrm())
.field("ipxfrm", &self.ipxfrm())
.field("fsuspm", &self.fsuspm())
.field("rstdetm", &self.rstdetm())
.field("prtim", &self.prtim())
.field("hcim", &self.hcim())
.field("ptxfem", &self.ptxfem())
.field("lpmintm", &self.lpmintm())
.field("cidschgm", &self.cidschgm())
.field("discint", &self.discint())
.field("srqim", &self.srqim())
.field("wuim", &self.wuim())
.finish()
}
}
impl W {
#[inline(always)]
pub fn mmism(&mut self) -> MMISM_W<GINTMSKrs> {
MMISM_W::new(self, 1)
}
#[inline(always)]
pub fn otgint(&mut self) -> OTGINT_W<GINTMSKrs> {
OTGINT_W::new(self, 2)
}
#[inline(always)]
pub fn sofm(&mut self) -> SOFM_W<GINTMSKrs> {
SOFM_W::new(self, 3)
}
#[inline(always)]
pub fn rxflvlm(&mut self) -> RXFLVLM_W<GINTMSKrs> {
RXFLVLM_W::new(self, 4)
}
#[inline(always)]
pub fn nptxfem(&mut self) -> NPTXFEM_W<GINTMSKrs> {
NPTXFEM_W::new(self, 5)
}
#[inline(always)]
pub fn ginakeffm(&mut self) -> GINAKEFFM_W<GINTMSKrs> {
GINAKEFFM_W::new(self, 6)
}
#[inline(always)]
pub fn gonakeffm(&mut self) -> GONAKEFFM_W<GINTMSKrs> {
GONAKEFFM_W::new(self, 7)
}
#[inline(always)]
pub fn esuspm(&mut self) -> ESUSPM_W<GINTMSKrs> {
ESUSPM_W::new(self, 10)
}
#[inline(always)]
pub fn usbsuspm(&mut self) -> USBSUSPM_W<GINTMSKrs> {
USBSUSPM_W::new(self, 11)
}
#[inline(always)]
pub fn usbrst(&mut self) -> USBRST_W<GINTMSKrs> {
USBRST_W::new(self, 12)
}
#[inline(always)]
pub fn enumdnem(&mut self) -> ENUMDNEM_W<GINTMSKrs> {
ENUMDNEM_W::new(self, 13)
}
#[inline(always)]
pub fn isoodrpm(&mut self) -> ISOODRPM_W<GINTMSKrs> {
ISOODRPM_W::new(self, 14)
}
#[inline(always)]
pub fn eopfm(&mut self) -> EOPFM_W<GINTMSKrs> {
EOPFM_W::new(self, 15)
}
#[inline(always)]
pub fn iepint(&mut self) -> IEPINT_W<GINTMSKrs> {
IEPINT_W::new(self, 18)
}
#[inline(always)]
pub fn oepint(&mut self) -> OEPINT_W<GINTMSKrs> {
OEPINT_W::new(self, 19)
}
#[inline(always)]
pub fn iisoixfrm(&mut self) -> IISOIXFRM_W<GINTMSKrs> {
IISOIXFRM_W::new(self, 20)
}
#[inline(always)]
pub fn ipxfrm(&mut self) -> IPXFRM_W<GINTMSKrs> {
IPXFRM_W::new(self, 21)
}
#[inline(always)]
pub fn fsuspm(&mut self) -> FSUSPM_W<GINTMSKrs> {
FSUSPM_W::new(self, 22)
}
#[inline(always)]
pub fn rstdetm(&mut self) -> RSTDETM_W<GINTMSKrs> {
RSTDETM_W::new(self, 23)
}
#[inline(always)]
pub fn hcim(&mut self) -> HCIM_W<GINTMSKrs> {
HCIM_W::new(self, 25)
}
#[inline(always)]
pub fn ptxfem(&mut self) -> PTXFEM_W<GINTMSKrs> {
PTXFEM_W::new(self, 26)
}
#[inline(always)]
pub fn lpmintm(&mut self) -> LPMINTM_W<GINTMSKrs> {
LPMINTM_W::new(self, 27)
}
#[inline(always)]
pub fn cidschgm(&mut self) -> CIDSCHGM_W<GINTMSKrs> {
CIDSCHGM_W::new(self, 28)
}
#[inline(always)]
pub fn discint(&mut self) -> DISCINT_W<GINTMSKrs> {
DISCINT_W::new(self, 29)
}
#[inline(always)]
pub fn srqim(&mut self) -> SRQIM_W<GINTMSKrs> {
SRQIM_W::new(self, 30)
}
#[inline(always)]
pub fn wuim(&mut self) -> WUIM_W<GINTMSKrs> {
WUIM_W::new(self, 31)
}
}
pub struct GINTMSKrs;
impl crate::RegisterSpec for GINTMSKrs {
type Ux = u32;
}
impl crate::Readable for GINTMSKrs {}
impl crate::Writable for GINTMSKrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for GINTMSKrs {}