ra4m3/sysc/
cgfsar.rs

1#[doc = "Register `CGFSAR` reader"]
2pub struct R(crate::R<CGFSAR_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<CGFSAR_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<CGFSAR_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<CGFSAR_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `CGFSAR` writer"]
17pub struct W(crate::W<CGFSAR_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<CGFSAR_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<CGFSAR_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<CGFSAR_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `NONSEC00` reader - Non Secure Attribute bit 00"]
38pub type NONSEC00_R = crate::BitReader<NONSEC00_A>;
39#[doc = "Non Secure Attribute bit 00\n\nValue on reset: 1"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41pub enum NONSEC00_A {
42    #[doc = "0: Secure"]
43    _0 = 0,
44    #[doc = "1: Non Secure"]
45    _1 = 1,
46}
47impl From<NONSEC00_A> for bool {
48    #[inline(always)]
49    fn from(variant: NONSEC00_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl NONSEC00_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> NONSEC00_A {
57        match self.bits {
58            false => NONSEC00_A::_0,
59            true => NONSEC00_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 == NONSEC00_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 == NONSEC00_A::_1
71    }
72}
73#[doc = "Field `NONSEC00` writer - Non Secure Attribute bit 00"]
74pub type NONSEC00_W<'a, const O: u8> = crate::BitWriter<'a, u32, CGFSAR_SPEC, NONSEC00_A, O>;
75impl<'a, const O: u8> NONSEC00_W<'a, O> {
76    #[doc = "Secure"]
77    #[inline(always)]
78    pub fn _0(self) -> &'a mut W {
79        self.variant(NONSEC00_A::_0)
80    }
81    #[doc = "Non Secure"]
82    #[inline(always)]
83    pub fn _1(self) -> &'a mut W {
84        self.variant(NONSEC00_A::_1)
85    }
86}
87#[doc = "Field `NONSEC02` reader - Non Secure Attribute bit 02"]
88pub type NONSEC02_R = crate::BitReader<NONSEC02_A>;
89#[doc = "Non Secure Attribute bit 02\n\nValue on reset: 1"]
90#[derive(Clone, Copy, Debug, PartialEq, Eq)]
91pub enum NONSEC02_A {
92    #[doc = "0: Secure"]
93    _0 = 0,
94    #[doc = "1: Non Secure"]
95    _1 = 1,
96}
97impl From<NONSEC02_A> for bool {
98    #[inline(always)]
99    fn from(variant: NONSEC02_A) -> Self {
100        variant as u8 != 0
101    }
102}
103impl NONSEC02_R {
104    #[doc = "Get enumerated values variant"]
105    #[inline(always)]
106    pub fn variant(&self) -> NONSEC02_A {
107        match self.bits {
108            false => NONSEC02_A::_0,
109            true => NONSEC02_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 == NONSEC02_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 == NONSEC02_A::_1
121    }
122}
123#[doc = "Field `NONSEC02` writer - Non Secure Attribute bit 02"]
124pub type NONSEC02_W<'a, const O: u8> = crate::BitWriter<'a, u32, CGFSAR_SPEC, NONSEC02_A, O>;
125impl<'a, const O: u8> NONSEC02_W<'a, O> {
126    #[doc = "Secure"]
127    #[inline(always)]
128    pub fn _0(self) -> &'a mut W {
129        self.variant(NONSEC02_A::_0)
130    }
131    #[doc = "Non Secure"]
132    #[inline(always)]
133    pub fn _1(self) -> &'a mut W {
134        self.variant(NONSEC02_A::_1)
135    }
136}
137#[doc = "Field `NONSEC03` reader - Non Secure Attribute bit 03"]
138pub type NONSEC03_R = crate::BitReader<NONSEC03_A>;
139#[doc = "Non Secure Attribute bit 03\n\nValue on reset: 1"]
140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
141pub enum NONSEC03_A {
142    #[doc = "0: Secure"]
143    _0 = 0,
144    #[doc = "1: Non Secure"]
145    _1 = 1,
146}
147impl From<NONSEC03_A> for bool {
148    #[inline(always)]
149    fn from(variant: NONSEC03_A) -> Self {
150        variant as u8 != 0
151    }
152}
153impl NONSEC03_R {
154    #[doc = "Get enumerated values variant"]
155    #[inline(always)]
156    pub fn variant(&self) -> NONSEC03_A {
157        match self.bits {
158            false => NONSEC03_A::_0,
159            true => NONSEC03_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 == NONSEC03_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 == NONSEC03_A::_1
171    }
172}
173#[doc = "Field `NONSEC03` writer - Non Secure Attribute bit 03"]
174pub type NONSEC03_W<'a, const O: u8> = crate::BitWriter<'a, u32, CGFSAR_SPEC, NONSEC03_A, O>;
175impl<'a, const O: u8> NONSEC03_W<'a, O> {
176    #[doc = "Secure"]
177    #[inline(always)]
178    pub fn _0(self) -> &'a mut W {
179        self.variant(NONSEC03_A::_0)
180    }
181    #[doc = "Non Secure"]
182    #[inline(always)]
183    pub fn _1(self) -> &'a mut W {
184        self.variant(NONSEC03_A::_1)
185    }
186}
187#[doc = "Field `NONSEC04` reader - Non Secure Attribute bit 04"]
188pub type NONSEC04_R = crate::BitReader<NONSEC04_A>;
189#[doc = "Non Secure Attribute bit 04\n\nValue on reset: 1"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum NONSEC04_A {
192    #[doc = "0: Secure"]
193    _0 = 0,
194    #[doc = "1: Non Secure"]
195    _1 = 1,
196}
197impl From<NONSEC04_A> for bool {
198    #[inline(always)]
199    fn from(variant: NONSEC04_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl NONSEC04_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> NONSEC04_A {
207        match self.bits {
208            false => NONSEC04_A::_0,
209            true => NONSEC04_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 == NONSEC04_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 == NONSEC04_A::_1
221    }
222}
223#[doc = "Field `NONSEC04` writer - Non Secure Attribute bit 04"]
224pub type NONSEC04_W<'a, const O: u8> = crate::BitWriter<'a, u32, CGFSAR_SPEC, NONSEC04_A, O>;
225impl<'a, const O: u8> NONSEC04_W<'a, O> {
226    #[doc = "Secure"]
227    #[inline(always)]
228    pub fn _0(self) -> &'a mut W {
229        self.variant(NONSEC04_A::_0)
230    }
231    #[doc = "Non Secure"]
232    #[inline(always)]
233    pub fn _1(self) -> &'a mut W {
234        self.variant(NONSEC04_A::_1)
235    }
236}
237#[doc = "Field `NONSEC05` reader - Non Secure Attribute bit 05"]
238pub type NONSEC05_R = crate::BitReader<NONSEC05_A>;
239#[doc = "Non Secure Attribute bit 05\n\nValue on reset: 1"]
240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
241pub enum NONSEC05_A {
242    #[doc = "0: Secure"]
243    _0 = 0,
244    #[doc = "1: Non Secure"]
245    _1 = 1,
246}
247impl From<NONSEC05_A> for bool {
248    #[inline(always)]
249    fn from(variant: NONSEC05_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl NONSEC05_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> NONSEC05_A {
257        match self.bits {
258            false => NONSEC05_A::_0,
259            true => NONSEC05_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 == NONSEC05_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 == NONSEC05_A::_1
271    }
272}
273#[doc = "Field `NONSEC05` writer - Non Secure Attribute bit 05"]
274pub type NONSEC05_W<'a, const O: u8> = crate::BitWriter<'a, u32, CGFSAR_SPEC, NONSEC05_A, O>;
275impl<'a, const O: u8> NONSEC05_W<'a, O> {
276    #[doc = "Secure"]
277    #[inline(always)]
278    pub fn _0(self) -> &'a mut W {
279        self.variant(NONSEC05_A::_0)
280    }
281    #[doc = "Non Secure"]
282    #[inline(always)]
283    pub fn _1(self) -> &'a mut W {
284        self.variant(NONSEC05_A::_1)
285    }
286}
287#[doc = "Field `NONSEC06` reader - Non Secure Attribute bit 06"]
288pub type NONSEC06_R = crate::BitReader<NONSEC06_A>;
289#[doc = "Non Secure Attribute bit 06\n\nValue on reset: 1"]
290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
291pub enum NONSEC06_A {
292    #[doc = "0: Secure"]
293    _0 = 0,
294    #[doc = "1: Non Secure"]
295    _1 = 1,
296}
297impl From<NONSEC06_A> for bool {
298    #[inline(always)]
299    fn from(variant: NONSEC06_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl NONSEC06_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> NONSEC06_A {
307        match self.bits {
308            false => NONSEC06_A::_0,
309            true => NONSEC06_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 == NONSEC06_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 == NONSEC06_A::_1
321    }
322}
323#[doc = "Field `NONSEC06` writer - Non Secure Attribute bit 06"]
324pub type NONSEC06_W<'a, const O: u8> = crate::BitWriter<'a, u32, CGFSAR_SPEC, NONSEC06_A, O>;
325impl<'a, const O: u8> NONSEC06_W<'a, O> {
326    #[doc = "Secure"]
327    #[inline(always)]
328    pub fn _0(self) -> &'a mut W {
329        self.variant(NONSEC06_A::_0)
330    }
331    #[doc = "Non Secure"]
332    #[inline(always)]
333    pub fn _1(self) -> &'a mut W {
334        self.variant(NONSEC06_A::_1)
335    }
336}
337#[doc = "Field `NONSEC07` reader - Non Secure Attribute bit 07"]
338pub type NONSEC07_R = crate::BitReader<NONSEC07_A>;
339#[doc = "Non Secure Attribute bit 07\n\nValue on reset: 1"]
340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
341pub enum NONSEC07_A {
342    #[doc = "0: Secure"]
343    _0 = 0,
344    #[doc = "1: Non Secure"]
345    _1 = 1,
346}
347impl From<NONSEC07_A> for bool {
348    #[inline(always)]
349    fn from(variant: NONSEC07_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl NONSEC07_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> NONSEC07_A {
357        match self.bits {
358            false => NONSEC07_A::_0,
359            true => NONSEC07_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 == NONSEC07_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 == NONSEC07_A::_1
371    }
372}
373#[doc = "Field `NONSEC07` writer - Non Secure Attribute bit 07"]
374pub type NONSEC07_W<'a, const O: u8> = crate::BitWriter<'a, u32, CGFSAR_SPEC, NONSEC07_A, O>;
375impl<'a, const O: u8> NONSEC07_W<'a, O> {
376    #[doc = "Secure"]
377    #[inline(always)]
378    pub fn _0(self) -> &'a mut W {
379        self.variant(NONSEC07_A::_0)
380    }
381    #[doc = "Non Secure"]
382    #[inline(always)]
383    pub fn _1(self) -> &'a mut W {
384        self.variant(NONSEC07_A::_1)
385    }
386}
387#[doc = "Field `NONSEC08` reader - Non Secure Attribute bit 08"]
388pub type NONSEC08_R = crate::BitReader<NONSEC08_A>;
389#[doc = "Non Secure Attribute bit 08\n\nValue on reset: 1"]
390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
391pub enum NONSEC08_A {
392    #[doc = "0: Secure"]
393    _0 = 0,
394    #[doc = "1: Non Secure"]
395    _1 = 1,
396}
397impl From<NONSEC08_A> for bool {
398    #[inline(always)]
399    fn from(variant: NONSEC08_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl NONSEC08_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> NONSEC08_A {
407        match self.bits {
408            false => NONSEC08_A::_0,
409            true => NONSEC08_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 == NONSEC08_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 == NONSEC08_A::_1
421    }
422}
423#[doc = "Field `NONSEC08` writer - Non Secure Attribute bit 08"]
424pub type NONSEC08_W<'a, const O: u8> = crate::BitWriter<'a, u32, CGFSAR_SPEC, NONSEC08_A, O>;
425impl<'a, const O: u8> NONSEC08_W<'a, O> {
426    #[doc = "Secure"]
427    #[inline(always)]
428    pub fn _0(self) -> &'a mut W {
429        self.variant(NONSEC08_A::_0)
430    }
431    #[doc = "Non Secure"]
432    #[inline(always)]
433    pub fn _1(self) -> &'a mut W {
434        self.variant(NONSEC08_A::_1)
435    }
436}
437#[doc = "Field `NONSEC09` reader - Non Secure Attribute bit 09"]
438pub type NONSEC09_R = crate::BitReader<NONSEC09_A>;
439#[doc = "Non Secure Attribute bit 09\n\nValue on reset: 1"]
440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
441pub enum NONSEC09_A {
442    #[doc = "0: Secure"]
443    _0 = 0,
444    #[doc = "1: Non Secure"]
445    _1 = 1,
446}
447impl From<NONSEC09_A> for bool {
448    #[inline(always)]
449    fn from(variant: NONSEC09_A) -> Self {
450        variant as u8 != 0
451    }
452}
453impl NONSEC09_R {
454    #[doc = "Get enumerated values variant"]
455    #[inline(always)]
456    pub fn variant(&self) -> NONSEC09_A {
457        match self.bits {
458            false => NONSEC09_A::_0,
459            true => NONSEC09_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 == NONSEC09_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 == NONSEC09_A::_1
471    }
472}
473#[doc = "Field `NONSEC09` writer - Non Secure Attribute bit 09"]
474pub type NONSEC09_W<'a, const O: u8> = crate::BitWriter<'a, u32, CGFSAR_SPEC, NONSEC09_A, O>;
475impl<'a, const O: u8> NONSEC09_W<'a, O> {
476    #[doc = "Secure"]
477    #[inline(always)]
478    pub fn _0(self) -> &'a mut W {
479        self.variant(NONSEC09_A::_0)
480    }
481    #[doc = "Non Secure"]
482    #[inline(always)]
483    pub fn _1(self) -> &'a mut W {
484        self.variant(NONSEC09_A::_1)
485    }
486}
487#[doc = "Field `NONSEC11` reader - Non Secure Attribute bit 11"]
488pub type NONSEC11_R = crate::BitReader<NONSEC11_A>;
489#[doc = "Non Secure Attribute bit 11\n\nValue on reset: 1"]
490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
491pub enum NONSEC11_A {
492    #[doc = "0: Secure"]
493    _0 = 0,
494    #[doc = "1: Non Secure"]
495    _1 = 1,
496}
497impl From<NONSEC11_A> for bool {
498    #[inline(always)]
499    fn from(variant: NONSEC11_A) -> Self {
500        variant as u8 != 0
501    }
502}
503impl NONSEC11_R {
504    #[doc = "Get enumerated values variant"]
505    #[inline(always)]
506    pub fn variant(&self) -> NONSEC11_A {
507        match self.bits {
508            false => NONSEC11_A::_0,
509            true => NONSEC11_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 == NONSEC11_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 == NONSEC11_A::_1
521    }
522}
523#[doc = "Field `NONSEC11` writer - Non Secure Attribute bit 11"]
524pub type NONSEC11_W<'a, const O: u8> = crate::BitWriter<'a, u32, CGFSAR_SPEC, NONSEC11_A, O>;
525impl<'a, const O: u8> NONSEC11_W<'a, O> {
526    #[doc = "Secure"]
527    #[inline(always)]
528    pub fn _0(self) -> &'a mut W {
529        self.variant(NONSEC11_A::_0)
530    }
531    #[doc = "Non Secure"]
532    #[inline(always)]
533    pub fn _1(self) -> &'a mut W {
534        self.variant(NONSEC11_A::_1)
535    }
536}
537#[doc = "Field `NONSEC16` reader - Non Secure Attribute bit 16"]
538pub type NONSEC16_R = crate::BitReader<NONSEC16_A>;
539#[doc = "Non Secure Attribute bit 16\n\nValue on reset: 1"]
540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
541pub enum NONSEC16_A {
542    #[doc = "0: Secure"]
543    _0 = 0,
544    #[doc = "1: Non Secure"]
545    _1 = 1,
546}
547impl From<NONSEC16_A> for bool {
548    #[inline(always)]
549    fn from(variant: NONSEC16_A) -> Self {
550        variant as u8 != 0
551    }
552}
553impl NONSEC16_R {
554    #[doc = "Get enumerated values variant"]
555    #[inline(always)]
556    pub fn variant(&self) -> NONSEC16_A {
557        match self.bits {
558            false => NONSEC16_A::_0,
559            true => NONSEC16_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 == NONSEC16_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 == NONSEC16_A::_1
571    }
572}
573#[doc = "Field `NONSEC16` writer - Non Secure Attribute bit 16"]
574pub type NONSEC16_W<'a, const O: u8> = crate::BitWriter<'a, u32, CGFSAR_SPEC, NONSEC16_A, O>;
575impl<'a, const O: u8> NONSEC16_W<'a, O> {
576    #[doc = "Secure"]
577    #[inline(always)]
578    pub fn _0(self) -> &'a mut W {
579        self.variant(NONSEC16_A::_0)
580    }
581    #[doc = "Non Secure"]
582    #[inline(always)]
583    pub fn _1(self) -> &'a mut W {
584        self.variant(NONSEC16_A::_1)
585    }
586}
587impl R {
588    #[doc = "Bit 0 - Non Secure Attribute bit 00"]
589    #[inline(always)]
590    pub fn nonsec00(&self) -> NONSEC00_R {
591        NONSEC00_R::new((self.bits & 1) != 0)
592    }
593    #[doc = "Bit 2 - Non Secure Attribute bit 02"]
594    #[inline(always)]
595    pub fn nonsec02(&self) -> NONSEC02_R {
596        NONSEC02_R::new(((self.bits >> 2) & 1) != 0)
597    }
598    #[doc = "Bit 3 - Non Secure Attribute bit 03"]
599    #[inline(always)]
600    pub fn nonsec03(&self) -> NONSEC03_R {
601        NONSEC03_R::new(((self.bits >> 3) & 1) != 0)
602    }
603    #[doc = "Bit 4 - Non Secure Attribute bit 04"]
604    #[inline(always)]
605    pub fn nonsec04(&self) -> NONSEC04_R {
606        NONSEC04_R::new(((self.bits >> 4) & 1) != 0)
607    }
608    #[doc = "Bit 5 - Non Secure Attribute bit 05"]
609    #[inline(always)]
610    pub fn nonsec05(&self) -> NONSEC05_R {
611        NONSEC05_R::new(((self.bits >> 5) & 1) != 0)
612    }
613    #[doc = "Bit 6 - Non Secure Attribute bit 06"]
614    #[inline(always)]
615    pub fn nonsec06(&self) -> NONSEC06_R {
616        NONSEC06_R::new(((self.bits >> 6) & 1) != 0)
617    }
618    #[doc = "Bit 7 - Non Secure Attribute bit 07"]
619    #[inline(always)]
620    pub fn nonsec07(&self) -> NONSEC07_R {
621        NONSEC07_R::new(((self.bits >> 7) & 1) != 0)
622    }
623    #[doc = "Bit 8 - Non Secure Attribute bit 08"]
624    #[inline(always)]
625    pub fn nonsec08(&self) -> NONSEC08_R {
626        NONSEC08_R::new(((self.bits >> 8) & 1) != 0)
627    }
628    #[doc = "Bit 9 - Non Secure Attribute bit 09"]
629    #[inline(always)]
630    pub fn nonsec09(&self) -> NONSEC09_R {
631        NONSEC09_R::new(((self.bits >> 9) & 1) != 0)
632    }
633    #[doc = "Bit 11 - Non Secure Attribute bit 11"]
634    #[inline(always)]
635    pub fn nonsec11(&self) -> NONSEC11_R {
636        NONSEC11_R::new(((self.bits >> 11) & 1) != 0)
637    }
638    #[doc = "Bit 16 - Non Secure Attribute bit 16"]
639    #[inline(always)]
640    pub fn nonsec16(&self) -> NONSEC16_R {
641        NONSEC16_R::new(((self.bits >> 16) & 1) != 0)
642    }
643}
644impl W {
645    #[doc = "Bit 0 - Non Secure Attribute bit 00"]
646    #[inline(always)]
647    #[must_use]
648    pub fn nonsec00(&mut self) -> NONSEC00_W<0> {
649        NONSEC00_W::new(self)
650    }
651    #[doc = "Bit 2 - Non Secure Attribute bit 02"]
652    #[inline(always)]
653    #[must_use]
654    pub fn nonsec02(&mut self) -> NONSEC02_W<2> {
655        NONSEC02_W::new(self)
656    }
657    #[doc = "Bit 3 - Non Secure Attribute bit 03"]
658    #[inline(always)]
659    #[must_use]
660    pub fn nonsec03(&mut self) -> NONSEC03_W<3> {
661        NONSEC03_W::new(self)
662    }
663    #[doc = "Bit 4 - Non Secure Attribute bit 04"]
664    #[inline(always)]
665    #[must_use]
666    pub fn nonsec04(&mut self) -> NONSEC04_W<4> {
667        NONSEC04_W::new(self)
668    }
669    #[doc = "Bit 5 - Non Secure Attribute bit 05"]
670    #[inline(always)]
671    #[must_use]
672    pub fn nonsec05(&mut self) -> NONSEC05_W<5> {
673        NONSEC05_W::new(self)
674    }
675    #[doc = "Bit 6 - Non Secure Attribute bit 06"]
676    #[inline(always)]
677    #[must_use]
678    pub fn nonsec06(&mut self) -> NONSEC06_W<6> {
679        NONSEC06_W::new(self)
680    }
681    #[doc = "Bit 7 - Non Secure Attribute bit 07"]
682    #[inline(always)]
683    #[must_use]
684    pub fn nonsec07(&mut self) -> NONSEC07_W<7> {
685        NONSEC07_W::new(self)
686    }
687    #[doc = "Bit 8 - Non Secure Attribute bit 08"]
688    #[inline(always)]
689    #[must_use]
690    pub fn nonsec08(&mut self) -> NONSEC08_W<8> {
691        NONSEC08_W::new(self)
692    }
693    #[doc = "Bit 9 - Non Secure Attribute bit 09"]
694    #[inline(always)]
695    #[must_use]
696    pub fn nonsec09(&mut self) -> NONSEC09_W<9> {
697        NONSEC09_W::new(self)
698    }
699    #[doc = "Bit 11 - Non Secure Attribute bit 11"]
700    #[inline(always)]
701    #[must_use]
702    pub fn nonsec11(&mut self) -> NONSEC11_W<11> {
703        NONSEC11_W::new(self)
704    }
705    #[doc = "Bit 16 - Non Secure Attribute bit 16"]
706    #[inline(always)]
707    #[must_use]
708    pub fn nonsec16(&mut self) -> NONSEC16_W<16> {
709        NONSEC16_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 = "Clock Generation 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 [cgfsar](index.html) module"]
719pub struct CGFSAR_SPEC;
720impl crate::RegisterSpec for CGFSAR_SPEC {
721    type Ux = u32;
722}
723#[doc = "`read()` method returns [cgfsar::R](R) reader structure"]
724impl crate::Readable for CGFSAR_SPEC {
725    type Reader = R;
726}
727#[doc = "`write(|w| ..)` method takes [cgfsar::W](W) writer structure"]
728impl crate::Writable for CGFSAR_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 CGFSAR to value 0xffff_ffff"]
734impl crate::Resettable for CGFSAR_SPEC {
735    const RESET_VALUE: Self::Ux = 0xffff_ffff;
736}