esp32c3/rtc_cntl/
dbg_map.rs1#[doc = "Register `DBG_MAP` reader"]
2pub type R = crate::R<DBG_MAP_SPEC>;
3#[doc = "Register `DBG_MAP` writer"]
4pub type W = crate::W<DBG_MAP_SPEC>;
5#[doc = "Field `GPIO_PIN5_MUX_SEL` reader - use for debug"]
6pub type GPIO_PIN5_MUX_SEL_R = crate::BitReader;
7#[doc = "Field `GPIO_PIN5_MUX_SEL` writer - use for debug"]
8pub type GPIO_PIN5_MUX_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `GPIO_PIN4_MUX_SEL` reader - use for debug"]
10pub type GPIO_PIN4_MUX_SEL_R = crate::BitReader;
11#[doc = "Field `GPIO_PIN4_MUX_SEL` writer - use for debug"]
12pub type GPIO_PIN4_MUX_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `GPIO_PIN3_MUX_SEL` reader - use for debug"]
14pub type GPIO_PIN3_MUX_SEL_R = crate::BitReader;
15#[doc = "Field `GPIO_PIN3_MUX_SEL` writer - use for debug"]
16pub type GPIO_PIN3_MUX_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `GPIO_PIN2_MUX_SEL` reader - use for debug"]
18pub type GPIO_PIN2_MUX_SEL_R = crate::BitReader;
19#[doc = "Field `GPIO_PIN2_MUX_SEL` writer - use for debug"]
20pub type GPIO_PIN2_MUX_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `GPIO_PIN1_MUX_SEL` reader - use for debug"]
22pub type GPIO_PIN1_MUX_SEL_R = crate::BitReader;
23#[doc = "Field `GPIO_PIN1_MUX_SEL` writer - use for debug"]
24pub type GPIO_PIN1_MUX_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `GPIO_PIN0_MUX_SEL` reader - use for debug"]
26pub type GPIO_PIN0_MUX_SEL_R = crate::BitReader;
27#[doc = "Field `GPIO_PIN0_MUX_SEL` writer - use for debug"]
28pub type GPIO_PIN0_MUX_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `GPIO_PIN5_FUN_SEL` reader - use for debug"]
30pub type GPIO_PIN5_FUN_SEL_R = crate::FieldReader;
31#[doc = "Field `GPIO_PIN5_FUN_SEL` writer - use for debug"]
32pub type GPIO_PIN5_FUN_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
33#[doc = "Field `GPIO_PIN4_FUN_SEL` reader - use for debug"]
34pub type GPIO_PIN4_FUN_SEL_R = crate::FieldReader;
35#[doc = "Field `GPIO_PIN4_FUN_SEL` writer - use for debug"]
36pub type GPIO_PIN4_FUN_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
37#[doc = "Field `GPIO_PIN3_FUN_SEL` reader - use for debug"]
38pub type GPIO_PIN3_FUN_SEL_R = crate::FieldReader;
39#[doc = "Field `GPIO_PIN3_FUN_SEL` writer - use for debug"]
40pub type GPIO_PIN3_FUN_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
41#[doc = "Field `GPIO_PIN2_FUN_SEL` reader - use for debug"]
42pub type GPIO_PIN2_FUN_SEL_R = crate::FieldReader;
43#[doc = "Field `GPIO_PIN2_FUN_SEL` writer - use for debug"]
44pub type GPIO_PIN2_FUN_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
45#[doc = "Field `GPIO_PIN1_FUN_SEL` reader - use for debug"]
46pub type GPIO_PIN1_FUN_SEL_R = crate::FieldReader;
47#[doc = "Field `GPIO_PIN1_FUN_SEL` writer - use for debug"]
48pub type GPIO_PIN1_FUN_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
49#[doc = "Field `GPIO_PIN0_FUN_SEL` reader - use for debug"]
50pub type GPIO_PIN0_FUN_SEL_R = crate::FieldReader;
51#[doc = "Field `GPIO_PIN0_FUN_SEL` writer - use for debug"]
52pub type GPIO_PIN0_FUN_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
53impl R {
54 #[doc = "Bit 2 - use for debug"]
55 #[inline(always)]
56 pub fn gpio_pin5_mux_sel(&self) -> GPIO_PIN5_MUX_SEL_R {
57 GPIO_PIN5_MUX_SEL_R::new(((self.bits >> 2) & 1) != 0)
58 }
59 #[doc = "Bit 3 - use for debug"]
60 #[inline(always)]
61 pub fn gpio_pin4_mux_sel(&self) -> GPIO_PIN4_MUX_SEL_R {
62 GPIO_PIN4_MUX_SEL_R::new(((self.bits >> 3) & 1) != 0)
63 }
64 #[doc = "Bit 4 - use for debug"]
65 #[inline(always)]
66 pub fn gpio_pin3_mux_sel(&self) -> GPIO_PIN3_MUX_SEL_R {
67 GPIO_PIN3_MUX_SEL_R::new(((self.bits >> 4) & 1) != 0)
68 }
69 #[doc = "Bit 5 - use for debug"]
70 #[inline(always)]
71 pub fn gpio_pin2_mux_sel(&self) -> GPIO_PIN2_MUX_SEL_R {
72 GPIO_PIN2_MUX_SEL_R::new(((self.bits >> 5) & 1) != 0)
73 }
74 #[doc = "Bit 6 - use for debug"]
75 #[inline(always)]
76 pub fn gpio_pin1_mux_sel(&self) -> GPIO_PIN1_MUX_SEL_R {
77 GPIO_PIN1_MUX_SEL_R::new(((self.bits >> 6) & 1) != 0)
78 }
79 #[doc = "Bit 7 - use for debug"]
80 #[inline(always)]
81 pub fn gpio_pin0_mux_sel(&self) -> GPIO_PIN0_MUX_SEL_R {
82 GPIO_PIN0_MUX_SEL_R::new(((self.bits >> 7) & 1) != 0)
83 }
84 #[doc = "Bits 8:11 - use for debug"]
85 #[inline(always)]
86 pub fn gpio_pin5_fun_sel(&self) -> GPIO_PIN5_FUN_SEL_R {
87 GPIO_PIN5_FUN_SEL_R::new(((self.bits >> 8) & 0x0f) as u8)
88 }
89 #[doc = "Bits 12:15 - use for debug"]
90 #[inline(always)]
91 pub fn gpio_pin4_fun_sel(&self) -> GPIO_PIN4_FUN_SEL_R {
92 GPIO_PIN4_FUN_SEL_R::new(((self.bits >> 12) & 0x0f) as u8)
93 }
94 #[doc = "Bits 16:19 - use for debug"]
95 #[inline(always)]
96 pub fn gpio_pin3_fun_sel(&self) -> GPIO_PIN3_FUN_SEL_R {
97 GPIO_PIN3_FUN_SEL_R::new(((self.bits >> 16) & 0x0f) as u8)
98 }
99 #[doc = "Bits 20:23 - use for debug"]
100 #[inline(always)]
101 pub fn gpio_pin2_fun_sel(&self) -> GPIO_PIN2_FUN_SEL_R {
102 GPIO_PIN2_FUN_SEL_R::new(((self.bits >> 20) & 0x0f) as u8)
103 }
104 #[doc = "Bits 24:27 - use for debug"]
105 #[inline(always)]
106 pub fn gpio_pin1_fun_sel(&self) -> GPIO_PIN1_FUN_SEL_R {
107 GPIO_PIN1_FUN_SEL_R::new(((self.bits >> 24) & 0x0f) as u8)
108 }
109 #[doc = "Bits 28:31 - use for debug"]
110 #[inline(always)]
111 pub fn gpio_pin0_fun_sel(&self) -> GPIO_PIN0_FUN_SEL_R {
112 GPIO_PIN0_FUN_SEL_R::new(((self.bits >> 28) & 0x0f) as u8)
113 }
114}
115#[cfg(feature = "impl-register-debug")]
116impl core::fmt::Debug for R {
117 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
118 f.debug_struct("DBG_MAP")
119 .field("gpio_pin5_mux_sel", &self.gpio_pin5_mux_sel())
120 .field("gpio_pin4_mux_sel", &self.gpio_pin4_mux_sel())
121 .field("gpio_pin3_mux_sel", &self.gpio_pin3_mux_sel())
122 .field("gpio_pin2_mux_sel", &self.gpio_pin2_mux_sel())
123 .field("gpio_pin1_mux_sel", &self.gpio_pin1_mux_sel())
124 .field("gpio_pin0_mux_sel", &self.gpio_pin0_mux_sel())
125 .field("gpio_pin5_fun_sel", &self.gpio_pin5_fun_sel())
126 .field("gpio_pin4_fun_sel", &self.gpio_pin4_fun_sel())
127 .field("gpio_pin3_fun_sel", &self.gpio_pin3_fun_sel())
128 .field("gpio_pin2_fun_sel", &self.gpio_pin2_fun_sel())
129 .field("gpio_pin1_fun_sel", &self.gpio_pin1_fun_sel())
130 .field("gpio_pin0_fun_sel", &self.gpio_pin0_fun_sel())
131 .finish()
132 }
133}
134impl W {
135 #[doc = "Bit 2 - use for debug"]
136 #[inline(always)]
137 pub fn gpio_pin5_mux_sel(&mut self) -> GPIO_PIN5_MUX_SEL_W<DBG_MAP_SPEC> {
138 GPIO_PIN5_MUX_SEL_W::new(self, 2)
139 }
140 #[doc = "Bit 3 - use for debug"]
141 #[inline(always)]
142 pub fn gpio_pin4_mux_sel(&mut self) -> GPIO_PIN4_MUX_SEL_W<DBG_MAP_SPEC> {
143 GPIO_PIN4_MUX_SEL_W::new(self, 3)
144 }
145 #[doc = "Bit 4 - use for debug"]
146 #[inline(always)]
147 pub fn gpio_pin3_mux_sel(&mut self) -> GPIO_PIN3_MUX_SEL_W<DBG_MAP_SPEC> {
148 GPIO_PIN3_MUX_SEL_W::new(self, 4)
149 }
150 #[doc = "Bit 5 - use for debug"]
151 #[inline(always)]
152 pub fn gpio_pin2_mux_sel(&mut self) -> GPIO_PIN2_MUX_SEL_W<DBG_MAP_SPEC> {
153 GPIO_PIN2_MUX_SEL_W::new(self, 5)
154 }
155 #[doc = "Bit 6 - use for debug"]
156 #[inline(always)]
157 pub fn gpio_pin1_mux_sel(&mut self) -> GPIO_PIN1_MUX_SEL_W<DBG_MAP_SPEC> {
158 GPIO_PIN1_MUX_SEL_W::new(self, 6)
159 }
160 #[doc = "Bit 7 - use for debug"]
161 #[inline(always)]
162 pub fn gpio_pin0_mux_sel(&mut self) -> GPIO_PIN0_MUX_SEL_W<DBG_MAP_SPEC> {
163 GPIO_PIN0_MUX_SEL_W::new(self, 7)
164 }
165 #[doc = "Bits 8:11 - use for debug"]
166 #[inline(always)]
167 pub fn gpio_pin5_fun_sel(&mut self) -> GPIO_PIN5_FUN_SEL_W<DBG_MAP_SPEC> {
168 GPIO_PIN5_FUN_SEL_W::new(self, 8)
169 }
170 #[doc = "Bits 12:15 - use for debug"]
171 #[inline(always)]
172 pub fn gpio_pin4_fun_sel(&mut self) -> GPIO_PIN4_FUN_SEL_W<DBG_MAP_SPEC> {
173 GPIO_PIN4_FUN_SEL_W::new(self, 12)
174 }
175 #[doc = "Bits 16:19 - use for debug"]
176 #[inline(always)]
177 pub fn gpio_pin3_fun_sel(&mut self) -> GPIO_PIN3_FUN_SEL_W<DBG_MAP_SPEC> {
178 GPIO_PIN3_FUN_SEL_W::new(self, 16)
179 }
180 #[doc = "Bits 20:23 - use for debug"]
181 #[inline(always)]
182 pub fn gpio_pin2_fun_sel(&mut self) -> GPIO_PIN2_FUN_SEL_W<DBG_MAP_SPEC> {
183 GPIO_PIN2_FUN_SEL_W::new(self, 20)
184 }
185 #[doc = "Bits 24:27 - use for debug"]
186 #[inline(always)]
187 pub fn gpio_pin1_fun_sel(&mut self) -> GPIO_PIN1_FUN_SEL_W<DBG_MAP_SPEC> {
188 GPIO_PIN1_FUN_SEL_W::new(self, 24)
189 }
190 #[doc = "Bits 28:31 - use for debug"]
191 #[inline(always)]
192 pub fn gpio_pin0_fun_sel(&mut self) -> GPIO_PIN0_FUN_SEL_W<DBG_MAP_SPEC> {
193 GPIO_PIN0_FUN_SEL_W::new(self, 28)
194 }
195}
196#[doc = "rtc configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`dbg_map::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dbg_map::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
197pub struct DBG_MAP_SPEC;
198impl crate::RegisterSpec for DBG_MAP_SPEC {
199 type Ux = u32;
200}
201#[doc = "`read()` method returns [`dbg_map::R`](R) reader structure"]
202impl crate::Readable for DBG_MAP_SPEC {}
203#[doc = "`write(|w| ..)` method takes [`dbg_map::W`](W) writer structure"]
204impl crate::Writable for DBG_MAP_SPEC {
205 type Safety = crate::Unsafe;
206 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
207 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
208}
209#[doc = "`reset()` method sets DBG_MAP to value 0"]
210impl crate::Resettable for DBG_MAP_SPEC {
211 const RESET_VALUE: u32 = 0;
212}