esp32s3 0.15.0

Peripheral access crate for the ESP32-S3
Documentation
#[doc = "Register `DOEPINT1` reader"]
pub struct R(crate::R<DOEPINT1_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<DOEPINT1_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<DOEPINT1_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<DOEPINT1_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `DOEPINT1` writer"]
pub struct W(crate::W<DOEPINT1_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<DOEPINT1_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<DOEPINT1_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<DOEPINT1_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `XFERCOMPL1` reader - "]
pub type XFERCOMPL1_R = crate::BitReader<bool>;
#[doc = "Field `XFERCOMPL1` writer - "]
pub type XFERCOMPL1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `EPDISBLD1` reader - "]
pub type EPDISBLD1_R = crate::BitReader<bool>;
#[doc = "Field `EPDISBLD1` writer - "]
pub type EPDISBLD1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `AHBERR1` reader - "]
pub type AHBERR1_R = crate::BitReader<bool>;
#[doc = "Field `AHBERR1` writer - "]
pub type AHBERR1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `SETUP1` reader - "]
pub type SETUP1_R = crate::BitReader<bool>;
#[doc = "Field `SETUP1` writer - "]
pub type SETUP1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `OUTTKNEPDIS1` reader - "]
pub type OUTTKNEPDIS1_R = crate::BitReader<bool>;
#[doc = "Field `OUTTKNEPDIS1` writer - "]
pub type OUTTKNEPDIS1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `STSPHSERCVD1` reader - "]
pub type STSPHSERCVD1_R = crate::BitReader<bool>;
#[doc = "Field `STSPHSERCVD1` writer - "]
pub type STSPHSERCVD1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `BACK2BACKSETUP1` reader - "]
pub type BACK2BACKSETUP1_R = crate::BitReader<bool>;
#[doc = "Field `BACK2BACKSETUP1` writer - "]
pub type BACK2BACKSETUP1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `OUTPKTERR1` reader - "]
pub type OUTPKTERR1_R = crate::BitReader<bool>;
#[doc = "Field `OUTPKTERR1` writer - "]
pub type OUTPKTERR1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `BNAINTR1` reader - "]
pub type BNAINTR1_R = crate::BitReader<bool>;
#[doc = "Field `BNAINTR1` writer - "]
pub type BNAINTR1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `PKTDRPSTS1` reader - "]
pub type PKTDRPSTS1_R = crate::BitReader<bool>;
#[doc = "Field `PKTDRPSTS1` writer - "]
pub type PKTDRPSTS1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `BBLEERR1` reader - "]
pub type BBLEERR1_R = crate::BitReader<bool>;
#[doc = "Field `BBLEERR1` writer - "]
pub type BBLEERR1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `NAKINTRPT1` reader - "]
pub type NAKINTRPT1_R = crate::BitReader<bool>;
#[doc = "Field `NAKINTRPT1` writer - "]
pub type NAKINTRPT1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `NYEPINTRPT1` reader - "]
pub type NYEPINTRPT1_R = crate::BitReader<bool>;
#[doc = "Field `NYEPINTRPT1` writer - "]
pub type NYEPINTRPT1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
#[doc = "Field `STUPPKTRCVD1` reader - "]
pub type STUPPKTRCVD1_R = crate::BitReader<bool>;
#[doc = "Field `STUPPKTRCVD1` writer - "]
pub type STUPPKTRCVD1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT1_SPEC, bool, O>;
impl R {
    #[doc = "Bit 0"]
    #[inline(always)]
    pub fn xfercompl1(&self) -> XFERCOMPL1_R {
        XFERCOMPL1_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1"]
    #[inline(always)]
    pub fn epdisbld1(&self) -> EPDISBLD1_R {
        EPDISBLD1_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2"]
    #[inline(always)]
    pub fn ahberr1(&self) -> AHBERR1_R {
        AHBERR1_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3"]
    #[inline(always)]
    pub fn setup1(&self) -> SETUP1_R {
        SETUP1_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4"]
    #[inline(always)]
    pub fn outtknepdis1(&self) -> OUTTKNEPDIS1_R {
        OUTTKNEPDIS1_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5"]
    #[inline(always)]
    pub fn stsphsercvd1(&self) -> STSPHSERCVD1_R {
        STSPHSERCVD1_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6"]
    #[inline(always)]
    pub fn back2backsetup1(&self) -> BACK2BACKSETUP1_R {
        BACK2BACKSETUP1_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 8"]
    #[inline(always)]
    pub fn outpkterr1(&self) -> OUTPKTERR1_R {
        OUTPKTERR1_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9"]
    #[inline(always)]
    pub fn bnaintr1(&self) -> BNAINTR1_R {
        BNAINTR1_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 11"]
    #[inline(always)]
    pub fn pktdrpsts1(&self) -> PKTDRPSTS1_R {
        PKTDRPSTS1_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12"]
    #[inline(always)]
    pub fn bbleerr1(&self) -> BBLEERR1_R {
        BBLEERR1_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13"]
    #[inline(always)]
    pub fn nakintrpt1(&self) -> NAKINTRPT1_R {
        NAKINTRPT1_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14"]
    #[inline(always)]
    pub fn nyepintrpt1(&self) -> NYEPINTRPT1_R {
        NYEPINTRPT1_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15"]
    #[inline(always)]
    pub fn stuppktrcvd1(&self) -> STUPPKTRCVD1_R {
        STUPPKTRCVD1_R::new(((self.bits >> 15) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0"]
    #[inline(always)]
    #[must_use]
    pub fn xfercompl1(&mut self) -> XFERCOMPL1_W<0> {
        XFERCOMPL1_W::new(self)
    }
    #[doc = "Bit 1"]
    #[inline(always)]
    #[must_use]
    pub fn epdisbld1(&mut self) -> EPDISBLD1_W<1> {
        EPDISBLD1_W::new(self)
    }
    #[doc = "Bit 2"]
    #[inline(always)]
    #[must_use]
    pub fn ahberr1(&mut self) -> AHBERR1_W<2> {
        AHBERR1_W::new(self)
    }
    #[doc = "Bit 3"]
    #[inline(always)]
    #[must_use]
    pub fn setup1(&mut self) -> SETUP1_W<3> {
        SETUP1_W::new(self)
    }
    #[doc = "Bit 4"]
    #[inline(always)]
    #[must_use]
    pub fn outtknepdis1(&mut self) -> OUTTKNEPDIS1_W<4> {
        OUTTKNEPDIS1_W::new(self)
    }
    #[doc = "Bit 5"]
    #[inline(always)]
    #[must_use]
    pub fn stsphsercvd1(&mut self) -> STSPHSERCVD1_W<5> {
        STSPHSERCVD1_W::new(self)
    }
    #[doc = "Bit 6"]
    #[inline(always)]
    #[must_use]
    pub fn back2backsetup1(&mut self) -> BACK2BACKSETUP1_W<6> {
        BACK2BACKSETUP1_W::new(self)
    }
    #[doc = "Bit 8"]
    #[inline(always)]
    #[must_use]
    pub fn outpkterr1(&mut self) -> OUTPKTERR1_W<8> {
        OUTPKTERR1_W::new(self)
    }
    #[doc = "Bit 9"]
    #[inline(always)]
    #[must_use]
    pub fn bnaintr1(&mut self) -> BNAINTR1_W<9> {
        BNAINTR1_W::new(self)
    }
    #[doc = "Bit 11"]
    #[inline(always)]
    #[must_use]
    pub fn pktdrpsts1(&mut self) -> PKTDRPSTS1_W<11> {
        PKTDRPSTS1_W::new(self)
    }
    #[doc = "Bit 12"]
    #[inline(always)]
    #[must_use]
    pub fn bbleerr1(&mut self) -> BBLEERR1_W<12> {
        BBLEERR1_W::new(self)
    }
    #[doc = "Bit 13"]
    #[inline(always)]
    #[must_use]
    pub fn nakintrpt1(&mut self) -> NAKINTRPT1_W<13> {
        NAKINTRPT1_W::new(self)
    }
    #[doc = "Bit 14"]
    #[inline(always)]
    #[must_use]
    pub fn nyepintrpt1(&mut self) -> NYEPINTRPT1_W<14> {
        NYEPINTRPT1_W::new(self)
    }
    #[doc = "Bit 15"]
    #[inline(always)]
    #[must_use]
    pub fn stuppktrcvd1(&mut self) -> STUPPKTRCVD1_W<15> {
        STUPPKTRCVD1_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [doepint1](index.html) module"]
pub struct DOEPINT1_SPEC;
impl crate::RegisterSpec for DOEPINT1_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [doepint1::R](R) reader structure"]
impl crate::Readable for DOEPINT1_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [doepint1::W](W) writer structure"]
impl crate::Writable for DOEPINT1_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets DOEPINT1 to value 0"]
impl crate::Resettable for DOEPINT1_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}