esp32s2 0.31.2

Peripheral access crate for the ESP32-S2
Documentation
#[doc = "Register `CACHE_DBG_STATUS1` reader"]
pub type R = crate::R<CACHE_DBG_STATUS1_SPEC>;
#[doc = "Field `DBUS0_ACS_MSK_DCACHE_ST` reader - The bit is used to indicate interrupt by cpu access dcache while the dbus0 is disabled or dcache is disabled which include speculative access."]
pub type DBUS0_ACS_MSK_DCACHE_ST_R = crate::BitReader;
#[doc = "Field `DBUS1_ACS_MSK_DCACHE_ST` reader - The bit is used to indicate interrupt by cpu access dcache while the dbus1 is disabled or dcache is disabled which include speculative access."]
pub type DBUS1_ACS_MSK_DCACHE_ST_R = crate::BitReader;
#[doc = "Field `DBUS2_ACS_MSK_DCACHE_ST` reader - The bit is used to indicate interrupt by cpu access dcache while the dbus2 is disabled or dcache is disabled which include speculative access."]
pub type DBUS2_ACS_MSK_DCACHE_ST_R = crate::BitReader;
#[doc = "Field `DBUS0_ACS_CNT_OVF_ST` reader - The bit is used to indicate interrupt by dbus0 counter overflow."]
pub type DBUS0_ACS_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DBUS1_ACS_CNT_OVF_ST` reader - The bit is used to indicate interrupt by dbus1 counter overflow."]
pub type DBUS1_ACS_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DBUS2_ACS_CNT_OVF_ST` reader - The bit is used to indicate interrupt by dbus2 counter overflow."]
pub type DBUS2_ACS_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DBUS0_ACS_MISS_CNT_OVF_ST` reader - The bit is used to indicate interrupt by dbus0 miss counter overflow."]
pub type DBUS0_ACS_MISS_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DBUS1_ACS_MISS_CNT_OVF_ST` reader - The bit is used to indicate interrupt by dbus1 miss counter overflow."]
pub type DBUS1_ACS_MISS_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DBUS2_ACS_MISS_CNT_OVF_ST` reader - The bit is used to indicate interrupt by dbus2 miss counter overflow."]
pub type DBUS2_ACS_MISS_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DBUS0_ACS_WB_CNT_OVF_ST` reader - The bit is used to indicate interrupt by dbus0 eviction counter overflow."]
pub type DBUS0_ACS_WB_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DBUS1_ACS_WB_CNT_OVF_ST` reader - The bit is used to indicate interrupt by dbus1 eviction counter overflow."]
pub type DBUS1_ACS_WB_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DBUS2_ACS_WB_CNT_OVF_ST` reader - The bit is used to indicate interrupt by dbus2 eviction counter overflow."]
pub type DBUS2_ACS_WB_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DBUS0_ABANDON_CNT_OVF_ST` reader - The bit is used to indicate interrupt by dbus0 abandon counter overflow."]
pub type DBUS0_ABANDON_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DBUS1_ABANDON_CNT_OVF_ST` reader - The bit is used to indicate interrupt by dbus1 abandon counter overflow."]
pub type DBUS1_ABANDON_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DBUS2_ABANDON_CNT_OVF_ST` reader - The bit is used to indicate interrupt by dbus2 abandon counter overflow."]
pub type DBUS2_ABANDON_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DC_PRELOAD_MISS_CNT_OVF_ST` reader - The bit is used to indicate interrupt by pre-load miss counter overflow."]
pub type DC_PRELOAD_MISS_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DC_PRELOAD_EVICT_CNT_OVF_ST` reader - The bit is used to indicate interrupt by pre-load eviction counter overflow."]
pub type DC_PRELOAD_EVICT_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DC_PRELOAD_CNT_OVF_ST` reader - The bit is used to indicate interrupt by pre-load counter overflow."]
pub type DC_PRELOAD_CNT_OVF_ST_R = crate::BitReader;
#[doc = "Field `DC_SYNC_SIZE_FAULT_ST` reader - The bit is used to indicate interrupt by manual sync configurations fault."]
pub type DC_SYNC_SIZE_FAULT_ST_R = crate::BitReader;
#[doc = "Field `DC_PRELOAD_SIZE_FAULT_ST` reader - The bit is used to indicate interrupt by manual pre-load configurations fault."]
pub type DC_PRELOAD_SIZE_FAULT_ST_R = crate::BitReader;
#[doc = "Field `DCACHE_WRITE_FLASH_ST` reader - The bit is used to indicate interrupt by dcache trying to write flash."]
pub type DCACHE_WRITE_FLASH_ST_R = crate::BitReader;
#[doc = "Field `DCACHE_REJECT_ST` reader - The bit is used to indicate interrupt by authentication fail."]
pub type DCACHE_REJECT_ST_R = crate::BitReader;
#[doc = "Field `DCACHE_SET_PRELOAD_ILG_ST` reader - The bit is used to indicate interrupt by illegal writing preload registers of icache while icache is busy to issue lock,sync and pre-load operations."]
pub type DCACHE_SET_PRELOAD_ILG_ST_R = crate::BitReader;
#[doc = "Field `DCACHE_SET_SYNC_ILG_ST` reader - The bit is used to indicate interrupt by illegal writing sync registers of icache while icache is busy to issue lock,sync and pre-load operations."]
pub type DCACHE_SET_SYNC_ILG_ST_R = crate::BitReader;
#[doc = "Field `DCACHE_SET_LOCK_ILG_ST` reader - The bit is used to indicate interrupt by illegal writing lock registers of icache while icache is busy to issue lock,sync or pre-load operations."]
pub type DCACHE_SET_LOCK_ILG_ST_R = crate::BitReader;
#[doc = "Field `MMU_ENTRY_FAULT_ST` reader - The bit is used to indicate interrupt by mmu entry fault."]
pub type MMU_ENTRY_FAULT_ST_R = crate::BitReader;
impl R {
    #[doc = "Bit 0 - The bit is used to indicate interrupt by cpu access dcache while the dbus0 is disabled or dcache is disabled which include speculative access."]
    #[inline(always)]
    pub fn dbus0_acs_msk_dcache_st(&self) -> DBUS0_ACS_MSK_DCACHE_ST_R {
        DBUS0_ACS_MSK_DCACHE_ST_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - The bit is used to indicate interrupt by cpu access dcache while the dbus1 is disabled or dcache is disabled which include speculative access."]
    #[inline(always)]
    pub fn dbus1_acs_msk_dcache_st(&self) -> DBUS1_ACS_MSK_DCACHE_ST_R {
        DBUS1_ACS_MSK_DCACHE_ST_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - The bit is used to indicate interrupt by cpu access dcache while the dbus2 is disabled or dcache is disabled which include speculative access."]
    #[inline(always)]
    pub fn dbus2_acs_msk_dcache_st(&self) -> DBUS2_ACS_MSK_DCACHE_ST_R {
        DBUS2_ACS_MSK_DCACHE_ST_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 4 - The bit is used to indicate interrupt by dbus0 counter overflow."]
    #[inline(always)]
    pub fn dbus0_acs_cnt_ovf_st(&self) -> DBUS0_ACS_CNT_OVF_ST_R {
        DBUS0_ACS_CNT_OVF_ST_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - The bit is used to indicate interrupt by dbus1 counter overflow."]
    #[inline(always)]
    pub fn dbus1_acs_cnt_ovf_st(&self) -> DBUS1_ACS_CNT_OVF_ST_R {
        DBUS1_ACS_CNT_OVF_ST_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - The bit is used to indicate interrupt by dbus2 counter overflow."]
    #[inline(always)]
    pub fn dbus2_acs_cnt_ovf_st(&self) -> DBUS2_ACS_CNT_OVF_ST_R {
        DBUS2_ACS_CNT_OVF_ST_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 8 - The bit is used to indicate interrupt by dbus0 miss counter overflow."]
    #[inline(always)]
    pub fn dbus0_acs_miss_cnt_ovf_st(&self) -> DBUS0_ACS_MISS_CNT_OVF_ST_R {
        DBUS0_ACS_MISS_CNT_OVF_ST_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - The bit is used to indicate interrupt by dbus1 miss counter overflow."]
    #[inline(always)]
    pub fn dbus1_acs_miss_cnt_ovf_st(&self) -> DBUS1_ACS_MISS_CNT_OVF_ST_R {
        DBUS1_ACS_MISS_CNT_OVF_ST_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - The bit is used to indicate interrupt by dbus2 miss counter overflow."]
    #[inline(always)]
    pub fn dbus2_acs_miss_cnt_ovf_st(&self) -> DBUS2_ACS_MISS_CNT_OVF_ST_R {
        DBUS2_ACS_MISS_CNT_OVF_ST_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 12 - The bit is used to indicate interrupt by dbus0 eviction counter overflow."]
    #[inline(always)]
    pub fn dbus0_acs_wb_cnt_ovf_st(&self) -> DBUS0_ACS_WB_CNT_OVF_ST_R {
        DBUS0_ACS_WB_CNT_OVF_ST_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - The bit is used to indicate interrupt by dbus1 eviction counter overflow."]
    #[inline(always)]
    pub fn dbus1_acs_wb_cnt_ovf_st(&self) -> DBUS1_ACS_WB_CNT_OVF_ST_R {
        DBUS1_ACS_WB_CNT_OVF_ST_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - The bit is used to indicate interrupt by dbus2 eviction counter overflow."]
    #[inline(always)]
    pub fn dbus2_acs_wb_cnt_ovf_st(&self) -> DBUS2_ACS_WB_CNT_OVF_ST_R {
        DBUS2_ACS_WB_CNT_OVF_ST_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 16 - The bit is used to indicate interrupt by dbus0 abandon counter overflow."]
    #[inline(always)]
    pub fn dbus0_abandon_cnt_ovf_st(&self) -> DBUS0_ABANDON_CNT_OVF_ST_R {
        DBUS0_ABANDON_CNT_OVF_ST_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - The bit is used to indicate interrupt by dbus1 abandon counter overflow."]
    #[inline(always)]
    pub fn dbus1_abandon_cnt_ovf_st(&self) -> DBUS1_ABANDON_CNT_OVF_ST_R {
        DBUS1_ABANDON_CNT_OVF_ST_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - The bit is used to indicate interrupt by dbus2 abandon counter overflow."]
    #[inline(always)]
    pub fn dbus2_abandon_cnt_ovf_st(&self) -> DBUS2_ABANDON_CNT_OVF_ST_R {
        DBUS2_ABANDON_CNT_OVF_ST_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 20 - The bit is used to indicate interrupt by pre-load miss counter overflow."]
    #[inline(always)]
    pub fn dc_preload_miss_cnt_ovf_st(&self) -> DC_PRELOAD_MISS_CNT_OVF_ST_R {
        DC_PRELOAD_MISS_CNT_OVF_ST_R::new(((self.bits >> 20) & 1) != 0)
    }
    #[doc = "Bit 21 - The bit is used to indicate interrupt by pre-load eviction counter overflow."]
    #[inline(always)]
    pub fn dc_preload_evict_cnt_ovf_st(&self) -> DC_PRELOAD_EVICT_CNT_OVF_ST_R {
        DC_PRELOAD_EVICT_CNT_OVF_ST_R::new(((self.bits >> 21) & 1) != 0)
    }
    #[doc = "Bit 22 - The bit is used to indicate interrupt by pre-load counter overflow."]
    #[inline(always)]
    pub fn dc_preload_cnt_ovf_st(&self) -> DC_PRELOAD_CNT_OVF_ST_R {
        DC_PRELOAD_CNT_OVF_ST_R::new(((self.bits >> 22) & 1) != 0)
    }
    #[doc = "Bit 23 - The bit is used to indicate interrupt by manual sync configurations fault."]
    #[inline(always)]
    pub fn dc_sync_size_fault_st(&self) -> DC_SYNC_SIZE_FAULT_ST_R {
        DC_SYNC_SIZE_FAULT_ST_R::new(((self.bits >> 23) & 1) != 0)
    }
    #[doc = "Bit 24 - The bit is used to indicate interrupt by manual pre-load configurations fault."]
    #[inline(always)]
    pub fn dc_preload_size_fault_st(&self) -> DC_PRELOAD_SIZE_FAULT_ST_R {
        DC_PRELOAD_SIZE_FAULT_ST_R::new(((self.bits >> 24) & 1) != 0)
    }
    #[doc = "Bit 25 - The bit is used to indicate interrupt by dcache trying to write flash."]
    #[inline(always)]
    pub fn dcache_write_flash_st(&self) -> DCACHE_WRITE_FLASH_ST_R {
        DCACHE_WRITE_FLASH_ST_R::new(((self.bits >> 25) & 1) != 0)
    }
    #[doc = "Bit 26 - The bit is used to indicate interrupt by authentication fail."]
    #[inline(always)]
    pub fn dcache_reject_st(&self) -> DCACHE_REJECT_ST_R {
        DCACHE_REJECT_ST_R::new(((self.bits >> 26) & 1) != 0)
    }
    #[doc = "Bit 27 - The bit is used to indicate interrupt by illegal writing preload registers of icache while icache is busy to issue lock,sync and pre-load operations."]
    #[inline(always)]
    pub fn dcache_set_preload_ilg_st(&self) -> DCACHE_SET_PRELOAD_ILG_ST_R {
        DCACHE_SET_PRELOAD_ILG_ST_R::new(((self.bits >> 27) & 1) != 0)
    }
    #[doc = "Bit 28 - The bit is used to indicate interrupt by illegal writing sync registers of icache while icache is busy to issue lock,sync and pre-load operations."]
    #[inline(always)]
    pub fn dcache_set_sync_ilg_st(&self) -> DCACHE_SET_SYNC_ILG_ST_R {
        DCACHE_SET_SYNC_ILG_ST_R::new(((self.bits >> 28) & 1) != 0)
    }
    #[doc = "Bit 29 - The bit is used to indicate interrupt by illegal writing lock registers of icache while icache is busy to issue lock,sync or pre-load operations."]
    #[inline(always)]
    pub fn dcache_set_lock_ilg_st(&self) -> DCACHE_SET_LOCK_ILG_ST_R {
        DCACHE_SET_LOCK_ILG_ST_R::new(((self.bits >> 29) & 1) != 0)
    }
    #[doc = "Bit 30 - The bit is used to indicate interrupt by mmu entry fault."]
    #[inline(always)]
    pub fn mmu_entry_fault_st(&self) -> MMU_ENTRY_FAULT_ST_R {
        MMU_ENTRY_FAULT_ST_R::new(((self.bits >> 30) & 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("CACHE_DBG_STATUS1")
            .field("dbus0_acs_msk_dcache_st", &self.dbus0_acs_msk_dcache_st())
            .field("dbus1_acs_msk_dcache_st", &self.dbus1_acs_msk_dcache_st())
            .field("dbus2_acs_msk_dcache_st", &self.dbus2_acs_msk_dcache_st())
            .field("dbus0_acs_cnt_ovf_st", &self.dbus0_acs_cnt_ovf_st())
            .field("dbus1_acs_cnt_ovf_st", &self.dbus1_acs_cnt_ovf_st())
            .field("dbus2_acs_cnt_ovf_st", &self.dbus2_acs_cnt_ovf_st())
            .field(
                "dbus0_acs_miss_cnt_ovf_st",
                &self.dbus0_acs_miss_cnt_ovf_st(),
            )
            .field(
                "dbus1_acs_miss_cnt_ovf_st",
                &self.dbus1_acs_miss_cnt_ovf_st(),
            )
            .field(
                "dbus2_acs_miss_cnt_ovf_st",
                &self.dbus2_acs_miss_cnt_ovf_st(),
            )
            .field("dbus0_acs_wb_cnt_ovf_st", &self.dbus0_acs_wb_cnt_ovf_st())
            .field("dbus1_acs_wb_cnt_ovf_st", &self.dbus1_acs_wb_cnt_ovf_st())
            .field("dbus2_acs_wb_cnt_ovf_st", &self.dbus2_acs_wb_cnt_ovf_st())
            .field("dbus0_abandon_cnt_ovf_st", &self.dbus0_abandon_cnt_ovf_st())
            .field("dbus1_abandon_cnt_ovf_st", &self.dbus1_abandon_cnt_ovf_st())
            .field("dbus2_abandon_cnt_ovf_st", &self.dbus2_abandon_cnt_ovf_st())
            .field(
                "dc_preload_miss_cnt_ovf_st",
                &self.dc_preload_miss_cnt_ovf_st(),
            )
            .field(
                "dc_preload_evict_cnt_ovf_st",
                &self.dc_preload_evict_cnt_ovf_st(),
            )
            .field("dc_preload_cnt_ovf_st", &self.dc_preload_cnt_ovf_st())
            .field("dc_sync_size_fault_st", &self.dc_sync_size_fault_st())
            .field("dc_preload_size_fault_st", &self.dc_preload_size_fault_st())
            .field("dcache_write_flash_st", &self.dcache_write_flash_st())
            .field("dcache_reject_st", &self.dcache_reject_st())
            .field(
                "dcache_set_preload_ilg_st",
                &self.dcache_set_preload_ilg_st(),
            )
            .field("dcache_set_sync_ilg_st", &self.dcache_set_sync_ilg_st())
            .field("dcache_set_lock_ilg_st", &self.dcache_set_lock_ilg_st())
            .field("mmu_entry_fault_st", &self.mmu_entry_fault_st())
            .finish()
    }
}
#[doc = "register description\n\nYou can [`read`](crate::Reg::read) this register and get [`cache_dbg_status1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CACHE_DBG_STATUS1_SPEC;
impl crate::RegisterSpec for CACHE_DBG_STATUS1_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`cache_dbg_status1::R`](R) reader structure"]
impl crate::Readable for CACHE_DBG_STATUS1_SPEC {}
#[doc = "`reset()` method sets CACHE_DBG_STATUS1 to value 0"]
impl crate::Resettable for CACHE_DBG_STATUS1_SPEC {}