esp32/rtc_io/
sensor_pads.rs

1#[doc = "Register `SENSOR_PADS` reader"]
2pub type R = crate::R<SENSOR_PADS_SPEC>;
3#[doc = "Register `SENSOR_PADS` writer"]
4pub type W = crate::W<SENSOR_PADS_SPEC>;
5#[doc = "Field `SENSE4_FUN_IE` reader - the input enable of the pad"]
6pub type SENSE4_FUN_IE_R = crate::BitReader;
7#[doc = "Field `SENSE4_FUN_IE` writer - the input enable of the pad"]
8pub type SENSE4_FUN_IE_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `SENSE4_SLP_IE` reader - the input enable of the pad in sleep status"]
10pub type SENSE4_SLP_IE_R = crate::BitReader;
11#[doc = "Field `SENSE4_SLP_IE` writer - the input enable of the pad in sleep status"]
12pub type SENSE4_SLP_IE_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `SENSE4_SLP_SEL` reader - the sleep status selection signal of the pad"]
14pub type SENSE4_SLP_SEL_R = crate::BitReader;
15#[doc = "Field `SENSE4_SLP_SEL` writer - the sleep status selection signal of the pad"]
16pub type SENSE4_SLP_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `SENSE4_FUN_SEL` reader - the functional selection signal of the pad"]
18pub type SENSE4_FUN_SEL_R = crate::FieldReader;
19#[doc = "Field `SENSE4_FUN_SEL` writer - the functional selection signal of the pad"]
20pub type SENSE4_FUN_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
21#[doc = "Field `SENSE3_FUN_IE` reader - the input enable of the pad"]
22pub type SENSE3_FUN_IE_R = crate::BitReader;
23#[doc = "Field `SENSE3_FUN_IE` writer - the input enable of the pad"]
24pub type SENSE3_FUN_IE_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `SENSE3_SLP_IE` reader - the input enable of the pad in sleep status"]
26pub type SENSE3_SLP_IE_R = crate::BitReader;
27#[doc = "Field `SENSE3_SLP_IE` writer - the input enable of the pad in sleep status"]
28pub type SENSE3_SLP_IE_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `SENSE3_SLP_SEL` reader - the sleep status selection signal of the pad"]
30pub type SENSE3_SLP_SEL_R = crate::BitReader;
31#[doc = "Field `SENSE3_SLP_SEL` writer - the sleep status selection signal of the pad"]
32pub type SENSE3_SLP_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `SENSE3_FUN_SEL` reader - the functional selection signal of the pad"]
34pub type SENSE3_FUN_SEL_R = crate::FieldReader;
35#[doc = "Field `SENSE3_FUN_SEL` writer - the functional selection signal of the pad"]
36pub type SENSE3_FUN_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
37#[doc = "Field `SENSE2_FUN_IE` reader - the input enable of the pad"]
38pub type SENSE2_FUN_IE_R = crate::BitReader;
39#[doc = "Field `SENSE2_FUN_IE` writer - the input enable of the pad"]
40pub type SENSE2_FUN_IE_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `SENSE2_SLP_IE` reader - the input enable of the pad in sleep status"]
42pub type SENSE2_SLP_IE_R = crate::BitReader;
43#[doc = "Field `SENSE2_SLP_IE` writer - the input enable of the pad in sleep status"]
44pub type SENSE2_SLP_IE_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `SENSE2_SLP_SEL` reader - the sleep status selection signal of the pad"]
46pub type SENSE2_SLP_SEL_R = crate::BitReader;
47#[doc = "Field `SENSE2_SLP_SEL` writer - the sleep status selection signal of the pad"]
48pub type SENSE2_SLP_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `SENSE2_FUN_SEL` reader - the functional selection signal of the pad"]
50pub type SENSE2_FUN_SEL_R = crate::FieldReader;
51#[doc = "Field `SENSE2_FUN_SEL` writer - the functional selection signal of the pad"]
52pub type SENSE2_FUN_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
53#[doc = "Field `SENSE1_FUN_IE` reader - the input enable of the pad"]
54pub type SENSE1_FUN_IE_R = crate::BitReader;
55#[doc = "Field `SENSE1_FUN_IE` writer - the input enable of the pad"]
56pub type SENSE1_FUN_IE_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `SENSE1_SLP_IE` reader - the input enable of the pad in sleep status"]
58pub type SENSE1_SLP_IE_R = crate::BitReader;
59#[doc = "Field `SENSE1_SLP_IE` writer - the input enable of the pad in sleep status"]
60pub type SENSE1_SLP_IE_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `SENSE1_SLP_SEL` reader - the sleep status selection signal of the pad"]
62pub type SENSE1_SLP_SEL_R = crate::BitReader;
63#[doc = "Field `SENSE1_SLP_SEL` writer - the sleep status selection signal of the pad"]
64pub type SENSE1_SLP_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `SENSE1_FUN_SEL` reader - the functional selection signal of the pad"]
66pub type SENSE1_FUN_SEL_R = crate::FieldReader;
67#[doc = "Field `SENSE1_FUN_SEL` writer - the functional selection signal of the pad"]
68pub type SENSE1_FUN_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
69#[doc = "Field `SENSE4_MUX_SEL` reader - Ò1Ó select the digital function Ó0Óslection the rtc function"]
70pub type SENSE4_MUX_SEL_R = crate::BitReader;
71#[doc = "Field `SENSE4_MUX_SEL` writer - Ò1Ó select the digital function Ó0Óslection the rtc function"]
72pub type SENSE4_MUX_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `SENSE3_MUX_SEL` reader - Ò1Ó select the digital function Ó0Óslection the rtc function"]
74pub type SENSE3_MUX_SEL_R = crate::BitReader;
75#[doc = "Field `SENSE3_MUX_SEL` writer - Ò1Ó select the digital function Ó0Óslection the rtc function"]
76pub type SENSE3_MUX_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
77#[doc = "Field `SENSE2_MUX_SEL` reader - Ò1Ó select the digital function Ó0Óslection the rtc function"]
78pub type SENSE2_MUX_SEL_R = crate::BitReader;
79#[doc = "Field `SENSE2_MUX_SEL` writer - Ò1Ó select the digital function Ó0Óslection the rtc function"]
80pub type SENSE2_MUX_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
81#[doc = "Field `SENSE1_MUX_SEL` reader - Ò1Ó select the digital function Ó0Óslection the rtc function"]
82pub type SENSE1_MUX_SEL_R = crate::BitReader;
83#[doc = "Field `SENSE1_MUX_SEL` writer - Ò1Ó select the digital function Ó0Óslection the rtc function"]
84pub type SENSE1_MUX_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
85#[doc = "Field `SENSE4_HOLD` reader - hold the current value of the output when setting the hold to Ò1Ó"]
86pub type SENSE4_HOLD_R = crate::BitReader;
87#[doc = "Field `SENSE4_HOLD` writer - hold the current value of the output when setting the hold to Ò1Ó"]
88pub type SENSE4_HOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
89#[doc = "Field `SENSE3_HOLD` reader - hold the current value of the output when setting the hold to Ò1Ó"]
90pub type SENSE3_HOLD_R = crate::BitReader;
91#[doc = "Field `SENSE3_HOLD` writer - hold the current value of the output when setting the hold to Ò1Ó"]
92pub type SENSE3_HOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
93#[doc = "Field `SENSE2_HOLD` reader - hold the current value of the output when setting the hold to Ò1Ó"]
94pub type SENSE2_HOLD_R = crate::BitReader;
95#[doc = "Field `SENSE2_HOLD` writer - hold the current value of the output when setting the hold to Ò1Ó"]
96pub type SENSE2_HOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
97#[doc = "Field `SENSE1_HOLD` reader - hold the current value of the output when setting the hold to Ò1Ó"]
98pub type SENSE1_HOLD_R = crate::BitReader;
99#[doc = "Field `SENSE1_HOLD` writer - hold the current value of the output when setting the hold to Ò1Ó"]
100pub type SENSE1_HOLD_W<'a, REG> = crate::BitWriter<'a, REG>;
101impl R {
102    #[doc = "Bit 4 - the input enable of the pad"]
103    #[inline(always)]
104    pub fn sense4_fun_ie(&self) -> SENSE4_FUN_IE_R {
105        SENSE4_FUN_IE_R::new(((self.bits >> 4) & 1) != 0)
106    }
107    #[doc = "Bit 5 - the input enable of the pad in sleep status"]
108    #[inline(always)]
109    pub fn sense4_slp_ie(&self) -> SENSE4_SLP_IE_R {
110        SENSE4_SLP_IE_R::new(((self.bits >> 5) & 1) != 0)
111    }
112    #[doc = "Bit 6 - the sleep status selection signal of the pad"]
113    #[inline(always)]
114    pub fn sense4_slp_sel(&self) -> SENSE4_SLP_SEL_R {
115        SENSE4_SLP_SEL_R::new(((self.bits >> 6) & 1) != 0)
116    }
117    #[doc = "Bits 7:8 - the functional selection signal of the pad"]
118    #[inline(always)]
119    pub fn sense4_fun_sel(&self) -> SENSE4_FUN_SEL_R {
120        SENSE4_FUN_SEL_R::new(((self.bits >> 7) & 3) as u8)
121    }
122    #[doc = "Bit 9 - the input enable of the pad"]
123    #[inline(always)]
124    pub fn sense3_fun_ie(&self) -> SENSE3_FUN_IE_R {
125        SENSE3_FUN_IE_R::new(((self.bits >> 9) & 1) != 0)
126    }
127    #[doc = "Bit 10 - the input enable of the pad in sleep status"]
128    #[inline(always)]
129    pub fn sense3_slp_ie(&self) -> SENSE3_SLP_IE_R {
130        SENSE3_SLP_IE_R::new(((self.bits >> 10) & 1) != 0)
131    }
132    #[doc = "Bit 11 - the sleep status selection signal of the pad"]
133    #[inline(always)]
134    pub fn sense3_slp_sel(&self) -> SENSE3_SLP_SEL_R {
135        SENSE3_SLP_SEL_R::new(((self.bits >> 11) & 1) != 0)
136    }
137    #[doc = "Bits 12:13 - the functional selection signal of the pad"]
138    #[inline(always)]
139    pub fn sense3_fun_sel(&self) -> SENSE3_FUN_SEL_R {
140        SENSE3_FUN_SEL_R::new(((self.bits >> 12) & 3) as u8)
141    }
142    #[doc = "Bit 14 - the input enable of the pad"]
143    #[inline(always)]
144    pub fn sense2_fun_ie(&self) -> SENSE2_FUN_IE_R {
145        SENSE2_FUN_IE_R::new(((self.bits >> 14) & 1) != 0)
146    }
147    #[doc = "Bit 15 - the input enable of the pad in sleep status"]
148    #[inline(always)]
149    pub fn sense2_slp_ie(&self) -> SENSE2_SLP_IE_R {
150        SENSE2_SLP_IE_R::new(((self.bits >> 15) & 1) != 0)
151    }
152    #[doc = "Bit 16 - the sleep status selection signal of the pad"]
153    #[inline(always)]
154    pub fn sense2_slp_sel(&self) -> SENSE2_SLP_SEL_R {
155        SENSE2_SLP_SEL_R::new(((self.bits >> 16) & 1) != 0)
156    }
157    #[doc = "Bits 17:18 - the functional selection signal of the pad"]
158    #[inline(always)]
159    pub fn sense2_fun_sel(&self) -> SENSE2_FUN_SEL_R {
160        SENSE2_FUN_SEL_R::new(((self.bits >> 17) & 3) as u8)
161    }
162    #[doc = "Bit 19 - the input enable of the pad"]
163    #[inline(always)]
164    pub fn sense1_fun_ie(&self) -> SENSE1_FUN_IE_R {
165        SENSE1_FUN_IE_R::new(((self.bits >> 19) & 1) != 0)
166    }
167    #[doc = "Bit 20 - the input enable of the pad in sleep status"]
168    #[inline(always)]
169    pub fn sense1_slp_ie(&self) -> SENSE1_SLP_IE_R {
170        SENSE1_SLP_IE_R::new(((self.bits >> 20) & 1) != 0)
171    }
172    #[doc = "Bit 21 - the sleep status selection signal of the pad"]
173    #[inline(always)]
174    pub fn sense1_slp_sel(&self) -> SENSE1_SLP_SEL_R {
175        SENSE1_SLP_SEL_R::new(((self.bits >> 21) & 1) != 0)
176    }
177    #[doc = "Bits 22:23 - the functional selection signal of the pad"]
178    #[inline(always)]
179    pub fn sense1_fun_sel(&self) -> SENSE1_FUN_SEL_R {
180        SENSE1_FUN_SEL_R::new(((self.bits >> 22) & 3) as u8)
181    }
182    #[doc = "Bit 24 - Ò1Ó select the digital function Ó0Óslection the rtc function"]
183    #[inline(always)]
184    pub fn sense4_mux_sel(&self) -> SENSE4_MUX_SEL_R {
185        SENSE4_MUX_SEL_R::new(((self.bits >> 24) & 1) != 0)
186    }
187    #[doc = "Bit 25 - Ò1Ó select the digital function Ó0Óslection the rtc function"]
188    #[inline(always)]
189    pub fn sense3_mux_sel(&self) -> SENSE3_MUX_SEL_R {
190        SENSE3_MUX_SEL_R::new(((self.bits >> 25) & 1) != 0)
191    }
192    #[doc = "Bit 26 - Ò1Ó select the digital function Ó0Óslection the rtc function"]
193    #[inline(always)]
194    pub fn sense2_mux_sel(&self) -> SENSE2_MUX_SEL_R {
195        SENSE2_MUX_SEL_R::new(((self.bits >> 26) & 1) != 0)
196    }
197    #[doc = "Bit 27 - Ò1Ó select the digital function Ó0Óslection the rtc function"]
198    #[inline(always)]
199    pub fn sense1_mux_sel(&self) -> SENSE1_MUX_SEL_R {
200        SENSE1_MUX_SEL_R::new(((self.bits >> 27) & 1) != 0)
201    }
202    #[doc = "Bit 28 - hold the current value of the output when setting the hold to Ò1Ó"]
203    #[inline(always)]
204    pub fn sense4_hold(&self) -> SENSE4_HOLD_R {
205        SENSE4_HOLD_R::new(((self.bits >> 28) & 1) != 0)
206    }
207    #[doc = "Bit 29 - hold the current value of the output when setting the hold to Ò1Ó"]
208    #[inline(always)]
209    pub fn sense3_hold(&self) -> SENSE3_HOLD_R {
210        SENSE3_HOLD_R::new(((self.bits >> 29) & 1) != 0)
211    }
212    #[doc = "Bit 30 - hold the current value of the output when setting the hold to Ò1Ó"]
213    #[inline(always)]
214    pub fn sense2_hold(&self) -> SENSE2_HOLD_R {
215        SENSE2_HOLD_R::new(((self.bits >> 30) & 1) != 0)
216    }
217    #[doc = "Bit 31 - hold the current value of the output when setting the hold to Ò1Ó"]
218    #[inline(always)]
219    pub fn sense1_hold(&self) -> SENSE1_HOLD_R {
220        SENSE1_HOLD_R::new(((self.bits >> 31) & 1) != 0)
221    }
222}
223#[cfg(feature = "impl-register-debug")]
224impl core::fmt::Debug for R {
225    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
226        f.debug_struct("SENSOR_PADS")
227            .field("sense4_fun_ie", &self.sense4_fun_ie())
228            .field("sense4_slp_ie", &self.sense4_slp_ie())
229            .field("sense4_slp_sel", &self.sense4_slp_sel())
230            .field("sense4_fun_sel", &self.sense4_fun_sel())
231            .field("sense3_fun_ie", &self.sense3_fun_ie())
232            .field("sense3_slp_ie", &self.sense3_slp_ie())
233            .field("sense3_slp_sel", &self.sense3_slp_sel())
234            .field("sense3_fun_sel", &self.sense3_fun_sel())
235            .field("sense2_fun_ie", &self.sense2_fun_ie())
236            .field("sense2_slp_ie", &self.sense2_slp_ie())
237            .field("sense2_slp_sel", &self.sense2_slp_sel())
238            .field("sense2_fun_sel", &self.sense2_fun_sel())
239            .field("sense1_fun_ie", &self.sense1_fun_ie())
240            .field("sense1_slp_ie", &self.sense1_slp_ie())
241            .field("sense1_slp_sel", &self.sense1_slp_sel())
242            .field("sense1_fun_sel", &self.sense1_fun_sel())
243            .field("sense4_mux_sel", &self.sense4_mux_sel())
244            .field("sense3_mux_sel", &self.sense3_mux_sel())
245            .field("sense2_mux_sel", &self.sense2_mux_sel())
246            .field("sense1_mux_sel", &self.sense1_mux_sel())
247            .field("sense4_hold", &self.sense4_hold())
248            .field("sense3_hold", &self.sense3_hold())
249            .field("sense2_hold", &self.sense2_hold())
250            .field("sense1_hold", &self.sense1_hold())
251            .finish()
252    }
253}
254impl W {
255    #[doc = "Bit 4 - the input enable of the pad"]
256    #[inline(always)]
257    pub fn sense4_fun_ie(&mut self) -> SENSE4_FUN_IE_W<SENSOR_PADS_SPEC> {
258        SENSE4_FUN_IE_W::new(self, 4)
259    }
260    #[doc = "Bit 5 - the input enable of the pad in sleep status"]
261    #[inline(always)]
262    pub fn sense4_slp_ie(&mut self) -> SENSE4_SLP_IE_W<SENSOR_PADS_SPEC> {
263        SENSE4_SLP_IE_W::new(self, 5)
264    }
265    #[doc = "Bit 6 - the sleep status selection signal of the pad"]
266    #[inline(always)]
267    pub fn sense4_slp_sel(&mut self) -> SENSE4_SLP_SEL_W<SENSOR_PADS_SPEC> {
268        SENSE4_SLP_SEL_W::new(self, 6)
269    }
270    #[doc = "Bits 7:8 - the functional selection signal of the pad"]
271    #[inline(always)]
272    pub fn sense4_fun_sel(&mut self) -> SENSE4_FUN_SEL_W<SENSOR_PADS_SPEC> {
273        SENSE4_FUN_SEL_W::new(self, 7)
274    }
275    #[doc = "Bit 9 - the input enable of the pad"]
276    #[inline(always)]
277    pub fn sense3_fun_ie(&mut self) -> SENSE3_FUN_IE_W<SENSOR_PADS_SPEC> {
278        SENSE3_FUN_IE_W::new(self, 9)
279    }
280    #[doc = "Bit 10 - the input enable of the pad in sleep status"]
281    #[inline(always)]
282    pub fn sense3_slp_ie(&mut self) -> SENSE3_SLP_IE_W<SENSOR_PADS_SPEC> {
283        SENSE3_SLP_IE_W::new(self, 10)
284    }
285    #[doc = "Bit 11 - the sleep status selection signal of the pad"]
286    #[inline(always)]
287    pub fn sense3_slp_sel(&mut self) -> SENSE3_SLP_SEL_W<SENSOR_PADS_SPEC> {
288        SENSE3_SLP_SEL_W::new(self, 11)
289    }
290    #[doc = "Bits 12:13 - the functional selection signal of the pad"]
291    #[inline(always)]
292    pub fn sense3_fun_sel(&mut self) -> SENSE3_FUN_SEL_W<SENSOR_PADS_SPEC> {
293        SENSE3_FUN_SEL_W::new(self, 12)
294    }
295    #[doc = "Bit 14 - the input enable of the pad"]
296    #[inline(always)]
297    pub fn sense2_fun_ie(&mut self) -> SENSE2_FUN_IE_W<SENSOR_PADS_SPEC> {
298        SENSE2_FUN_IE_W::new(self, 14)
299    }
300    #[doc = "Bit 15 - the input enable of the pad in sleep status"]
301    #[inline(always)]
302    pub fn sense2_slp_ie(&mut self) -> SENSE2_SLP_IE_W<SENSOR_PADS_SPEC> {
303        SENSE2_SLP_IE_W::new(self, 15)
304    }
305    #[doc = "Bit 16 - the sleep status selection signal of the pad"]
306    #[inline(always)]
307    pub fn sense2_slp_sel(&mut self) -> SENSE2_SLP_SEL_W<SENSOR_PADS_SPEC> {
308        SENSE2_SLP_SEL_W::new(self, 16)
309    }
310    #[doc = "Bits 17:18 - the functional selection signal of the pad"]
311    #[inline(always)]
312    pub fn sense2_fun_sel(&mut self) -> SENSE2_FUN_SEL_W<SENSOR_PADS_SPEC> {
313        SENSE2_FUN_SEL_W::new(self, 17)
314    }
315    #[doc = "Bit 19 - the input enable of the pad"]
316    #[inline(always)]
317    pub fn sense1_fun_ie(&mut self) -> SENSE1_FUN_IE_W<SENSOR_PADS_SPEC> {
318        SENSE1_FUN_IE_W::new(self, 19)
319    }
320    #[doc = "Bit 20 - the input enable of the pad in sleep status"]
321    #[inline(always)]
322    pub fn sense1_slp_ie(&mut self) -> SENSE1_SLP_IE_W<SENSOR_PADS_SPEC> {
323        SENSE1_SLP_IE_W::new(self, 20)
324    }
325    #[doc = "Bit 21 - the sleep status selection signal of the pad"]
326    #[inline(always)]
327    pub fn sense1_slp_sel(&mut self) -> SENSE1_SLP_SEL_W<SENSOR_PADS_SPEC> {
328        SENSE1_SLP_SEL_W::new(self, 21)
329    }
330    #[doc = "Bits 22:23 - the functional selection signal of the pad"]
331    #[inline(always)]
332    pub fn sense1_fun_sel(&mut self) -> SENSE1_FUN_SEL_W<SENSOR_PADS_SPEC> {
333        SENSE1_FUN_SEL_W::new(self, 22)
334    }
335    #[doc = "Bit 24 - Ò1Ó select the digital function Ó0Óslection the rtc function"]
336    #[inline(always)]
337    pub fn sense4_mux_sel(&mut self) -> SENSE4_MUX_SEL_W<SENSOR_PADS_SPEC> {
338        SENSE4_MUX_SEL_W::new(self, 24)
339    }
340    #[doc = "Bit 25 - Ò1Ó select the digital function Ó0Óslection the rtc function"]
341    #[inline(always)]
342    pub fn sense3_mux_sel(&mut self) -> SENSE3_MUX_SEL_W<SENSOR_PADS_SPEC> {
343        SENSE3_MUX_SEL_W::new(self, 25)
344    }
345    #[doc = "Bit 26 - Ò1Ó select the digital function Ó0Óslection the rtc function"]
346    #[inline(always)]
347    pub fn sense2_mux_sel(&mut self) -> SENSE2_MUX_SEL_W<SENSOR_PADS_SPEC> {
348        SENSE2_MUX_SEL_W::new(self, 26)
349    }
350    #[doc = "Bit 27 - Ò1Ó select the digital function Ó0Óslection the rtc function"]
351    #[inline(always)]
352    pub fn sense1_mux_sel(&mut self) -> SENSE1_MUX_SEL_W<SENSOR_PADS_SPEC> {
353        SENSE1_MUX_SEL_W::new(self, 27)
354    }
355    #[doc = "Bit 28 - hold the current value of the output when setting the hold to Ò1Ó"]
356    #[inline(always)]
357    pub fn sense4_hold(&mut self) -> SENSE4_HOLD_W<SENSOR_PADS_SPEC> {
358        SENSE4_HOLD_W::new(self, 28)
359    }
360    #[doc = "Bit 29 - hold the current value of the output when setting the hold to Ò1Ó"]
361    #[inline(always)]
362    pub fn sense3_hold(&mut self) -> SENSE3_HOLD_W<SENSOR_PADS_SPEC> {
363        SENSE3_HOLD_W::new(self, 29)
364    }
365    #[doc = "Bit 30 - hold the current value of the output when setting the hold to Ò1Ó"]
366    #[inline(always)]
367    pub fn sense2_hold(&mut self) -> SENSE2_HOLD_W<SENSOR_PADS_SPEC> {
368        SENSE2_HOLD_W::new(self, 30)
369    }
370    #[doc = "Bit 31 - hold the current value of the output when setting the hold to Ò1Ó"]
371    #[inline(always)]
372    pub fn sense1_hold(&mut self) -> SENSE1_HOLD_W<SENSOR_PADS_SPEC> {
373        SENSE1_HOLD_W::new(self, 31)
374    }
375}
376#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`sensor_pads::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sensor_pads::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
377pub struct SENSOR_PADS_SPEC;
378impl crate::RegisterSpec for SENSOR_PADS_SPEC {
379    type Ux = u32;
380}
381#[doc = "`read()` method returns [`sensor_pads::R`](R) reader structure"]
382impl crate::Readable for SENSOR_PADS_SPEC {}
383#[doc = "`write(|w| ..)` method takes [`sensor_pads::W`](W) writer structure"]
384impl crate::Writable for SENSOR_PADS_SPEC {
385    type Safety = crate::Unsafe;
386    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
387    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
388}
389#[doc = "`reset()` method sets SENSOR_PADS to value 0"]
390impl crate::Resettable for SENSOR_PADS_SPEC {
391    const RESET_VALUE: u32 = 0;
392}