corstone300_pac/syscontrol/
secdbgstat.rs1#[doc = "Register `SECDBGSTAT` reader"]
6pub struct R(crate::R<SECDBGSTAT_SPEC>);
7impl core::ops::Deref for R {
8 type Target = crate::R<SECDBGSTAT_SPEC>;
9 #[inline(always)]
10 fn deref(&self) -> &Self::Target {
11 &self.0
12 }
13}
14impl From<crate::R<SECDBGSTAT_SPEC>> for R {
15 #[inline(always)]
16 fn from(reader: crate::R<SECDBGSTAT_SPEC>) -> Self {
17 R(reader)
18 }
19}
20#[doc = "Field `DBGEN_I_STATUS` reader - Debug enable value"]
21pub type DBGEN_I_STATUS_R = crate::BitReader<DBGEN_I_STATUS_A>;
22#[doc = "Debug enable value\n\nValue on reset: 0"]
23#[derive(Clone, Copy, Debug, PartialEq, Eq)]
24pub enum DBGEN_I_STATUS_A {
25 #[doc = "1: debug enable"]
26 ENABLE = 1,
27 #[doc = "0: debug disable"]
28 DISABLE = 0,
29}
30impl From<DBGEN_I_STATUS_A> for bool {
31 #[inline(always)]
32 fn from(variant: DBGEN_I_STATUS_A) -> Self {
33 variant as u8 != 0
34 }
35}
36impl DBGEN_I_STATUS_R {
37 #[doc = "Get enumerated values variant"]
38 #[inline(always)]
39 pub fn variant(&self) -> DBGEN_I_STATUS_A {
40 match self.bits {
41 true => DBGEN_I_STATUS_A::ENABLE,
42 false => DBGEN_I_STATUS_A::DISABLE,
43 }
44 }
45 #[doc = "Checks if the value of the field is `ENABLE`"]
46 #[inline(always)]
47 pub fn is_enable(&self) -> bool {
48 *self == DBGEN_I_STATUS_A::ENABLE
49 }
50 #[doc = "Checks if the value of the field is `DISABLE`"]
51 #[inline(always)]
52 pub fn is_disable(&self) -> bool {
53 *self == DBGEN_I_STATUS_A::DISABLE
54 }
55}
56#[doc = "Field `DBGEN_SEL_STATUS` reader - Debug enable selector value"]
57pub type DBGEN_SEL_STATUS_R = crate::BitReader<DBGEN_SEL_STATUS_A>;
58#[doc = "Debug enable selector value\n\nValue on reset: 0"]
59#[derive(Clone, Copy, Debug, PartialEq, Eq)]
60pub enum DBGEN_SEL_STATUS_A {
61 #[doc = "1: debug enable selector"]
62 ENABLE = 1,
63 #[doc = "0: debug disable selector"]
64 DISABLE = 0,
65}
66impl From<DBGEN_SEL_STATUS_A> for bool {
67 #[inline(always)]
68 fn from(variant: DBGEN_SEL_STATUS_A) -> Self {
69 variant as u8 != 0
70 }
71}
72impl DBGEN_SEL_STATUS_R {
73 #[doc = "Get enumerated values variant"]
74 #[inline(always)]
75 pub fn variant(&self) -> DBGEN_SEL_STATUS_A {
76 match self.bits {
77 true => DBGEN_SEL_STATUS_A::ENABLE,
78 false => DBGEN_SEL_STATUS_A::DISABLE,
79 }
80 }
81 #[doc = "Checks if the value of the field is `ENABLE`"]
82 #[inline(always)]
83 pub fn is_enable(&self) -> bool {
84 *self == DBGEN_SEL_STATUS_A::ENABLE
85 }
86 #[doc = "Checks if the value of the field is `DISABLE`"]
87 #[inline(always)]
88 pub fn is_disable(&self) -> bool {
89 *self == DBGEN_SEL_STATUS_A::DISABLE
90 }
91}
92#[doc = "Field `NIDEN_I_STATUS` reader - Non-invasive debug enable value"]
93pub type NIDEN_I_STATUS_R = crate::BitReader<NIDEN_I_STATUS_A>;
94#[doc = "Non-invasive debug enable value\n\nValue on reset: 0"]
95#[derive(Clone, Copy, Debug, PartialEq, Eq)]
96pub enum NIDEN_I_STATUS_A {
97 #[doc = "1: non-invasive debug enable"]
98 ENABLE = 1,
99 #[doc = "0: non-invasive debug disable"]
100 DISABLE = 0,
101}
102impl From<NIDEN_I_STATUS_A> for bool {
103 #[inline(always)]
104 fn from(variant: NIDEN_I_STATUS_A) -> Self {
105 variant as u8 != 0
106 }
107}
108impl NIDEN_I_STATUS_R {
109 #[doc = "Get enumerated values variant"]
110 #[inline(always)]
111 pub fn variant(&self) -> NIDEN_I_STATUS_A {
112 match self.bits {
113 true => NIDEN_I_STATUS_A::ENABLE,
114 false => NIDEN_I_STATUS_A::DISABLE,
115 }
116 }
117 #[doc = "Checks if the value of the field is `ENABLE`"]
118 #[inline(always)]
119 pub fn is_enable(&self) -> bool {
120 *self == NIDEN_I_STATUS_A::ENABLE
121 }
122 #[doc = "Checks if the value of the field is `DISABLE`"]
123 #[inline(always)]
124 pub fn is_disable(&self) -> bool {
125 *self == NIDEN_I_STATUS_A::DISABLE
126 }
127}
128#[doc = "Field `NIDEN_SEL_STATUS` reader - Non-invasive debug enable selector value"]
129pub type NIDEN_SEL_STATUS_R = crate::BitReader<NIDEN_SEL_STATUS_A>;
130#[doc = "Non-invasive debug enable selector value\n\nValue on reset: 0"]
131#[derive(Clone, Copy, Debug, PartialEq, Eq)]
132pub enum NIDEN_SEL_STATUS_A {
133 #[doc = "1: non-invasive debug enable selector"]
134 ENABLE = 1,
135 #[doc = "0: non-invasive debug disable selector"]
136 DISABLE = 0,
137}
138impl From<NIDEN_SEL_STATUS_A> for bool {
139 #[inline(always)]
140 fn from(variant: NIDEN_SEL_STATUS_A) -> Self {
141 variant as u8 != 0
142 }
143}
144impl NIDEN_SEL_STATUS_R {
145 #[doc = "Get enumerated values variant"]
146 #[inline(always)]
147 pub fn variant(&self) -> NIDEN_SEL_STATUS_A {
148 match self.bits {
149 true => NIDEN_SEL_STATUS_A::ENABLE,
150 false => NIDEN_SEL_STATUS_A::DISABLE,
151 }
152 }
153 #[doc = "Checks if the value of the field is `ENABLE`"]
154 #[inline(always)]
155 pub fn is_enable(&self) -> bool {
156 *self == NIDEN_SEL_STATUS_A::ENABLE
157 }
158 #[doc = "Checks if the value of the field is `DISABLE`"]
159 #[inline(always)]
160 pub fn is_disable(&self) -> bool {
161 *self == NIDEN_SEL_STATUS_A::DISABLE
162 }
163}
164#[doc = "Field `SPIDEN_I_STATUS` reader - Secure privilege invasive debug enable value"]
165pub type SPIDEN_I_STATUS_R = crate::BitReader<SPIDEN_I_STATUS_A>;
166#[doc = "Secure privilege invasive debug enable value\n\nValue on reset: 0"]
167#[derive(Clone, Copy, Debug, PartialEq, Eq)]
168pub enum SPIDEN_I_STATUS_A {
169 #[doc = "1: Secure privilege invasive debug enable"]
170 ENABLE = 1,
171 #[doc = "0: Secure privilege invasive debug disable"]
172 DISABLE = 0,
173}
174impl From<SPIDEN_I_STATUS_A> for bool {
175 #[inline(always)]
176 fn from(variant: SPIDEN_I_STATUS_A) -> Self {
177 variant as u8 != 0
178 }
179}
180impl SPIDEN_I_STATUS_R {
181 #[doc = "Get enumerated values variant"]
182 #[inline(always)]
183 pub fn variant(&self) -> SPIDEN_I_STATUS_A {
184 match self.bits {
185 true => SPIDEN_I_STATUS_A::ENABLE,
186 false => SPIDEN_I_STATUS_A::DISABLE,
187 }
188 }
189 #[doc = "Checks if the value of the field is `ENABLE`"]
190 #[inline(always)]
191 pub fn is_enable(&self) -> bool {
192 *self == SPIDEN_I_STATUS_A::ENABLE
193 }
194 #[doc = "Checks if the value of the field is `DISABLE`"]
195 #[inline(always)]
196 pub fn is_disable(&self) -> bool {
197 *self == SPIDEN_I_STATUS_A::DISABLE
198 }
199}
200#[doc = "Field `SPIDEN_SEL_STATUS` reader - Secure privilege invasive debug enable selector value"]
201pub type SPIDEN_SEL_STATUS_R = crate::BitReader<SPIDEN_SEL_STATUS_A>;
202#[doc = "Secure privilege invasive debug enable selector value\n\nValue on reset: 0"]
203#[derive(Clone, Copy, Debug, PartialEq, Eq)]
204pub enum SPIDEN_SEL_STATUS_A {
205 #[doc = "1: Secure privilege invasive debug enable selector"]
206 ENABLE = 1,
207 #[doc = "0: Secure privilege invasive debug disable selector"]
208 DISABLE = 0,
209}
210impl From<SPIDEN_SEL_STATUS_A> for bool {
211 #[inline(always)]
212 fn from(variant: SPIDEN_SEL_STATUS_A) -> Self {
213 variant as u8 != 0
214 }
215}
216impl SPIDEN_SEL_STATUS_R {
217 #[doc = "Get enumerated values variant"]
218 #[inline(always)]
219 pub fn variant(&self) -> SPIDEN_SEL_STATUS_A {
220 match self.bits {
221 true => SPIDEN_SEL_STATUS_A::ENABLE,
222 false => SPIDEN_SEL_STATUS_A::DISABLE,
223 }
224 }
225 #[doc = "Checks if the value of the field is `ENABLE`"]
226 #[inline(always)]
227 pub fn is_enable(&self) -> bool {
228 *self == SPIDEN_SEL_STATUS_A::ENABLE
229 }
230 #[doc = "Checks if the value of the field is `DISABLE`"]
231 #[inline(always)]
232 pub fn is_disable(&self) -> bool {
233 *self == SPIDEN_SEL_STATUS_A::DISABLE
234 }
235}
236#[doc = "Field `SPNIDEN_STATUS` reader - Secure privilege non-invasive debug enable value"]
237pub type SPNIDEN_STATUS_R = crate::BitReader<SPNIDEN_STATUS_A>;
238#[doc = "Secure privilege non-invasive debug enable value\n\nValue on reset: 0"]
239#[derive(Clone, Copy, Debug, PartialEq, Eq)]
240pub enum SPNIDEN_STATUS_A {
241 #[doc = "1: Secure privilege non-invasive debug enable"]
242 ENABLE = 1,
243 #[doc = "0: Secure privilege non-invasive debug disable"]
244 DISABLE = 0,
245}
246impl From<SPNIDEN_STATUS_A> for bool {
247 #[inline(always)]
248 fn from(variant: SPNIDEN_STATUS_A) -> Self {
249 variant as u8 != 0
250 }
251}
252impl SPNIDEN_STATUS_R {
253 #[doc = "Get enumerated values variant"]
254 #[inline(always)]
255 pub fn variant(&self) -> SPNIDEN_STATUS_A {
256 match self.bits {
257 true => SPNIDEN_STATUS_A::ENABLE,
258 false => SPNIDEN_STATUS_A::DISABLE,
259 }
260 }
261 #[doc = "Checks if the value of the field is `ENABLE`"]
262 #[inline(always)]
263 pub fn is_enable(&self) -> bool {
264 *self == SPNIDEN_STATUS_A::ENABLE
265 }
266 #[doc = "Checks if the value of the field is `DISABLE`"]
267 #[inline(always)]
268 pub fn is_disable(&self) -> bool {
269 *self == SPNIDEN_STATUS_A::DISABLE
270 }
271}
272#[doc = "Field `SPNIDEN_SEL_STATUS` reader - Secure privilege non-invasive debug enable selector value"]
273pub type SPNIDEN_SEL_STATUS_R = crate::BitReader<SPNIDEN_SEL_STATUS_A>;
274#[doc = "Secure privilege non-invasive debug enable selector value\n\nValue on reset: 0"]
275#[derive(Clone, Copy, Debug, PartialEq, Eq)]
276pub enum SPNIDEN_SEL_STATUS_A {
277 #[doc = "1: Secure privilege non-invasive debug enable selector"]
278 ENABLE = 1,
279 #[doc = "0: Secure privilege non-invasive debug disable selector"]
280 DISABLE = 0,
281}
282impl From<SPNIDEN_SEL_STATUS_A> for bool {
283 #[inline(always)]
284 fn from(variant: SPNIDEN_SEL_STATUS_A) -> Self {
285 variant as u8 != 0
286 }
287}
288impl SPNIDEN_SEL_STATUS_R {
289 #[doc = "Get enumerated values variant"]
290 #[inline(always)]
291 pub fn variant(&self) -> SPNIDEN_SEL_STATUS_A {
292 match self.bits {
293 true => SPNIDEN_SEL_STATUS_A::ENABLE,
294 false => SPNIDEN_SEL_STATUS_A::DISABLE,
295 }
296 }
297 #[doc = "Checks if the value of the field is `ENABLE`"]
298 #[inline(always)]
299 pub fn is_enable(&self) -> bool {
300 *self == SPNIDEN_SEL_STATUS_A::ENABLE
301 }
302 #[doc = "Checks if the value of the field is `DISABLE`"]
303 #[inline(always)]
304 pub fn is_disable(&self) -> bool {
305 *self == SPNIDEN_SEL_STATUS_A::DISABLE
306 }
307}
308#[doc = "Field `DAPACCEN_STATUS` reader - Active High DAP Access Enable Value. This bit reflects the value on the DAPACCEN pin."]
309pub type DAPACCEN_STATUS_R = crate::BitReader<DAPACCEN_STATUS_A>;
310#[doc = "Active High DAP Access Enable Value. This bit reflects the value on the DAPACCEN pin.\n\nValue on reset: 0"]
311#[derive(Clone, Copy, Debug, PartialEq, Eq)]
312pub enum DAPACCEN_STATUS_A {
313 #[doc = "1: Secure privilege non-invasive debug enable selector"]
314 ENABLE = 1,
315 #[doc = "0: Secure privilege non-invasive debug disable selector"]
316 DISABLE = 0,
317}
318impl From<DAPACCEN_STATUS_A> for bool {
319 #[inline(always)]
320 fn from(variant: DAPACCEN_STATUS_A) -> Self {
321 variant as u8 != 0
322 }
323}
324impl DAPACCEN_STATUS_R {
325 #[doc = "Get enumerated values variant"]
326 #[inline(always)]
327 pub fn variant(&self) -> DAPACCEN_STATUS_A {
328 match self.bits {
329 true => DAPACCEN_STATUS_A::ENABLE,
330 false => DAPACCEN_STATUS_A::DISABLE,
331 }
332 }
333 #[doc = "Checks if the value of the field is `ENABLE`"]
334 #[inline(always)]
335 pub fn is_enable(&self) -> bool {
336 *self == DAPACCEN_STATUS_A::ENABLE
337 }
338 #[doc = "Checks if the value of the field is `DISABLE`"]
339 #[inline(always)]
340 pub fn is_disable(&self) -> bool {
341 *self == DAPACCEN_STATUS_A::DISABLE
342 }
343}
344#[doc = "Field `DAPACCEN_SEL_STATUS` reader - Active High DAP Access Enable Selector Value. This bit returns the DAPACCEN_SEL value. Forced to Zero if DAPACCENSELDIS = 1."]
345pub type DAPACCEN_SEL_STATUS_R = crate::BitReader<DAPACCEN_SEL_STATUS_A>;
346#[doc = "Active High DAP Access Enable Selector Value. This bit returns the DAPACCEN_SEL value. Forced to Zero if DAPACCENSELDIS = 1.\n\nValue on reset: 0"]
347#[derive(Clone, Copy, Debug, PartialEq, Eq)]
348pub enum DAPACCEN_SEL_STATUS_A {
349 #[doc = "1: Secure privilege non-invasive debug enable selector"]
350 ENABLE = 1,
351 #[doc = "0: Secure privilege non-invasive debug disable selector"]
352 DISABLE = 0,
353}
354impl From<DAPACCEN_SEL_STATUS_A> for bool {
355 #[inline(always)]
356 fn from(variant: DAPACCEN_SEL_STATUS_A) -> Self {
357 variant as u8 != 0
358 }
359}
360impl DAPACCEN_SEL_STATUS_R {
361 #[doc = "Get enumerated values variant"]
362 #[inline(always)]
363 pub fn variant(&self) -> DAPACCEN_SEL_STATUS_A {
364 match self.bits {
365 true => DAPACCEN_SEL_STATUS_A::ENABLE,
366 false => DAPACCEN_SEL_STATUS_A::DISABLE,
367 }
368 }
369 #[doc = "Checks if the value of the field is `ENABLE`"]
370 #[inline(always)]
371 pub fn is_enable(&self) -> bool {
372 *self == DAPACCEN_SEL_STATUS_A::ENABLE
373 }
374 #[doc = "Checks if the value of the field is `DISABLE`"]
375 #[inline(always)]
376 pub fn is_disable(&self) -> bool {
377 *self == DAPACCEN_SEL_STATUS_A::DISABLE
378 }
379}
380#[doc = "Field `DAPDSSACCEN_STATUS` reader - Active High DAP to Debug Subsystem Access Enable Value. This bit reflects the value on the DAPDSSACCEN pin."]
381pub type DAPDSSACCEN_STATUS_R = crate::BitReader<DAPDSSACCEN_STATUS_A>;
382#[doc = "Active High DAP to Debug Subsystem Access Enable Value. This bit reflects the value on the DAPDSSACCEN pin.\n\nValue on reset: 0"]
383#[derive(Clone, Copy, Debug, PartialEq, Eq)]
384pub enum DAPDSSACCEN_STATUS_A {
385 #[doc = "1: Secure privilege non-invasive debug enable selector"]
386 ENABLE = 1,
387 #[doc = "0: Secure privilege non-invasive debug disable selector"]
388 DISABLE = 0,
389}
390impl From<DAPDSSACCEN_STATUS_A> for bool {
391 #[inline(always)]
392 fn from(variant: DAPDSSACCEN_STATUS_A) -> Self {
393 variant as u8 != 0
394 }
395}
396impl DAPDSSACCEN_STATUS_R {
397 #[doc = "Get enumerated values variant"]
398 #[inline(always)]
399 pub fn variant(&self) -> DAPDSSACCEN_STATUS_A {
400 match self.bits {
401 true => DAPDSSACCEN_STATUS_A::ENABLE,
402 false => DAPDSSACCEN_STATUS_A::DISABLE,
403 }
404 }
405 #[doc = "Checks if the value of the field is `ENABLE`"]
406 #[inline(always)]
407 pub fn is_enable(&self) -> bool {
408 *self == DAPDSSACCEN_STATUS_A::ENABLE
409 }
410 #[doc = "Checks if the value of the field is `DISABLE`"]
411 #[inline(always)]
412 pub fn is_disable(&self) -> bool {
413 *self == DAPDSSACCEN_STATUS_A::DISABLE
414 }
415}
416#[doc = "Field `DAPDSSACCEN_SEL_STATUS` reader - Active High DAP to Debug Subsystem Access Enable Selector Value. This bit returns the DAPDSSACCEN_SEL value. Forced to Zero if DAPDSSACCENSELDIS = 1."]
417pub type DAPDSSACCEN_SEL_STATUS_R = crate::BitReader<DAPDSSACCEN_SEL_STATUS_A>;
418#[doc = "Active High DAP to Debug Subsystem Access Enable Selector Value. This bit returns the DAPDSSACCEN_SEL value. Forced to Zero if DAPDSSACCENSELDIS = 1.\n\nValue on reset: 0"]
419#[derive(Clone, Copy, Debug, PartialEq, Eq)]
420pub enum DAPDSSACCEN_SEL_STATUS_A {
421 #[doc = "1: Secure privilege non-invasive debug enable selector"]
422 ENABLE = 1,
423 #[doc = "0: Secure privilege non-invasive debug disable selector"]
424 DISABLE = 0,
425}
426impl From<DAPDSSACCEN_SEL_STATUS_A> for bool {
427 #[inline(always)]
428 fn from(variant: DAPDSSACCEN_SEL_STATUS_A) -> Self {
429 variant as u8 != 0
430 }
431}
432impl DAPDSSACCEN_SEL_STATUS_R {
433 #[doc = "Get enumerated values variant"]
434 #[inline(always)]
435 pub fn variant(&self) -> DAPDSSACCEN_SEL_STATUS_A {
436 match self.bits {
437 true => DAPDSSACCEN_SEL_STATUS_A::ENABLE,
438 false => DAPDSSACCEN_SEL_STATUS_A::DISABLE,
439 }
440 }
441 #[doc = "Checks if the value of the field is `ENABLE`"]
442 #[inline(always)]
443 pub fn is_enable(&self) -> bool {
444 *self == DAPDSSACCEN_SEL_STATUS_A::ENABLE
445 }
446 #[doc = "Checks if the value of the field is `DISABLE`"]
447 #[inline(always)]
448 pub fn is_disable(&self) -> bool {
449 *self == DAPDSSACCEN_SEL_STATUS_A::DISABLE
450 }
451}
452#[doc = "Field `DBGENSELDIS_STATUS` reader - Returns the DBGENSELDIS configuration value when read."]
453pub type DBGENSELDIS_STATUS_R = crate::BitReader<DBGENSELDIS_STATUS_A>;
454#[doc = "Returns the DBGENSELDIS configuration value when read.\n\nValue on reset: 0"]
455#[derive(Clone, Copy, Debug, PartialEq, Eq)]
456pub enum DBGENSELDIS_STATUS_A {
457 #[doc = "1: Secure privilege non-invasive debug enable selector"]
458 ENABLE = 1,
459 #[doc = "0: Secure privilege non-invasive debug disable selector"]
460 DISABLE = 0,
461}
462impl From<DBGENSELDIS_STATUS_A> for bool {
463 #[inline(always)]
464 fn from(variant: DBGENSELDIS_STATUS_A) -> Self {
465 variant as u8 != 0
466 }
467}
468impl DBGENSELDIS_STATUS_R {
469 #[doc = "Get enumerated values variant"]
470 #[inline(always)]
471 pub fn variant(&self) -> DBGENSELDIS_STATUS_A {
472 match self.bits {
473 true => DBGENSELDIS_STATUS_A::ENABLE,
474 false => DBGENSELDIS_STATUS_A::DISABLE,
475 }
476 }
477 #[doc = "Checks if the value of the field is `ENABLE`"]
478 #[inline(always)]
479 pub fn is_enable(&self) -> bool {
480 *self == DBGENSELDIS_STATUS_A::ENABLE
481 }
482 #[doc = "Checks if the value of the field is `DISABLE`"]
483 #[inline(always)]
484 pub fn is_disable(&self) -> bool {
485 *self == DBGENSELDIS_STATUS_A::DISABLE
486 }
487}
488#[doc = "Field `NIDENSELDIS_STATUS` reader - Returns the NIDENSELDIS configuration value when read."]
489pub type NIDENSELDIS_STATUS_R = crate::BitReader<NIDENSELDIS_STATUS_A>;
490#[doc = "Returns the NIDENSELDIS configuration value when read.\n\nValue on reset: 0"]
491#[derive(Clone, Copy, Debug, PartialEq, Eq)]
492pub enum NIDENSELDIS_STATUS_A {
493 #[doc = "1: Secure privilege non-invasive debug enable selector"]
494 ENABLE = 1,
495 #[doc = "0: Secure privilege non-invasive debug disable selector"]
496 DISABLE = 0,
497}
498impl From<NIDENSELDIS_STATUS_A> for bool {
499 #[inline(always)]
500 fn from(variant: NIDENSELDIS_STATUS_A) -> Self {
501 variant as u8 != 0
502 }
503}
504impl NIDENSELDIS_STATUS_R {
505 #[doc = "Get enumerated values variant"]
506 #[inline(always)]
507 pub fn variant(&self) -> NIDENSELDIS_STATUS_A {
508 match self.bits {
509 true => NIDENSELDIS_STATUS_A::ENABLE,
510 false => NIDENSELDIS_STATUS_A::DISABLE,
511 }
512 }
513 #[doc = "Checks if the value of the field is `ENABLE`"]
514 #[inline(always)]
515 pub fn is_enable(&self) -> bool {
516 *self == NIDENSELDIS_STATUS_A::ENABLE
517 }
518 #[doc = "Checks if the value of the field is `DISABLE`"]
519 #[inline(always)]
520 pub fn is_disable(&self) -> bool {
521 *self == NIDENSELDIS_STATUS_A::DISABLE
522 }
523}
524#[doc = "Field `SPIDENSELDIS_STATUS` reader - Returns the SPIDENSELDIS configuration value when read."]
525pub type SPIDENSELDIS_STATUS_R = crate::BitReader<SPIDENSELDIS_STATUS_A>;
526#[doc = "Returns the SPIDENSELDIS configuration value when read.\n\nValue on reset: 0"]
527#[derive(Clone, Copy, Debug, PartialEq, Eq)]
528pub enum SPIDENSELDIS_STATUS_A {
529 #[doc = "1: Secure privilege non-invasive debug enable selector"]
530 ENABLE = 1,
531 #[doc = "0: Secure privilege non-invasive debug disable selector"]
532 DISABLE = 0,
533}
534impl From<SPIDENSELDIS_STATUS_A> for bool {
535 #[inline(always)]
536 fn from(variant: SPIDENSELDIS_STATUS_A) -> Self {
537 variant as u8 != 0
538 }
539}
540impl SPIDENSELDIS_STATUS_R {
541 #[doc = "Get enumerated values variant"]
542 #[inline(always)]
543 pub fn variant(&self) -> SPIDENSELDIS_STATUS_A {
544 match self.bits {
545 true => SPIDENSELDIS_STATUS_A::ENABLE,
546 false => SPIDENSELDIS_STATUS_A::DISABLE,
547 }
548 }
549 #[doc = "Checks if the value of the field is `ENABLE`"]
550 #[inline(always)]
551 pub fn is_enable(&self) -> bool {
552 *self == SPIDENSELDIS_STATUS_A::ENABLE
553 }
554 #[doc = "Checks if the value of the field is `DISABLE`"]
555 #[inline(always)]
556 pub fn is_disable(&self) -> bool {
557 *self == SPIDENSELDIS_STATUS_A::DISABLE
558 }
559}
560#[doc = "Field `SPNIDENSELDIS_STATUS` reader - Returns the SPNIDENSELDIS configuration value when read."]
561pub type SPNIDENSELDIS_STATUS_R = crate::BitReader<SPNIDENSELDIS_STATUS_A>;
562#[doc = "Returns the SPNIDENSELDIS configuration value when read.\n\nValue on reset: 0"]
563#[derive(Clone, Copy, Debug, PartialEq, Eq)]
564pub enum SPNIDENSELDIS_STATUS_A {
565 #[doc = "1: Secure privilege non-invasive debug enable selector"]
566 ENABLE = 1,
567 #[doc = "0: Secure privilege non-invasive debug disable selector"]
568 DISABLE = 0,
569}
570impl From<SPNIDENSELDIS_STATUS_A> for bool {
571 #[inline(always)]
572 fn from(variant: SPNIDENSELDIS_STATUS_A) -> Self {
573 variant as u8 != 0
574 }
575}
576impl SPNIDENSELDIS_STATUS_R {
577 #[doc = "Get enumerated values variant"]
578 #[inline(always)]
579 pub fn variant(&self) -> SPNIDENSELDIS_STATUS_A {
580 match self.bits {
581 true => SPNIDENSELDIS_STATUS_A::ENABLE,
582 false => SPNIDENSELDIS_STATUS_A::DISABLE,
583 }
584 }
585 #[doc = "Checks if the value of the field is `ENABLE`"]
586 #[inline(always)]
587 pub fn is_enable(&self) -> bool {
588 *self == SPNIDENSELDIS_STATUS_A::ENABLE
589 }
590 #[doc = "Checks if the value of the field is `DISABLE`"]
591 #[inline(always)]
592 pub fn is_disable(&self) -> bool {
593 *self == SPNIDENSELDIS_STATUS_A::DISABLE
594 }
595}
596#[doc = "Field `DAPACCENSELDIS_STATUS` reader - Returns the DAPACCENSELDIS configuration value when read."]
597pub type DAPACCENSELDIS_STATUS_R = crate::BitReader<DAPACCENSELDIS_STATUS_A>;
598#[doc = "Returns the DAPACCENSELDIS configuration value when read.\n\nValue on reset: 0"]
599#[derive(Clone, Copy, Debug, PartialEq, Eq)]
600pub enum DAPACCENSELDIS_STATUS_A {
601 #[doc = "1: Secure privilege non-invasive debug enable selector"]
602 ENABLE = 1,
603 #[doc = "0: Secure privilege non-invasive debug disable selector"]
604 DISABLE = 0,
605}
606impl From<DAPACCENSELDIS_STATUS_A> for bool {
607 #[inline(always)]
608 fn from(variant: DAPACCENSELDIS_STATUS_A) -> Self {
609 variant as u8 != 0
610 }
611}
612impl DAPACCENSELDIS_STATUS_R {
613 #[doc = "Get enumerated values variant"]
614 #[inline(always)]
615 pub fn variant(&self) -> DAPACCENSELDIS_STATUS_A {
616 match self.bits {
617 true => DAPACCENSELDIS_STATUS_A::ENABLE,
618 false => DAPACCENSELDIS_STATUS_A::DISABLE,
619 }
620 }
621 #[doc = "Checks if the value of the field is `ENABLE`"]
622 #[inline(always)]
623 pub fn is_enable(&self) -> bool {
624 *self == DAPACCENSELDIS_STATUS_A::ENABLE
625 }
626 #[doc = "Checks if the value of the field is `DISABLE`"]
627 #[inline(always)]
628 pub fn is_disable(&self) -> bool {
629 *self == DAPACCENSELDIS_STATUS_A::DISABLE
630 }
631}
632#[doc = "Field `DAPDSSACCENSELDIS_STATUS` reader - Returns the DAPDSSACCENSELDIS configuration value when read."]
633pub type DAPDSSACCENSELDIS_STATUS_R = crate::BitReader<DAPDSSACCENSELDIS_STATUS_A>;
634#[doc = "Returns the DAPDSSACCENSELDIS configuration value when read.\n\nValue on reset: 0"]
635#[derive(Clone, Copy, Debug, PartialEq, Eq)]
636pub enum DAPDSSACCENSELDIS_STATUS_A {
637 #[doc = "1: Secure privilege non-invasive debug enable selector"]
638 ENABLE = 1,
639 #[doc = "0: Secure privilege non-invasive debug disable selector"]
640 DISABLE = 0,
641}
642impl From<DAPDSSACCENSELDIS_STATUS_A> for bool {
643 #[inline(always)]
644 fn from(variant: DAPDSSACCENSELDIS_STATUS_A) -> Self {
645 variant as u8 != 0
646 }
647}
648impl DAPDSSACCENSELDIS_STATUS_R {
649 #[doc = "Get enumerated values variant"]
650 #[inline(always)]
651 pub fn variant(&self) -> DAPDSSACCENSELDIS_STATUS_A {
652 match self.bits {
653 true => DAPDSSACCENSELDIS_STATUS_A::ENABLE,
654 false => DAPDSSACCENSELDIS_STATUS_A::DISABLE,
655 }
656 }
657 #[doc = "Checks if the value of the field is `ENABLE`"]
658 #[inline(always)]
659 pub fn is_enable(&self) -> bool {
660 *self == DAPDSSACCENSELDIS_STATUS_A::ENABLE
661 }
662 #[doc = "Checks if the value of the field is `DISABLE`"]
663 #[inline(always)]
664 pub fn is_disable(&self) -> bool {
665 *self == DAPDSSACCENSELDIS_STATUS_A::DISABLE
666 }
667}
668impl R {
669 #[doc = "Bit 0 - Debug enable value"]
670 #[inline(always)]
671 pub fn dbgen_i_status(&self) -> DBGEN_I_STATUS_R {
672 DBGEN_I_STATUS_R::new((self.bits & 1) != 0)
673 }
674 #[doc = "Bit 1 - Debug enable selector value"]
675 #[inline(always)]
676 pub fn dbgen_sel_status(&self) -> DBGEN_SEL_STATUS_R {
677 DBGEN_SEL_STATUS_R::new(((self.bits >> 1) & 1) != 0)
678 }
679 #[doc = "Bit 2 - Non-invasive debug enable value"]
680 #[inline(always)]
681 pub fn niden_i_status(&self) -> NIDEN_I_STATUS_R {
682 NIDEN_I_STATUS_R::new(((self.bits >> 2) & 1) != 0)
683 }
684 #[doc = "Bit 3 - Non-invasive debug enable selector value"]
685 #[inline(always)]
686 pub fn niden_sel_status(&self) -> NIDEN_SEL_STATUS_R {
687 NIDEN_SEL_STATUS_R::new(((self.bits >> 3) & 1) != 0)
688 }
689 #[doc = "Bit 4 - Secure privilege invasive debug enable value"]
690 #[inline(always)]
691 pub fn spiden_i_status(&self) -> SPIDEN_I_STATUS_R {
692 SPIDEN_I_STATUS_R::new(((self.bits >> 4) & 1) != 0)
693 }
694 #[doc = "Bit 5 - Secure privilege invasive debug enable selector value"]
695 #[inline(always)]
696 pub fn spiden_sel_status(&self) -> SPIDEN_SEL_STATUS_R {
697 SPIDEN_SEL_STATUS_R::new(((self.bits >> 5) & 1) != 0)
698 }
699 #[doc = "Bit 6 - Secure privilege non-invasive debug enable value"]
700 #[inline(always)]
701 pub fn spniden_status(&self) -> SPNIDEN_STATUS_R {
702 SPNIDEN_STATUS_R::new(((self.bits >> 6) & 1) != 0)
703 }
704 #[doc = "Bit 7 - Secure privilege non-invasive debug enable selector value"]
705 #[inline(always)]
706 pub fn spniden_sel_status(&self) -> SPNIDEN_SEL_STATUS_R {
707 SPNIDEN_SEL_STATUS_R::new(((self.bits >> 7) & 1) != 0)
708 }
709 #[doc = "Bit 8 - Active High DAP Access Enable Value. This bit reflects the value on the DAPACCEN pin."]
710 #[inline(always)]
711 pub fn dapaccen_status(&self) -> DAPACCEN_STATUS_R {
712 DAPACCEN_STATUS_R::new(((self.bits >> 8) & 1) != 0)
713 }
714 #[doc = "Bit 9 - Active High DAP Access Enable Selector Value. This bit returns the DAPACCEN_SEL value. Forced to Zero if DAPACCENSELDIS = 1."]
715 #[inline(always)]
716 pub fn dapaccen_sel_status(&self) -> DAPACCEN_SEL_STATUS_R {
717 DAPACCEN_SEL_STATUS_R::new(((self.bits >> 9) & 1) != 0)
718 }
719 #[doc = "Bit 10 - Active High DAP to Debug Subsystem Access Enable Value. This bit reflects the value on the DAPDSSACCEN pin."]
720 #[inline(always)]
721 pub fn dapdssaccen_status(&self) -> DAPDSSACCEN_STATUS_R {
722 DAPDSSACCEN_STATUS_R::new(((self.bits >> 10) & 1) != 0)
723 }
724 #[doc = "Bit 11 - Active High DAP to Debug Subsystem Access Enable Selector Value. This bit returns the DAPDSSACCEN_SEL value. Forced to Zero if DAPDSSACCENSELDIS = 1."]
725 #[inline(always)]
726 pub fn dapdssaccen_sel_status(&self) -> DAPDSSACCEN_SEL_STATUS_R {
727 DAPDSSACCEN_SEL_STATUS_R::new(((self.bits >> 11) & 1) != 0)
728 }
729 #[doc = "Bit 24 - Returns the DBGENSELDIS configuration value when read."]
730 #[inline(always)]
731 pub fn dbgenseldis_status(&self) -> DBGENSELDIS_STATUS_R {
732 DBGENSELDIS_STATUS_R::new(((self.bits >> 24) & 1) != 0)
733 }
734 #[doc = "Bit 25 - Returns the NIDENSELDIS configuration value when read."]
735 #[inline(always)]
736 pub fn nidenseldis_status(&self) -> NIDENSELDIS_STATUS_R {
737 NIDENSELDIS_STATUS_R::new(((self.bits >> 25) & 1) != 0)
738 }
739 #[doc = "Bit 26 - Returns the SPIDENSELDIS configuration value when read."]
740 #[inline(always)]
741 pub fn spidenseldis_status(&self) -> SPIDENSELDIS_STATUS_R {
742 SPIDENSELDIS_STATUS_R::new(((self.bits >> 26) & 1) != 0)
743 }
744 #[doc = "Bit 27 - Returns the SPNIDENSELDIS configuration value when read."]
745 #[inline(always)]
746 pub fn spnidenseldis_status(&self) -> SPNIDENSELDIS_STATUS_R {
747 SPNIDENSELDIS_STATUS_R::new(((self.bits >> 27) & 1) != 0)
748 }
749 #[doc = "Bit 28 - Returns the DAPACCENSELDIS configuration value when read."]
750 #[inline(always)]
751 pub fn dapaccenseldis_status(&self) -> DAPACCENSELDIS_STATUS_R {
752 DAPACCENSELDIS_STATUS_R::new(((self.bits >> 28) & 1) != 0)
753 }
754 #[doc = "Bit 29 - Returns the DAPDSSACCENSELDIS configuration value when read."]
755 #[inline(always)]
756 pub fn dapdssaccenseldis_status(&self) -> DAPDSSACCENSELDIS_STATUS_R {
757 DAPDSSACCENSELDIS_STATUS_R::new(((self.bits >> 29) & 1) != 0)
758 }
759}
760#[doc = "Secure Debug Configuration Status\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [secdbgstat](index.html) module"]
761pub struct SECDBGSTAT_SPEC;
762impl crate::RegisterSpec for SECDBGSTAT_SPEC {
763 type Ux = u32;
764}
765#[doc = "`read()` method returns [secdbgstat::R](R) reader structure"]
766impl crate::Readable for SECDBGSTAT_SPEC {
767 type Reader = R;
768}
769#[doc = "`reset()` method sets SECDBGSTAT to value 0"]
770impl crate::Resettable for SECDBGSTAT_SPEC {
771 #[inline(always)]
772 fn reset_value() -> Self::Ux {
773 0
774 }
775}