esp32s3/sensitive/
internal_sram_usage_0.rs1#[doc = "Register `INTERNAL_SRAM_USAGE_0` reader"]
2pub type R = crate::R<INTERNAL_SRAM_USAGE_0_SPEC>;
3#[doc = "Register `INTERNAL_SRAM_USAGE_0` writer"]
4pub type W = crate::W<INTERNAL_SRAM_USAGE_0_SPEC>;
5#[doc = "Field `INTERNAL_SRAM_USAGE_LOCK` reader - Set 1 to lock internal SRAM Configuration Register."]
6pub type INTERNAL_SRAM_USAGE_LOCK_R = crate::BitReader;
7#[doc = "Field `INTERNAL_SRAM_USAGE_LOCK` writer - Set 1 to lock internal SRAM Configuration Register."]
8pub type INTERNAL_SRAM_USAGE_LOCK_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10 #[doc = "Bit 0 - Set 1 to lock internal SRAM Configuration Register."]
11 #[inline(always)]
12 pub fn internal_sram_usage_lock(&self) -> INTERNAL_SRAM_USAGE_LOCK_R {
13 INTERNAL_SRAM_USAGE_LOCK_R::new((self.bits & 1) != 0)
14 }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("INTERNAL_SRAM_USAGE_0")
20 .field("internal_sram_usage_lock", &self.internal_sram_usage_lock())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bit 0 - Set 1 to lock internal SRAM Configuration Register."]
26 #[inline(always)]
27 pub fn internal_sram_usage_lock(
28 &mut self,
29 ) -> INTERNAL_SRAM_USAGE_LOCK_W<INTERNAL_SRAM_USAGE_0_SPEC> {
30 INTERNAL_SRAM_USAGE_LOCK_W::new(self, 0)
31 }
32}
33#[doc = "Internal SRAM configuration register 0.\n\nYou can [`read`](crate::Reg::read) this register and get [`internal_sram_usage_0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`internal_sram_usage_0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
34pub struct INTERNAL_SRAM_USAGE_0_SPEC;
35impl crate::RegisterSpec for INTERNAL_SRAM_USAGE_0_SPEC {
36 type Ux = u32;
37}
38#[doc = "`read()` method returns [`internal_sram_usage_0::R`](R) reader structure"]
39impl crate::Readable for INTERNAL_SRAM_USAGE_0_SPEC {}
40#[doc = "`write(|w| ..)` method takes [`internal_sram_usage_0::W`](W) writer structure"]
41impl crate::Writable for INTERNAL_SRAM_USAGE_0_SPEC {
42 type Safety = crate::Unsafe;
43 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
44 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
45}
46#[doc = "`reset()` method sets INTERNAL_SRAM_USAGE_0 to value 0"]
47impl crate::Resettable for INTERNAL_SRAM_USAGE_0_SPEC {
48 const RESET_VALUE: u32 = 0;
49}