esp32s3 0.19.0

Peripheral access crate for the ESP32-S3
Documentation
#[doc = "Register `HCINT6` reader"]
pub struct R(crate::R<HCINT6_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<HCINT6_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<HCINT6_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<HCINT6_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `HCINT6` writer"]
pub struct W(crate::W<HCINT6_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<HCINT6_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<HCINT6_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<HCINT6_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `H_XFERCOMPL6` reader - "]
pub type H_XFERCOMPL6_R = crate::BitReader;
#[doc = "Field `H_XFERCOMPL6` writer - "]
pub type H_XFERCOMPL6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_CHHLTD6` reader - "]
pub type H_CHHLTD6_R = crate::BitReader;
#[doc = "Field `H_CHHLTD6` writer - "]
pub type H_CHHLTD6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_AHBERR6` reader - "]
pub type H_AHBERR6_R = crate::BitReader;
#[doc = "Field `H_AHBERR6` writer - "]
pub type H_AHBERR6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_STALL6` reader - "]
pub type H_STALL6_R = crate::BitReader;
#[doc = "Field `H_STALL6` writer - "]
pub type H_STALL6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_NACK6` reader - "]
pub type H_NACK6_R = crate::BitReader;
#[doc = "Field `H_NACK6` writer - "]
pub type H_NACK6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_ACK6` reader - "]
pub type H_ACK6_R = crate::BitReader;
#[doc = "Field `H_ACK6` writer - "]
pub type H_ACK6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_NYET6` reader - "]
pub type H_NYET6_R = crate::BitReader;
#[doc = "Field `H_NYET6` writer - "]
pub type H_NYET6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_XACTERR6` reader - "]
pub type H_XACTERR6_R = crate::BitReader;
#[doc = "Field `H_XACTERR6` writer - "]
pub type H_XACTERR6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_BBLERR6` reader - "]
pub type H_BBLERR6_R = crate::BitReader;
#[doc = "Field `H_BBLERR6` writer - "]
pub type H_BBLERR6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_FRMOVRUN6` reader - "]
pub type H_FRMOVRUN6_R = crate::BitReader;
#[doc = "Field `H_FRMOVRUN6` writer - "]
pub type H_FRMOVRUN6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_DATATGLERR6` reader - "]
pub type H_DATATGLERR6_R = crate::BitReader;
#[doc = "Field `H_DATATGLERR6` writer - "]
pub type H_DATATGLERR6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_BNAINTR6` reader - "]
pub type H_BNAINTR6_R = crate::BitReader;
#[doc = "Field `H_BNAINTR6` writer - "]
pub type H_BNAINTR6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_XCS_XACT_ERR6` reader - "]
pub type H_XCS_XACT_ERR6_R = crate::BitReader;
#[doc = "Field `H_XCS_XACT_ERR6` writer - "]
pub type H_XCS_XACT_ERR6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
#[doc = "Field `H_DESC_LST_ROLLINTR6` reader - "]
pub type H_DESC_LST_ROLLINTR6_R = crate::BitReader;
#[doc = "Field `H_DESC_LST_ROLLINTR6` writer - "]
pub type H_DESC_LST_ROLLINTR6_W<'a, const O: u8> = crate::BitWriter<'a, HCINT6_SPEC, O>;
impl R {
    #[doc = "Bit 0"]
    #[inline(always)]
    pub fn h_xfercompl6(&self) -> H_XFERCOMPL6_R {
        H_XFERCOMPL6_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1"]
    #[inline(always)]
    pub fn h_chhltd6(&self) -> H_CHHLTD6_R {
        H_CHHLTD6_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2"]
    #[inline(always)]
    pub fn h_ahberr6(&self) -> H_AHBERR6_R {
        H_AHBERR6_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3"]
    #[inline(always)]
    pub fn h_stall6(&self) -> H_STALL6_R {
        H_STALL6_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4"]
    #[inline(always)]
    pub fn h_nack6(&self) -> H_NACK6_R {
        H_NACK6_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5"]
    #[inline(always)]
    pub fn h_ack6(&self) -> H_ACK6_R {
        H_ACK6_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6"]
    #[inline(always)]
    pub fn h_nyet6(&self) -> H_NYET6_R {
        H_NYET6_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7"]
    #[inline(always)]
    pub fn h_xacterr6(&self) -> H_XACTERR6_R {
        H_XACTERR6_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8"]
    #[inline(always)]
    pub fn h_bblerr6(&self) -> H_BBLERR6_R {
        H_BBLERR6_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9"]
    #[inline(always)]
    pub fn h_frmovrun6(&self) -> H_FRMOVRUN6_R {
        H_FRMOVRUN6_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10"]
    #[inline(always)]
    pub fn h_datatglerr6(&self) -> H_DATATGLERR6_R {
        H_DATATGLERR6_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11"]
    #[inline(always)]
    pub fn h_bnaintr6(&self) -> H_BNAINTR6_R {
        H_BNAINTR6_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12"]
    #[inline(always)]
    pub fn h_xcs_xact_err6(&self) -> H_XCS_XACT_ERR6_R {
        H_XCS_XACT_ERR6_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13"]
    #[inline(always)]
    pub fn h_desc_lst_rollintr6(&self) -> H_DESC_LST_ROLLINTR6_R {
        H_DESC_LST_ROLLINTR6_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("HCINT6")
            .field(
                "h_xfercompl6",
                &format_args!("{}", self.h_xfercompl6().bit()),
            )
            .field("h_chhltd6", &format_args!("{}", self.h_chhltd6().bit()))
            .field("h_ahberr6", &format_args!("{}", self.h_ahberr6().bit()))
            .field("h_stall6", &format_args!("{}", self.h_stall6().bit()))
            .field("h_nack6", &format_args!("{}", self.h_nack6().bit()))
            .field("h_ack6", &format_args!("{}", self.h_ack6().bit()))
            .field("h_nyet6", &format_args!("{}", self.h_nyet6().bit()))
            .field("h_xacterr6", &format_args!("{}", self.h_xacterr6().bit()))
            .field("h_bblerr6", &format_args!("{}", self.h_bblerr6().bit()))
            .field("h_frmovrun6", &format_args!("{}", self.h_frmovrun6().bit()))
            .field(
                "h_datatglerr6",
                &format_args!("{}", self.h_datatglerr6().bit()),
            )
            .field("h_bnaintr6", &format_args!("{}", self.h_bnaintr6().bit()))
            .field(
                "h_xcs_xact_err6",
                &format_args!("{}", self.h_xcs_xact_err6().bit()),
            )
            .field(
                "h_desc_lst_rollintr6",
                &format_args!("{}", self.h_desc_lst_rollintr6().bit()),
            )
            .finish()
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<HCINT6_SPEC> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        self.read().fmt(f)
    }
}
impl W {
    #[doc = "Bit 0"]
    #[inline(always)]
    #[must_use]
    pub fn h_xfercompl6(&mut self) -> H_XFERCOMPL6_W<0> {
        H_XFERCOMPL6_W::new(self)
    }
    #[doc = "Bit 1"]
    #[inline(always)]
    #[must_use]
    pub fn h_chhltd6(&mut self) -> H_CHHLTD6_W<1> {
        H_CHHLTD6_W::new(self)
    }
    #[doc = "Bit 2"]
    #[inline(always)]
    #[must_use]
    pub fn h_ahberr6(&mut self) -> H_AHBERR6_W<2> {
        H_AHBERR6_W::new(self)
    }
    #[doc = "Bit 3"]
    #[inline(always)]
    #[must_use]
    pub fn h_stall6(&mut self) -> H_STALL6_W<3> {
        H_STALL6_W::new(self)
    }
    #[doc = "Bit 4"]
    #[inline(always)]
    #[must_use]
    pub fn h_nack6(&mut self) -> H_NACK6_W<4> {
        H_NACK6_W::new(self)
    }
    #[doc = "Bit 5"]
    #[inline(always)]
    #[must_use]
    pub fn h_ack6(&mut self) -> H_ACK6_W<5> {
        H_ACK6_W::new(self)
    }
    #[doc = "Bit 6"]
    #[inline(always)]
    #[must_use]
    pub fn h_nyet6(&mut self) -> H_NYET6_W<6> {
        H_NYET6_W::new(self)
    }
    #[doc = "Bit 7"]
    #[inline(always)]
    #[must_use]
    pub fn h_xacterr6(&mut self) -> H_XACTERR6_W<7> {
        H_XACTERR6_W::new(self)
    }
    #[doc = "Bit 8"]
    #[inline(always)]
    #[must_use]
    pub fn h_bblerr6(&mut self) -> H_BBLERR6_W<8> {
        H_BBLERR6_W::new(self)
    }
    #[doc = "Bit 9"]
    #[inline(always)]
    #[must_use]
    pub fn h_frmovrun6(&mut self) -> H_FRMOVRUN6_W<9> {
        H_FRMOVRUN6_W::new(self)
    }
    #[doc = "Bit 10"]
    #[inline(always)]
    #[must_use]
    pub fn h_datatglerr6(&mut self) -> H_DATATGLERR6_W<10> {
        H_DATATGLERR6_W::new(self)
    }
    #[doc = "Bit 11"]
    #[inline(always)]
    #[must_use]
    pub fn h_bnaintr6(&mut self) -> H_BNAINTR6_W<11> {
        H_BNAINTR6_W::new(self)
    }
    #[doc = "Bit 12"]
    #[inline(always)]
    #[must_use]
    pub fn h_xcs_xact_err6(&mut self) -> H_XCS_XACT_ERR6_W<12> {
        H_XCS_XACT_ERR6_W::new(self)
    }
    #[doc = "Bit 13"]
    #[inline(always)]
    #[must_use]
    pub fn h_desc_lst_rollintr6(&mut self) -> H_DESC_LST_ROLLINTR6_W<13> {
        H_DESC_LST_ROLLINTR6_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 [hcint6](index.html) module"]
pub struct HCINT6_SPEC;
impl crate::RegisterSpec for HCINT6_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [hcint6::R](R) reader structure"]
impl crate::Readable for HCINT6_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [hcint6::W](W) writer structure"]
impl crate::Writable for HCINT6_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 HCINT6 to value 0"]
impl crate::Resettable for HCINT6_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}