esp32s3 0.15.0

Peripheral access crate for the ESP32-S3
Documentation
#[doc = "Register `DOEPINT6` reader"]
pub struct R(crate::R<DOEPINT6_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<DOEPINT6_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<DOEPINT6_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<DOEPINT6_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `DOEPINT6` writer"]
pub struct W(crate::W<DOEPINT6_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<DOEPINT6_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<DOEPINT6_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<DOEPINT6_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `XFERCOMPL6` reader - "]
pub type XFERCOMPL6_R = crate::BitReader<bool>;
#[doc = "Field `XFERCOMPL6` writer - "]
pub type XFERCOMPL6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `EPDISBLD6` reader - "]
pub type EPDISBLD6_R = crate::BitReader<bool>;
#[doc = "Field `EPDISBLD6` writer - "]
pub type EPDISBLD6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `AHBERR6` reader - "]
pub type AHBERR6_R = crate::BitReader<bool>;
#[doc = "Field `AHBERR6` writer - "]
pub type AHBERR6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `SETUP6` reader - "]
pub type SETUP6_R = crate::BitReader<bool>;
#[doc = "Field `SETUP6` writer - "]
pub type SETUP6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `OUTTKNEPDIS6` reader - "]
pub type OUTTKNEPDIS6_R = crate::BitReader<bool>;
#[doc = "Field `OUTTKNEPDIS6` writer - "]
pub type OUTTKNEPDIS6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `STSPHSERCVD6` reader - "]
pub type STSPHSERCVD6_R = crate::BitReader<bool>;
#[doc = "Field `STSPHSERCVD6` writer - "]
pub type STSPHSERCVD6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `BACK2BACKSETUP6` reader - "]
pub type BACK2BACKSETUP6_R = crate::BitReader<bool>;
#[doc = "Field `BACK2BACKSETUP6` writer - "]
pub type BACK2BACKSETUP6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `OUTPKTERR6` reader - "]
pub type OUTPKTERR6_R = crate::BitReader<bool>;
#[doc = "Field `OUTPKTERR6` writer - "]
pub type OUTPKTERR6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `BNAINTR6` reader - "]
pub type BNAINTR6_R = crate::BitReader<bool>;
#[doc = "Field `BNAINTR6` writer - "]
pub type BNAINTR6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `PKTDRPSTS6` reader - "]
pub type PKTDRPSTS6_R = crate::BitReader<bool>;
#[doc = "Field `PKTDRPSTS6` writer - "]
pub type PKTDRPSTS6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `BBLEERR6` reader - "]
pub type BBLEERR6_R = crate::BitReader<bool>;
#[doc = "Field `BBLEERR6` writer - "]
pub type BBLEERR6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `NAKINTRPT6` reader - "]
pub type NAKINTRPT6_R = crate::BitReader<bool>;
#[doc = "Field `NAKINTRPT6` writer - "]
pub type NAKINTRPT6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `NYEPINTRPT6` reader - "]
pub type NYEPINTRPT6_R = crate::BitReader<bool>;
#[doc = "Field `NYEPINTRPT6` writer - "]
pub type NYEPINTRPT6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
#[doc = "Field `STUPPKTRCVD6` reader - "]
pub type STUPPKTRCVD6_R = crate::BitReader<bool>;
#[doc = "Field `STUPPKTRCVD6` writer - "]
pub type STUPPKTRCVD6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DOEPINT6_SPEC, bool, O>;
impl R {
    #[doc = "Bit 0"]
    #[inline(always)]
    pub fn xfercompl6(&self) -> XFERCOMPL6_R {
        XFERCOMPL6_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1"]
    #[inline(always)]
    pub fn epdisbld6(&self) -> EPDISBLD6_R {
        EPDISBLD6_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2"]
    #[inline(always)]
    pub fn ahberr6(&self) -> AHBERR6_R {
        AHBERR6_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3"]
    #[inline(always)]
    pub fn setup6(&self) -> SETUP6_R {
        SETUP6_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4"]
    #[inline(always)]
    pub fn outtknepdis6(&self) -> OUTTKNEPDIS6_R {
        OUTTKNEPDIS6_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5"]
    #[inline(always)]
    pub fn stsphsercvd6(&self) -> STSPHSERCVD6_R {
        STSPHSERCVD6_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6"]
    #[inline(always)]
    pub fn back2backsetup6(&self) -> BACK2BACKSETUP6_R {
        BACK2BACKSETUP6_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 8"]
    #[inline(always)]
    pub fn outpkterr6(&self) -> OUTPKTERR6_R {
        OUTPKTERR6_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9"]
    #[inline(always)]
    pub fn bnaintr6(&self) -> BNAINTR6_R {
        BNAINTR6_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 11"]
    #[inline(always)]
    pub fn pktdrpsts6(&self) -> PKTDRPSTS6_R {
        PKTDRPSTS6_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12"]
    #[inline(always)]
    pub fn bbleerr6(&self) -> BBLEERR6_R {
        BBLEERR6_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13"]
    #[inline(always)]
    pub fn nakintrpt6(&self) -> NAKINTRPT6_R {
        NAKINTRPT6_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14"]
    #[inline(always)]
    pub fn nyepintrpt6(&self) -> NYEPINTRPT6_R {
        NYEPINTRPT6_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15"]
    #[inline(always)]
    pub fn stuppktrcvd6(&self) -> STUPPKTRCVD6_R {
        STUPPKTRCVD6_R::new(((self.bits >> 15) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0"]
    #[inline(always)]
    #[must_use]
    pub fn xfercompl6(&mut self) -> XFERCOMPL6_W<0> {
        XFERCOMPL6_W::new(self)
    }
    #[doc = "Bit 1"]
    #[inline(always)]
    #[must_use]
    pub fn epdisbld6(&mut self) -> EPDISBLD6_W<1> {
        EPDISBLD6_W::new(self)
    }
    #[doc = "Bit 2"]
    #[inline(always)]
    #[must_use]
    pub fn ahberr6(&mut self) -> AHBERR6_W<2> {
        AHBERR6_W::new(self)
    }
    #[doc = "Bit 3"]
    #[inline(always)]
    #[must_use]
    pub fn setup6(&mut self) -> SETUP6_W<3> {
        SETUP6_W::new(self)
    }
    #[doc = "Bit 4"]
    #[inline(always)]
    #[must_use]
    pub fn outtknepdis6(&mut self) -> OUTTKNEPDIS6_W<4> {
        OUTTKNEPDIS6_W::new(self)
    }
    #[doc = "Bit 5"]
    #[inline(always)]
    #[must_use]
    pub fn stsphsercvd6(&mut self) -> STSPHSERCVD6_W<5> {
        STSPHSERCVD6_W::new(self)
    }
    #[doc = "Bit 6"]
    #[inline(always)]
    #[must_use]
    pub fn back2backsetup6(&mut self) -> BACK2BACKSETUP6_W<6> {
        BACK2BACKSETUP6_W::new(self)
    }
    #[doc = "Bit 8"]
    #[inline(always)]
    #[must_use]
    pub fn outpkterr6(&mut self) -> OUTPKTERR6_W<8> {
        OUTPKTERR6_W::new(self)
    }
    #[doc = "Bit 9"]
    #[inline(always)]
    #[must_use]
    pub fn bnaintr6(&mut self) -> BNAINTR6_W<9> {
        BNAINTR6_W::new(self)
    }
    #[doc = "Bit 11"]
    #[inline(always)]
    #[must_use]
    pub fn pktdrpsts6(&mut self) -> PKTDRPSTS6_W<11> {
        PKTDRPSTS6_W::new(self)
    }
    #[doc = "Bit 12"]
    #[inline(always)]
    #[must_use]
    pub fn bbleerr6(&mut self) -> BBLEERR6_W<12> {
        BBLEERR6_W::new(self)
    }
    #[doc = "Bit 13"]
    #[inline(always)]
    #[must_use]
    pub fn nakintrpt6(&mut self) -> NAKINTRPT6_W<13> {
        NAKINTRPT6_W::new(self)
    }
    #[doc = "Bit 14"]
    #[inline(always)]
    #[must_use]
    pub fn nyepintrpt6(&mut self) -> NYEPINTRPT6_W<14> {
        NYEPINTRPT6_W::new(self)
    }
    #[doc = "Bit 15"]
    #[inline(always)]
    #[must_use]
    pub fn stuppktrcvd6(&mut self) -> STUPPKTRCVD6_W<15> {
        STUPPKTRCVD6_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 [doepint6](index.html) module"]
pub struct DOEPINT6_SPEC;
impl crate::RegisterSpec for DOEPINT6_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [doepint6::R](R) reader structure"]
impl crate::Readable for DOEPINT6_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [doepint6::W](W) writer structure"]
impl crate::Writable for DOEPINT6_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 DOEPINT6 to value 0"]
impl crate::Resettable for DOEPINT6_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}