esp32c5 0.2.0

Peripheral access crate for the ESP32-C5
Documentation
#[doc = "Register `ICACHE2_ACS_FAIL_ID_ATTR` reader"]
pub type R = crate::R<ICACHE2_ACS_FAIL_ID_ATTR_SPEC>;
#[doc = "Field `ICACHE2_FAIL_ID` reader - The register records the ID of fail-access when cache2 accesses ICache."]
pub type ICACHE2_FAIL_ID_R = crate::FieldReader<u16>;
#[doc = "Field `ICACHE2_FAIL_ATTR` reader - The register records the attribution of fail-access when cache2 accesses ICache."]
pub type ICACHE2_FAIL_ATTR_R = crate::FieldReader<u16>;
impl R {
    #[doc = "Bits 0:15 - The register records the ID of fail-access when cache2 accesses ICache."]
    #[inline(always)]
    pub fn icache2_fail_id(&self) -> ICACHE2_FAIL_ID_R {
        ICACHE2_FAIL_ID_R::new((self.bits & 0xffff) as u16)
    }
    #[doc = "Bits 16:31 - The register records the attribution of fail-access when cache2 accesses ICache."]
    #[inline(always)]
    pub fn icache2_fail_attr(&self) -> ICACHE2_FAIL_ATTR_R {
        ICACHE2_FAIL_ATTR_R::new(((self.bits >> 16) & 0xffff) as u16)
    }
}
#[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("ICACHE2_ACS_FAIL_ID_ATTR")
            .field("icache2_fail_id", &self.icache2_fail_id())
            .field("icache2_fail_attr", &self.icache2_fail_attr())
            .finish()
    }
}
#[doc = "ICache0 Access Fail ID/attribution information register\n\nYou can [`read`](crate::Reg::read) this register and get [`icache2_acs_fail_id_attr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct ICACHE2_ACS_FAIL_ID_ATTR_SPEC;
impl crate::RegisterSpec for ICACHE2_ACS_FAIL_ID_ATTR_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`icache2_acs_fail_id_attr::R`](R) reader structure"]
impl crate::Readable for ICACHE2_ACS_FAIL_ID_ATTR_SPEC {}
#[doc = "`reset()` method sets ICACHE2_ACS_FAIL_ID_ATTR to value 0"]
impl crate::Resettable for ICACHE2_ACS_FAIL_ID_ATTR_SPEC {}