#[doc = "Register `DOEPINT5` reader"]
pub type R = crate::R<DOEPINT5_SPEC>;
#[doc = "Register `DOEPINT5` writer"]
pub type W = crate::W<DOEPINT5_SPEC>;
#[doc = "Field `XFERCOMPL5` reader - "]
pub type XFERCOMPL5_R = crate::BitReader;
#[doc = "Field `XFERCOMPL5` writer - "]
pub type XFERCOMPL5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `EPDISBLD5` reader - "]
pub type EPDISBLD5_R = crate::BitReader;
#[doc = "Field `EPDISBLD5` writer - "]
pub type EPDISBLD5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AHBERR5` reader - "]
pub type AHBERR5_R = crate::BitReader;
#[doc = "Field `AHBERR5` writer - "]
pub type AHBERR5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SETUP5` reader - "]
pub type SETUP5_R = crate::BitReader;
#[doc = "Field `SETUP5` writer - "]
pub type SETUP5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `OUTTKNEPDIS5` reader - "]
pub type OUTTKNEPDIS5_R = crate::BitReader;
#[doc = "Field `OUTTKNEPDIS5` writer - "]
pub type OUTTKNEPDIS5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `STSPHSERCVD5` reader - "]
pub type STSPHSERCVD5_R = crate::BitReader;
#[doc = "Field `STSPHSERCVD5` writer - "]
pub type STSPHSERCVD5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BACK2BACKSETUP5` reader - "]
pub type BACK2BACKSETUP5_R = crate::BitReader;
#[doc = "Field `BACK2BACKSETUP5` writer - "]
pub type BACK2BACKSETUP5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `OUTPKTERR5` reader - "]
pub type OUTPKTERR5_R = crate::BitReader;
#[doc = "Field `OUTPKTERR5` writer - "]
pub type OUTPKTERR5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BNAINTR5` reader - "]
pub type BNAINTR5_R = crate::BitReader;
#[doc = "Field `BNAINTR5` writer - "]
pub type BNAINTR5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `PKTDRPSTS5` reader - "]
pub type PKTDRPSTS5_R = crate::BitReader;
#[doc = "Field `PKTDRPSTS5` writer - "]
pub type PKTDRPSTS5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BBLEERR5` reader - "]
pub type BBLEERR5_R = crate::BitReader;
#[doc = "Field `BBLEERR5` writer - "]
pub type BBLEERR5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `NAKINTRPT5` reader - "]
pub type NAKINTRPT5_R = crate::BitReader;
#[doc = "Field `NAKINTRPT5` writer - "]
pub type NAKINTRPT5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `NYEPINTRPT5` reader - "]
pub type NYEPINTRPT5_R = crate::BitReader;
#[doc = "Field `NYEPINTRPT5` writer - "]
pub type NYEPINTRPT5_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `STUPPKTRCVD5` reader - "]
pub type STUPPKTRCVD5_R = crate::BitReader;
#[doc = "Field `STUPPKTRCVD5` writer - "]
pub type STUPPKTRCVD5_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0"]
#[inline(always)]
pub fn xfercompl5(&self) -> XFERCOMPL5_R {
XFERCOMPL5_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1"]
#[inline(always)]
pub fn epdisbld5(&self) -> EPDISBLD5_R {
EPDISBLD5_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2"]
#[inline(always)]
pub fn ahberr5(&self) -> AHBERR5_R {
AHBERR5_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3"]
#[inline(always)]
pub fn setup5(&self) -> SETUP5_R {
SETUP5_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4"]
#[inline(always)]
pub fn outtknepdis5(&self) -> OUTTKNEPDIS5_R {
OUTTKNEPDIS5_R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5"]
#[inline(always)]
pub fn stsphsercvd5(&self) -> STSPHSERCVD5_R {
STSPHSERCVD5_R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6"]
#[inline(always)]
pub fn back2backsetup5(&self) -> BACK2BACKSETUP5_R {
BACK2BACKSETUP5_R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 8"]
#[inline(always)]
pub fn outpkterr5(&self) -> OUTPKTERR5_R {
OUTPKTERR5_R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9"]
#[inline(always)]
pub fn bnaintr5(&self) -> BNAINTR5_R {
BNAINTR5_R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 11"]
#[inline(always)]
pub fn pktdrpsts5(&self) -> PKTDRPSTS5_R {
PKTDRPSTS5_R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 12"]
#[inline(always)]
pub fn bbleerr5(&self) -> BBLEERR5_R {
BBLEERR5_R::new(((self.bits >> 12) & 1) != 0)
}
#[doc = "Bit 13"]
#[inline(always)]
pub fn nakintrpt5(&self) -> NAKINTRPT5_R {
NAKINTRPT5_R::new(((self.bits >> 13) & 1) != 0)
}
#[doc = "Bit 14"]
#[inline(always)]
pub fn nyepintrpt5(&self) -> NYEPINTRPT5_R {
NYEPINTRPT5_R::new(((self.bits >> 14) & 1) != 0)
}
#[doc = "Bit 15"]
#[inline(always)]
pub fn stuppktrcvd5(&self) -> STUPPKTRCVD5_R {
STUPPKTRCVD5_R::new(((self.bits >> 15) & 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("DOEPINT5")
.field("xfercompl5", &format_args!("{}", self.xfercompl5().bit()))
.field("epdisbld5", &format_args!("{}", self.epdisbld5().bit()))
.field("ahberr5", &format_args!("{}", self.ahberr5().bit()))
.field("setup5", &format_args!("{}", self.setup5().bit()))
.field(
"outtknepdis5",
&format_args!("{}", self.outtknepdis5().bit()),
)
.field(
"stsphsercvd5",
&format_args!("{}", self.stsphsercvd5().bit()),
)
.field(
"back2backsetup5",
&format_args!("{}", self.back2backsetup5().bit()),
)
.field("outpkterr5", &format_args!("{}", self.outpkterr5().bit()))
.field("bnaintr5", &format_args!("{}", self.bnaintr5().bit()))
.field("pktdrpsts5", &format_args!("{}", self.pktdrpsts5().bit()))
.field("bbleerr5", &format_args!("{}", self.bbleerr5().bit()))
.field("nakintrpt5", &format_args!("{}", self.nakintrpt5().bit()))
.field("nyepintrpt5", &format_args!("{}", self.nyepintrpt5().bit()))
.field(
"stuppktrcvd5",
&format_args!("{}", self.stuppktrcvd5().bit()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<DOEPINT5_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 xfercompl5(&mut self) -> XFERCOMPL5_W<DOEPINT5_SPEC> {
XFERCOMPL5_W::new(self, 0)
}
#[doc = "Bit 1"]
#[inline(always)]
#[must_use]
pub fn epdisbld5(&mut self) -> EPDISBLD5_W<DOEPINT5_SPEC> {
EPDISBLD5_W::new(self, 1)
}
#[doc = "Bit 2"]
#[inline(always)]
#[must_use]
pub fn ahberr5(&mut self) -> AHBERR5_W<DOEPINT5_SPEC> {
AHBERR5_W::new(self, 2)
}
#[doc = "Bit 3"]
#[inline(always)]
#[must_use]
pub fn setup5(&mut self) -> SETUP5_W<DOEPINT5_SPEC> {
SETUP5_W::new(self, 3)
}
#[doc = "Bit 4"]
#[inline(always)]
#[must_use]
pub fn outtknepdis5(&mut self) -> OUTTKNEPDIS5_W<DOEPINT5_SPEC> {
OUTTKNEPDIS5_W::new(self, 4)
}
#[doc = "Bit 5"]
#[inline(always)]
#[must_use]
pub fn stsphsercvd5(&mut self) -> STSPHSERCVD5_W<DOEPINT5_SPEC> {
STSPHSERCVD5_W::new(self, 5)
}
#[doc = "Bit 6"]
#[inline(always)]
#[must_use]
pub fn back2backsetup5(&mut self) -> BACK2BACKSETUP5_W<DOEPINT5_SPEC> {
BACK2BACKSETUP5_W::new(self, 6)
}
#[doc = "Bit 8"]
#[inline(always)]
#[must_use]
pub fn outpkterr5(&mut self) -> OUTPKTERR5_W<DOEPINT5_SPEC> {
OUTPKTERR5_W::new(self, 8)
}
#[doc = "Bit 9"]
#[inline(always)]
#[must_use]
pub fn bnaintr5(&mut self) -> BNAINTR5_W<DOEPINT5_SPEC> {
BNAINTR5_W::new(self, 9)
}
#[doc = "Bit 11"]
#[inline(always)]
#[must_use]
pub fn pktdrpsts5(&mut self) -> PKTDRPSTS5_W<DOEPINT5_SPEC> {
PKTDRPSTS5_W::new(self, 11)
}
#[doc = "Bit 12"]
#[inline(always)]
#[must_use]
pub fn bbleerr5(&mut self) -> BBLEERR5_W<DOEPINT5_SPEC> {
BBLEERR5_W::new(self, 12)
}
#[doc = "Bit 13"]
#[inline(always)]
#[must_use]
pub fn nakintrpt5(&mut self) -> NAKINTRPT5_W<DOEPINT5_SPEC> {
NAKINTRPT5_W::new(self, 13)
}
#[doc = "Bit 14"]
#[inline(always)]
#[must_use]
pub fn nyepintrpt5(&mut self) -> NYEPINTRPT5_W<DOEPINT5_SPEC> {
NYEPINTRPT5_W::new(self, 14)
}
#[doc = "Bit 15"]
#[inline(always)]
#[must_use]
pub fn stuppktrcvd5(&mut self) -> STUPPKTRCVD5_W<DOEPINT5_SPEC> {
STUPPKTRCVD5_W::new(self, 15)
}
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
}
#[doc = "\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`doepint5::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 [`doepint5::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DOEPINT5_SPEC;
impl crate::RegisterSpec for DOEPINT5_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`doepint5::R`](R) reader structure"]
impl crate::Readable for DOEPINT5_SPEC {}
#[doc = "`write(|w| ..)` method takes [`doepint5::W`](W) writer structure"]
impl crate::Writable for DOEPINT5_SPEC {
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets DOEPINT5 to value 0"]
impl crate::Resettable for DOEPINT5_SPEC {
const RESET_VALUE: u32 = 0;
}