ra6e1/sysc/
bbfsar.rs

1#[doc = "Register `BBFSAR` reader"]
2pub struct R(crate::R<BBFSAR_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<BBFSAR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<BBFSAR_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<BBFSAR_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `BBFSAR` writer"]
17pub struct W(crate::W<BBFSAR_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<BBFSAR_SPEC>;
20    #[inline(always)]
21    fn deref(&self) -> &Self::Target {
22        &self.0
23    }
24}
25impl core::ops::DerefMut for W {
26    #[inline(always)]
27    fn deref_mut(&mut self) -> &mut Self::Target {
28        &mut self.0
29    }
30}
31impl From<crate::W<BBFSAR_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<BBFSAR_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `NONSEC0` reader - Non Secure Attribute bit 0"]
38pub type NONSEC0_R = crate::BitReader<NONSEC0_A>;
39#[doc = "Non Secure Attribute bit 0\n\nValue on reset: 1"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41pub enum NONSEC0_A {
42    #[doc = "0: Secure"]
43    _0 = 0,
44    #[doc = "1: Non Secure"]
45    _1 = 1,
46}
47impl From<NONSEC0_A> for bool {
48    #[inline(always)]
49    fn from(variant: NONSEC0_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl NONSEC0_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> NONSEC0_A {
57        match self.bits {
58            false => NONSEC0_A::_0,
59            true => NONSEC0_A::_1,
60        }
61    }
62    #[doc = "Checks if the value of the field is `_0`"]
63    #[inline(always)]
64    pub fn is_0(&self) -> bool {
65        *self == NONSEC0_A::_0
66    }
67    #[doc = "Checks if the value of the field is `_1`"]
68    #[inline(always)]
69    pub fn is_1(&self) -> bool {
70        *self == NONSEC0_A::_1
71    }
72}
73#[doc = "Field `NONSEC0` writer - Non Secure Attribute bit 0"]
74pub type NONSEC0_W<'a, const O: u8> = crate::BitWriter<'a, u32, BBFSAR_SPEC, NONSEC0_A, O>;
75impl<'a, const O: u8> NONSEC0_W<'a, O> {
76    #[doc = "Secure"]
77    #[inline(always)]
78    pub fn _0(self) -> &'a mut W {
79        self.variant(NONSEC0_A::_0)
80    }
81    #[doc = "Non Secure"]
82    #[inline(always)]
83    pub fn _1(self) -> &'a mut W {
84        self.variant(NONSEC0_A::_1)
85    }
86}
87#[doc = "Field `NONSEC1` reader - Non Secure Attribute bit 1"]
88pub type NONSEC1_R = crate::BitReader<NONSEC1_A>;
89#[doc = "Non Secure Attribute bit 1\n\nValue on reset: 1"]
90#[derive(Clone, Copy, Debug, PartialEq, Eq)]
91pub enum NONSEC1_A {
92    #[doc = "0: Secure"]
93    _0 = 0,
94    #[doc = "1: Non Secure"]
95    _1 = 1,
96}
97impl From<NONSEC1_A> for bool {
98    #[inline(always)]
99    fn from(variant: NONSEC1_A) -> Self {
100        variant as u8 != 0
101    }
102}
103impl NONSEC1_R {
104    #[doc = "Get enumerated values variant"]
105    #[inline(always)]
106    pub fn variant(&self) -> NONSEC1_A {
107        match self.bits {
108            false => NONSEC1_A::_0,
109            true => NONSEC1_A::_1,
110        }
111    }
112    #[doc = "Checks if the value of the field is `_0`"]
113    #[inline(always)]
114    pub fn is_0(&self) -> bool {
115        *self == NONSEC1_A::_0
116    }
117    #[doc = "Checks if the value of the field is `_1`"]
118    #[inline(always)]
119    pub fn is_1(&self) -> bool {
120        *self == NONSEC1_A::_1
121    }
122}
123#[doc = "Field `NONSEC1` writer - Non Secure Attribute bit 1"]
124pub type NONSEC1_W<'a, const O: u8> = crate::BitWriter<'a, u32, BBFSAR_SPEC, NONSEC1_A, O>;
125impl<'a, const O: u8> NONSEC1_W<'a, O> {
126    #[doc = "Secure"]
127    #[inline(always)]
128    pub fn _0(self) -> &'a mut W {
129        self.variant(NONSEC1_A::_0)
130    }
131    #[doc = "Non Secure"]
132    #[inline(always)]
133    pub fn _1(self) -> &'a mut W {
134        self.variant(NONSEC1_A::_1)
135    }
136}
137#[doc = "Field `NONSEC2` reader - Non Secure Attribute bit 2"]
138pub type NONSEC2_R = crate::BitReader<NONSEC2_A>;
139#[doc = "Non Secure Attribute bit 2\n\nValue on reset: 1"]
140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
141pub enum NONSEC2_A {
142    #[doc = "0: Secure"]
143    _0 = 0,
144    #[doc = "1: Non Secure"]
145    _1 = 1,
146}
147impl From<NONSEC2_A> for bool {
148    #[inline(always)]
149    fn from(variant: NONSEC2_A) -> Self {
150        variant as u8 != 0
151    }
152}
153impl NONSEC2_R {
154    #[doc = "Get enumerated values variant"]
155    #[inline(always)]
156    pub fn variant(&self) -> NONSEC2_A {
157        match self.bits {
158            false => NONSEC2_A::_0,
159            true => NONSEC2_A::_1,
160        }
161    }
162    #[doc = "Checks if the value of the field is `_0`"]
163    #[inline(always)]
164    pub fn is_0(&self) -> bool {
165        *self == NONSEC2_A::_0
166    }
167    #[doc = "Checks if the value of the field is `_1`"]
168    #[inline(always)]
169    pub fn is_1(&self) -> bool {
170        *self == NONSEC2_A::_1
171    }
172}
173#[doc = "Field `NONSEC2` writer - Non Secure Attribute bit 2"]
174pub type NONSEC2_W<'a, const O: u8> = crate::BitWriter<'a, u32, BBFSAR_SPEC, NONSEC2_A, O>;
175impl<'a, const O: u8> NONSEC2_W<'a, O> {
176    #[doc = "Secure"]
177    #[inline(always)]
178    pub fn _0(self) -> &'a mut W {
179        self.variant(NONSEC2_A::_0)
180    }
181    #[doc = "Non Secure"]
182    #[inline(always)]
183    pub fn _1(self) -> &'a mut W {
184        self.variant(NONSEC2_A::_1)
185    }
186}
187#[doc = "Field `NONSEC16` reader - Non Secure Attribute bit 16"]
188pub type NONSEC16_R = crate::BitReader<NONSEC16_A>;
189#[doc = "Non Secure Attribute bit 16\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum NONSEC16_A {
192    #[doc = "0: Secure"]
193    _0 = 0,
194    #[doc = "1: Non Secure"]
195    _1 = 1,
196}
197impl From<NONSEC16_A> for bool {
198    #[inline(always)]
199    fn from(variant: NONSEC16_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl NONSEC16_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> NONSEC16_A {
207        match self.bits {
208            false => NONSEC16_A::_0,
209            true => NONSEC16_A::_1,
210        }
211    }
212    #[doc = "Checks if the value of the field is `_0`"]
213    #[inline(always)]
214    pub fn is_0(&self) -> bool {
215        *self == NONSEC16_A::_0
216    }
217    #[doc = "Checks if the value of the field is `_1`"]
218    #[inline(always)]
219    pub fn is_1(&self) -> bool {
220        *self == NONSEC16_A::_1
221    }
222}
223#[doc = "Field `NONSEC16` writer - Non Secure Attribute bit 16"]
224pub type NONSEC16_W<'a, const O: u8> = crate::BitWriter<'a, u32, BBFSAR_SPEC, NONSEC16_A, O>;
225impl<'a, const O: u8> NONSEC16_W<'a, O> {
226    #[doc = "Secure"]
227    #[inline(always)]
228    pub fn _0(self) -> &'a mut W {
229        self.variant(NONSEC16_A::_0)
230    }
231    #[doc = "Non Secure"]
232    #[inline(always)]
233    pub fn _1(self) -> &'a mut W {
234        self.variant(NONSEC16_A::_1)
235    }
236}
237#[doc = "Field `NONSEC17` reader - Non Secure Attribute bit 17"]
238pub type NONSEC17_R = crate::BitReader<NONSEC17_A>;
239#[doc = "Non Secure Attribute bit 17\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
241pub enum NONSEC17_A {
242    #[doc = "0: Secure"]
243    _0 = 0,
244    #[doc = "1: Non Secure"]
245    _1 = 1,
246}
247impl From<NONSEC17_A> for bool {
248    #[inline(always)]
249    fn from(variant: NONSEC17_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl NONSEC17_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> NONSEC17_A {
257        match self.bits {
258            false => NONSEC17_A::_0,
259            true => NONSEC17_A::_1,
260        }
261    }
262    #[doc = "Checks if the value of the field is `_0`"]
263    #[inline(always)]
264    pub fn is_0(&self) -> bool {
265        *self == NONSEC17_A::_0
266    }
267    #[doc = "Checks if the value of the field is `_1`"]
268    #[inline(always)]
269    pub fn is_1(&self) -> bool {
270        *self == NONSEC17_A::_1
271    }
272}
273#[doc = "Field `NONSEC17` writer - Non Secure Attribute bit 17"]
274pub type NONSEC17_W<'a, const O: u8> = crate::BitWriter<'a, u32, BBFSAR_SPEC, NONSEC17_A, O>;
275impl<'a, const O: u8> NONSEC17_W<'a, O> {
276    #[doc = "Secure"]
277    #[inline(always)]
278    pub fn _0(self) -> &'a mut W {
279        self.variant(NONSEC17_A::_0)
280    }
281    #[doc = "Non Secure"]
282    #[inline(always)]
283    pub fn _1(self) -> &'a mut W {
284        self.variant(NONSEC17_A::_1)
285    }
286}
287#[doc = "Field `NONSEC18` reader - Non Secure Attribute bit 18"]
288pub type NONSEC18_R = crate::BitReader<NONSEC18_A>;
289#[doc = "Non Secure Attribute bit 18\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
291pub enum NONSEC18_A {
292    #[doc = "0: Secure"]
293    _0 = 0,
294    #[doc = "1: Non Secure"]
295    _1 = 1,
296}
297impl From<NONSEC18_A> for bool {
298    #[inline(always)]
299    fn from(variant: NONSEC18_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl NONSEC18_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> NONSEC18_A {
307        match self.bits {
308            false => NONSEC18_A::_0,
309            true => NONSEC18_A::_1,
310        }
311    }
312    #[doc = "Checks if the value of the field is `_0`"]
313    #[inline(always)]
314    pub fn is_0(&self) -> bool {
315        *self == NONSEC18_A::_0
316    }
317    #[doc = "Checks if the value of the field is `_1`"]
318    #[inline(always)]
319    pub fn is_1(&self) -> bool {
320        *self == NONSEC18_A::_1
321    }
322}
323#[doc = "Field `NONSEC18` writer - Non Secure Attribute bit 18"]
324pub type NONSEC18_W<'a, const O: u8> = crate::BitWriter<'a, u32, BBFSAR_SPEC, NONSEC18_A, O>;
325impl<'a, const O: u8> NONSEC18_W<'a, O> {
326    #[doc = "Secure"]
327    #[inline(always)]
328    pub fn _0(self) -> &'a mut W {
329        self.variant(NONSEC18_A::_0)
330    }
331    #[doc = "Non Secure"]
332    #[inline(always)]
333    pub fn _1(self) -> &'a mut W {
334        self.variant(NONSEC18_A::_1)
335    }
336}
337#[doc = "Field `NONSEC19` reader - Non Secure Attribute bit 19"]
338pub type NONSEC19_R = crate::BitReader<NONSEC19_A>;
339#[doc = "Non Secure Attribute bit 19\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
341pub enum NONSEC19_A {
342    #[doc = "0: Secure"]
343    _0 = 0,
344    #[doc = "1: Non Secure"]
345    _1 = 1,
346}
347impl From<NONSEC19_A> for bool {
348    #[inline(always)]
349    fn from(variant: NONSEC19_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl NONSEC19_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> NONSEC19_A {
357        match self.bits {
358            false => NONSEC19_A::_0,
359            true => NONSEC19_A::_1,
360        }
361    }
362    #[doc = "Checks if the value of the field is `_0`"]
363    #[inline(always)]
364    pub fn is_0(&self) -> bool {
365        *self == NONSEC19_A::_0
366    }
367    #[doc = "Checks if the value of the field is `_1`"]
368    #[inline(always)]
369    pub fn is_1(&self) -> bool {
370        *self == NONSEC19_A::_1
371    }
372}
373#[doc = "Field `NONSEC19` writer - Non Secure Attribute bit 19"]
374pub type NONSEC19_W<'a, const O: u8> = crate::BitWriter<'a, u32, BBFSAR_SPEC, NONSEC19_A, O>;
375impl<'a, const O: u8> NONSEC19_W<'a, O> {
376    #[doc = "Secure"]
377    #[inline(always)]
378    pub fn _0(self) -> &'a mut W {
379        self.variant(NONSEC19_A::_0)
380    }
381    #[doc = "Non Secure"]
382    #[inline(always)]
383    pub fn _1(self) -> &'a mut W {
384        self.variant(NONSEC19_A::_1)
385    }
386}
387#[doc = "Field `NONSEC20` reader - Non Secure Attribute bit 20"]
388pub type NONSEC20_R = crate::BitReader<NONSEC20_A>;
389#[doc = "Non Secure Attribute bit 20\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
391pub enum NONSEC20_A {
392    #[doc = "0: Secure"]
393    _0 = 0,
394    #[doc = "1: Non Secure"]
395    _1 = 1,
396}
397impl From<NONSEC20_A> for bool {
398    #[inline(always)]
399    fn from(variant: NONSEC20_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl NONSEC20_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> NONSEC20_A {
407        match self.bits {
408            false => NONSEC20_A::_0,
409            true => NONSEC20_A::_1,
410        }
411    }
412    #[doc = "Checks if the value of the field is `_0`"]
413    #[inline(always)]
414    pub fn is_0(&self) -> bool {
415        *self == NONSEC20_A::_0
416    }
417    #[doc = "Checks if the value of the field is `_1`"]
418    #[inline(always)]
419    pub fn is_1(&self) -> bool {
420        *self == NONSEC20_A::_1
421    }
422}
423#[doc = "Field `NONSEC20` writer - Non Secure Attribute bit 20"]
424pub type NONSEC20_W<'a, const O: u8> = crate::BitWriter<'a, u32, BBFSAR_SPEC, NONSEC20_A, O>;
425impl<'a, const O: u8> NONSEC20_W<'a, O> {
426    #[doc = "Secure"]
427    #[inline(always)]
428    pub fn _0(self) -> &'a mut W {
429        self.variant(NONSEC20_A::_0)
430    }
431    #[doc = "Non Secure"]
432    #[inline(always)]
433    pub fn _1(self) -> &'a mut W {
434        self.variant(NONSEC20_A::_1)
435    }
436}
437#[doc = "Field `NONSEC21` reader - Non Secure Attribute bit 21"]
438pub type NONSEC21_R = crate::BitReader<NONSEC21_A>;
439#[doc = "Non Secure Attribute bit 21\n\nValue on reset: 0"]
440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
441pub enum NONSEC21_A {
442    #[doc = "0: Secure"]
443    _0 = 0,
444    #[doc = "1: Non Secure"]
445    _1 = 1,
446}
447impl From<NONSEC21_A> for bool {
448    #[inline(always)]
449    fn from(variant: NONSEC21_A) -> Self {
450        variant as u8 != 0
451    }
452}
453impl NONSEC21_R {
454    #[doc = "Get enumerated values variant"]
455    #[inline(always)]
456    pub fn variant(&self) -> NONSEC21_A {
457        match self.bits {
458            false => NONSEC21_A::_0,
459            true => NONSEC21_A::_1,
460        }
461    }
462    #[doc = "Checks if the value of the field is `_0`"]
463    #[inline(always)]
464    pub fn is_0(&self) -> bool {
465        *self == NONSEC21_A::_0
466    }
467    #[doc = "Checks if the value of the field is `_1`"]
468    #[inline(always)]
469    pub fn is_1(&self) -> bool {
470        *self == NONSEC21_A::_1
471    }
472}
473#[doc = "Field `NONSEC21` writer - Non Secure Attribute bit 21"]
474pub type NONSEC21_W<'a, const O: u8> = crate::BitWriter<'a, u32, BBFSAR_SPEC, NONSEC21_A, O>;
475impl<'a, const O: u8> NONSEC21_W<'a, O> {
476    #[doc = "Secure"]
477    #[inline(always)]
478    pub fn _0(self) -> &'a mut W {
479        self.variant(NONSEC21_A::_0)
480    }
481    #[doc = "Non Secure"]
482    #[inline(always)]
483    pub fn _1(self) -> &'a mut W {
484        self.variant(NONSEC21_A::_1)
485    }
486}
487#[doc = "Field `NONSEC22` reader - Non Secure Attribute bit 22"]
488pub type NONSEC22_R = crate::BitReader<NONSEC22_A>;
489#[doc = "Non Secure Attribute bit 22\n\nValue on reset: 0"]
490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
491pub enum NONSEC22_A {
492    #[doc = "0: Secure"]
493    _0 = 0,
494    #[doc = "1: Non Secure"]
495    _1 = 1,
496}
497impl From<NONSEC22_A> for bool {
498    #[inline(always)]
499    fn from(variant: NONSEC22_A) -> Self {
500        variant as u8 != 0
501    }
502}
503impl NONSEC22_R {
504    #[doc = "Get enumerated values variant"]
505    #[inline(always)]
506    pub fn variant(&self) -> NONSEC22_A {
507        match self.bits {
508            false => NONSEC22_A::_0,
509            true => NONSEC22_A::_1,
510        }
511    }
512    #[doc = "Checks if the value of the field is `_0`"]
513    #[inline(always)]
514    pub fn is_0(&self) -> bool {
515        *self == NONSEC22_A::_0
516    }
517    #[doc = "Checks if the value of the field is `_1`"]
518    #[inline(always)]
519    pub fn is_1(&self) -> bool {
520        *self == NONSEC22_A::_1
521    }
522}
523#[doc = "Field `NONSEC22` writer - Non Secure Attribute bit 22"]
524pub type NONSEC22_W<'a, const O: u8> = crate::BitWriter<'a, u32, BBFSAR_SPEC, NONSEC22_A, O>;
525impl<'a, const O: u8> NONSEC22_W<'a, O> {
526    #[doc = "Secure"]
527    #[inline(always)]
528    pub fn _0(self) -> &'a mut W {
529        self.variant(NONSEC22_A::_0)
530    }
531    #[doc = "Non Secure"]
532    #[inline(always)]
533    pub fn _1(self) -> &'a mut W {
534        self.variant(NONSEC22_A::_1)
535    }
536}
537#[doc = "Field `NONSEC23` reader - Non Secure Attribute bit 23"]
538pub type NONSEC23_R = crate::BitReader<NONSEC23_A>;
539#[doc = "Non Secure Attribute bit 23\n\nValue on reset: 0"]
540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
541pub enum NONSEC23_A {
542    #[doc = "0: Secure"]
543    _0 = 0,
544    #[doc = "1: Non Secure"]
545    _1 = 1,
546}
547impl From<NONSEC23_A> for bool {
548    #[inline(always)]
549    fn from(variant: NONSEC23_A) -> Self {
550        variant as u8 != 0
551    }
552}
553impl NONSEC23_R {
554    #[doc = "Get enumerated values variant"]
555    #[inline(always)]
556    pub fn variant(&self) -> NONSEC23_A {
557        match self.bits {
558            false => NONSEC23_A::_0,
559            true => NONSEC23_A::_1,
560        }
561    }
562    #[doc = "Checks if the value of the field is `_0`"]
563    #[inline(always)]
564    pub fn is_0(&self) -> bool {
565        *self == NONSEC23_A::_0
566    }
567    #[doc = "Checks if the value of the field is `_1`"]
568    #[inline(always)]
569    pub fn is_1(&self) -> bool {
570        *self == NONSEC23_A::_1
571    }
572}
573#[doc = "Field `NONSEC23` writer - Non Secure Attribute bit 23"]
574pub type NONSEC23_W<'a, const O: u8> = crate::BitWriter<'a, u32, BBFSAR_SPEC, NONSEC23_A, O>;
575impl<'a, const O: u8> NONSEC23_W<'a, O> {
576    #[doc = "Secure"]
577    #[inline(always)]
578    pub fn _0(self) -> &'a mut W {
579        self.variant(NONSEC23_A::_0)
580    }
581    #[doc = "Non Secure"]
582    #[inline(always)]
583    pub fn _1(self) -> &'a mut W {
584        self.variant(NONSEC23_A::_1)
585    }
586}
587impl R {
588    #[doc = "Bit 0 - Non Secure Attribute bit 0"]
589    #[inline(always)]
590    pub fn nonsec0(&self) -> NONSEC0_R {
591        NONSEC0_R::new((self.bits & 1) != 0)
592    }
593    #[doc = "Bit 1 - Non Secure Attribute bit 1"]
594    #[inline(always)]
595    pub fn nonsec1(&self) -> NONSEC1_R {
596        NONSEC1_R::new(((self.bits >> 1) & 1) != 0)
597    }
598    #[doc = "Bit 2 - Non Secure Attribute bit 2"]
599    #[inline(always)]
600    pub fn nonsec2(&self) -> NONSEC2_R {
601        NONSEC2_R::new(((self.bits >> 2) & 1) != 0)
602    }
603    #[doc = "Bit 16 - Non Secure Attribute bit 16"]
604    #[inline(always)]
605    pub fn nonsec16(&self) -> NONSEC16_R {
606        NONSEC16_R::new(((self.bits >> 16) & 1) != 0)
607    }
608    #[doc = "Bit 17 - Non Secure Attribute bit 17"]
609    #[inline(always)]
610    pub fn nonsec17(&self) -> NONSEC17_R {
611        NONSEC17_R::new(((self.bits >> 17) & 1) != 0)
612    }
613    #[doc = "Bit 18 - Non Secure Attribute bit 18"]
614    #[inline(always)]
615    pub fn nonsec18(&self) -> NONSEC18_R {
616        NONSEC18_R::new(((self.bits >> 18) & 1) != 0)
617    }
618    #[doc = "Bit 19 - Non Secure Attribute bit 19"]
619    #[inline(always)]
620    pub fn nonsec19(&self) -> NONSEC19_R {
621        NONSEC19_R::new(((self.bits >> 19) & 1) != 0)
622    }
623    #[doc = "Bit 20 - Non Secure Attribute bit 20"]
624    #[inline(always)]
625    pub fn nonsec20(&self) -> NONSEC20_R {
626        NONSEC20_R::new(((self.bits >> 20) & 1) != 0)
627    }
628    #[doc = "Bit 21 - Non Secure Attribute bit 21"]
629    #[inline(always)]
630    pub fn nonsec21(&self) -> NONSEC21_R {
631        NONSEC21_R::new(((self.bits >> 21) & 1) != 0)
632    }
633    #[doc = "Bit 22 - Non Secure Attribute bit 22"]
634    #[inline(always)]
635    pub fn nonsec22(&self) -> NONSEC22_R {
636        NONSEC22_R::new(((self.bits >> 22) & 1) != 0)
637    }
638    #[doc = "Bit 23 - Non Secure Attribute bit 23"]
639    #[inline(always)]
640    pub fn nonsec23(&self) -> NONSEC23_R {
641        NONSEC23_R::new(((self.bits >> 23) & 1) != 0)
642    }
643}
644impl W {
645    #[doc = "Bit 0 - Non Secure Attribute bit 0"]
646    #[inline(always)]
647    #[must_use]
648    pub fn nonsec0(&mut self) -> NONSEC0_W<0> {
649        NONSEC0_W::new(self)
650    }
651    #[doc = "Bit 1 - Non Secure Attribute bit 1"]
652    #[inline(always)]
653    #[must_use]
654    pub fn nonsec1(&mut self) -> NONSEC1_W<1> {
655        NONSEC1_W::new(self)
656    }
657    #[doc = "Bit 2 - Non Secure Attribute bit 2"]
658    #[inline(always)]
659    #[must_use]
660    pub fn nonsec2(&mut self) -> NONSEC2_W<2> {
661        NONSEC2_W::new(self)
662    }
663    #[doc = "Bit 16 - Non Secure Attribute bit 16"]
664    #[inline(always)]
665    #[must_use]
666    pub fn nonsec16(&mut self) -> NONSEC16_W<16> {
667        NONSEC16_W::new(self)
668    }
669    #[doc = "Bit 17 - Non Secure Attribute bit 17"]
670    #[inline(always)]
671    #[must_use]
672    pub fn nonsec17(&mut self) -> NONSEC17_W<17> {
673        NONSEC17_W::new(self)
674    }
675    #[doc = "Bit 18 - Non Secure Attribute bit 18"]
676    #[inline(always)]
677    #[must_use]
678    pub fn nonsec18(&mut self) -> NONSEC18_W<18> {
679        NONSEC18_W::new(self)
680    }
681    #[doc = "Bit 19 - Non Secure Attribute bit 19"]
682    #[inline(always)]
683    #[must_use]
684    pub fn nonsec19(&mut self) -> NONSEC19_W<19> {
685        NONSEC19_W::new(self)
686    }
687    #[doc = "Bit 20 - Non Secure Attribute bit 20"]
688    #[inline(always)]
689    #[must_use]
690    pub fn nonsec20(&mut self) -> NONSEC20_W<20> {
691        NONSEC20_W::new(self)
692    }
693    #[doc = "Bit 21 - Non Secure Attribute bit 21"]
694    #[inline(always)]
695    #[must_use]
696    pub fn nonsec21(&mut self) -> NONSEC21_W<21> {
697        NONSEC21_W::new(self)
698    }
699    #[doc = "Bit 22 - Non Secure Attribute bit 22"]
700    #[inline(always)]
701    #[must_use]
702    pub fn nonsec22(&mut self) -> NONSEC22_W<22> {
703        NONSEC22_W::new(self)
704    }
705    #[doc = "Bit 23 - Non Secure Attribute bit 23"]
706    #[inline(always)]
707    #[must_use]
708    pub fn nonsec23(&mut self) -> NONSEC23_W<23> {
709        NONSEC23_W::new(self)
710    }
711    #[doc = "Writes raw bits to the register."]
712    #[inline(always)]
713    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
714        self.0.bits(bits);
715        self
716    }
717}
718#[doc = "Battery Backup Function Security Attribute Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [bbfsar](index.html) module"]
719pub struct BBFSAR_SPEC;
720impl crate::RegisterSpec for BBFSAR_SPEC {
721    type Ux = u32;
722}
723#[doc = "`read()` method returns [bbfsar::R](R) reader structure"]
724impl crate::Readable for BBFSAR_SPEC {
725    type Reader = R;
726}
727#[doc = "`write(|w| ..)` method takes [bbfsar::W](W) writer structure"]
728impl crate::Writable for BBFSAR_SPEC {
729    type Writer = W;
730    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
731    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
732}
733#[doc = "`reset()` method sets BBFSAR to value 0xffff"]
734impl crate::Resettable for BBFSAR_SPEC {
735    const RESET_VALUE: Self::Ux = 0xffff;
736}