esp32c6/extmem/
l2_cache_wrap_around_ctrl.rs1#[doc = "Register `L2_CACHE_WRAP_AROUND_CTRL` reader"]
2pub type R = crate::R<L2_CACHE_WRAP_AROUND_CTRL_SPEC>;
3#[doc = "Field `L2_CACHE_WRAP` reader - Set this bit as 1 to enable L2-Cache wrap around mode."]
4pub type L2_CACHE_WRAP_R = crate::BitReader;
5impl R {
6 #[doc = "Bit 5 - Set this bit as 1 to enable L2-Cache wrap around mode."]
7 #[inline(always)]
8 pub fn l2_cache_wrap(&self) -> L2_CACHE_WRAP_R {
9 L2_CACHE_WRAP_R::new(((self.bits >> 5) & 1) != 0)
10 }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15 f.debug_struct("L2_CACHE_WRAP_AROUND_CTRL")
16 .field("l2_cache_wrap", &self.l2_cache_wrap())
17 .finish()
18 }
19}
20#[doc = "Cache wrap around control register\n\nYou can [`read`](crate::Reg::read) this register and get [`l2_cache_wrap_around_ctrl::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct L2_CACHE_WRAP_AROUND_CTRL_SPEC;
22impl crate::RegisterSpec for L2_CACHE_WRAP_AROUND_CTRL_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`l2_cache_wrap_around_ctrl::R`](R) reader structure"]
26impl crate::Readable for L2_CACHE_WRAP_AROUND_CTRL_SPEC {}
27#[doc = "`reset()` method sets L2_CACHE_WRAP_AROUND_CTRL to value 0"]
28impl crate::Resettable for L2_CACHE_WRAP_AROUND_CTRL_SPEC {
29 const RESET_VALUE: u32 = 0;
30}