esp32c3/sensitive/
internal_sram_usage_3.rs1#[doc = "Register `INTERNAL_SRAM_USAGE_3` reader"]
2pub type R = crate::R<INTERNAL_SRAM_USAGE_3_SPEC>;
3#[doc = "Register `INTERNAL_SRAM_USAGE_3` writer"]
4pub type W = crate::W<INTERNAL_SRAM_USAGE_3_SPEC>;
5#[doc = "Field `INTERNAL_SRAM_USAGE_MAC_DUMP_SRAM` reader - internal_sram_usage_mac_dump_sram"]
6pub type INTERNAL_SRAM_USAGE_MAC_DUMP_SRAM_R = crate::FieldReader;
7#[doc = "Field `INTERNAL_SRAM_USAGE_MAC_DUMP_SRAM` writer - internal_sram_usage_mac_dump_sram"]
8pub type INTERNAL_SRAM_USAGE_MAC_DUMP_SRAM_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
9#[doc = "Field `INTERNAL_SRAM_ALLOC_MAC_DUMP` reader - internal_sram_alloc_mac_dump"]
10pub type INTERNAL_SRAM_ALLOC_MAC_DUMP_R = crate::BitReader;
11#[doc = "Field `INTERNAL_SRAM_ALLOC_MAC_DUMP` writer - internal_sram_alloc_mac_dump"]
12pub type INTERNAL_SRAM_ALLOC_MAC_DUMP_W<'a, REG> = crate::BitWriter<'a, REG>;
13impl R {
14 #[doc = "Bits 0:2 - internal_sram_usage_mac_dump_sram"]
15 #[inline(always)]
16 pub fn internal_sram_usage_mac_dump_sram(&self) -> INTERNAL_SRAM_USAGE_MAC_DUMP_SRAM_R {
17 INTERNAL_SRAM_USAGE_MAC_DUMP_SRAM_R::new((self.bits & 7) as u8)
18 }
19 #[doc = "Bit 3 - internal_sram_alloc_mac_dump"]
20 #[inline(always)]
21 pub fn internal_sram_alloc_mac_dump(&self) -> INTERNAL_SRAM_ALLOC_MAC_DUMP_R {
22 INTERNAL_SRAM_ALLOC_MAC_DUMP_R::new(((self.bits >> 3) & 1) != 0)
23 }
24}
25#[cfg(feature = "impl-register-debug")]
26impl core::fmt::Debug for R {
27 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
28 f.debug_struct("INTERNAL_SRAM_USAGE_3")
29 .field(
30 "internal_sram_usage_mac_dump_sram",
31 &self.internal_sram_usage_mac_dump_sram(),
32 )
33 .field(
34 "internal_sram_alloc_mac_dump",
35 &self.internal_sram_alloc_mac_dump(),
36 )
37 .finish()
38 }
39}
40impl W {
41 #[doc = "Bits 0:2 - internal_sram_usage_mac_dump_sram"]
42 #[inline(always)]
43 pub fn internal_sram_usage_mac_dump_sram(
44 &mut self,
45 ) -> INTERNAL_SRAM_USAGE_MAC_DUMP_SRAM_W<INTERNAL_SRAM_USAGE_3_SPEC> {
46 INTERNAL_SRAM_USAGE_MAC_DUMP_SRAM_W::new(self, 0)
47 }
48 #[doc = "Bit 3 - internal_sram_alloc_mac_dump"]
49 #[inline(always)]
50 pub fn internal_sram_alloc_mac_dump(
51 &mut self,
52 ) -> INTERNAL_SRAM_ALLOC_MAC_DUMP_W<INTERNAL_SRAM_USAGE_3_SPEC> {
53 INTERNAL_SRAM_ALLOC_MAC_DUMP_W::new(self, 3)
54 }
55}
56#[doc = "SENSITIVE_INTERNAL_SRAM_USAGE_3_REG\n\nYou can [`read`](crate::Reg::read) this register and get [`internal_sram_usage_3::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_3::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
57pub struct INTERNAL_SRAM_USAGE_3_SPEC;
58impl crate::RegisterSpec for INTERNAL_SRAM_USAGE_3_SPEC {
59 type Ux = u32;
60}
61#[doc = "`read()` method returns [`internal_sram_usage_3::R`](R) reader structure"]
62impl crate::Readable for INTERNAL_SRAM_USAGE_3_SPEC {}
63#[doc = "`write(|w| ..)` method takes [`internal_sram_usage_3::W`](W) writer structure"]
64impl crate::Writable for INTERNAL_SRAM_USAGE_3_SPEC {
65 type Safety = crate::Unsafe;
66}
67#[doc = "`reset()` method sets INTERNAL_SRAM_USAGE_3 to value 0"]
68impl crate::Resettable for INTERNAL_SRAM_USAGE_3_SPEC {}