ra6e1/pscu/
psare.rs

1#[doc = "Register `PSARE` reader"]
2pub struct R(crate::R<PSARE_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<PSARE_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<PSARE_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<PSARE_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `PSARE` writer"]
17pub struct W(crate::W<PSARE_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<PSARE_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<PSARE_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<PSARE_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `PSARE0` reader - WDT security attribution"]
38pub type PSARE0_R = crate::BitReader<PSARE0_A>;
39#[doc = "WDT security attribution\n\nValue on reset: 1"]
40#[derive(Clone, Copy, Debug, PartialEq, Eq)]
41pub enum PSARE0_A {
42    #[doc = "0: Secure"]
43    _0 = 0,
44    #[doc = "1: Non-secure"]
45    _1 = 1,
46}
47impl From<PSARE0_A> for bool {
48    #[inline(always)]
49    fn from(variant: PSARE0_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl PSARE0_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> PSARE0_A {
57        match self.bits {
58            false => PSARE0_A::_0,
59            true => PSARE0_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 == PSARE0_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 == PSARE0_A::_1
71    }
72}
73#[doc = "Field `PSARE0` writer - WDT security attribution"]
74pub type PSARE0_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSARE_SPEC, PSARE0_A, O>;
75impl<'a, const O: u8> PSARE0_W<'a, O> {
76    #[doc = "Secure"]
77    #[inline(always)]
78    pub fn _0(self) -> &'a mut W {
79        self.variant(PSARE0_A::_0)
80    }
81    #[doc = "Non-secure"]
82    #[inline(always)]
83    pub fn _1(self) -> &'a mut W {
84        self.variant(PSARE0_A::_1)
85    }
86}
87#[doc = "Field `PSARE1` reader - IWDT security attribution"]
88pub type PSARE1_R = crate::BitReader<PSARE1_A>;
89#[doc = "IWDT security attribution\n\nValue on reset: 1"]
90#[derive(Clone, Copy, Debug, PartialEq, Eq)]
91pub enum PSARE1_A {
92    #[doc = "0: Secure"]
93    _0 = 0,
94    #[doc = "1: Non-secure"]
95    _1 = 1,
96}
97impl From<PSARE1_A> for bool {
98    #[inline(always)]
99    fn from(variant: PSARE1_A) -> Self {
100        variant as u8 != 0
101    }
102}
103impl PSARE1_R {
104    #[doc = "Get enumerated values variant"]
105    #[inline(always)]
106    pub fn variant(&self) -> PSARE1_A {
107        match self.bits {
108            false => PSARE1_A::_0,
109            true => PSARE1_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 == PSARE1_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 == PSARE1_A::_1
121    }
122}
123#[doc = "Field `PSARE1` writer - IWDT security attribution"]
124pub type PSARE1_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSARE_SPEC, PSARE1_A, O>;
125impl<'a, const O: u8> PSARE1_W<'a, O> {
126    #[doc = "Secure"]
127    #[inline(always)]
128    pub fn _0(self) -> &'a mut W {
129        self.variant(PSARE1_A::_0)
130    }
131    #[doc = "Non-secure"]
132    #[inline(always)]
133    pub fn _1(self) -> &'a mut W {
134        self.variant(PSARE1_A::_1)
135    }
136}
137#[doc = "Field `PSARE2` reader - RTC security attribution"]
138pub type PSARE2_R = crate::BitReader<PSARE2_A>;
139#[doc = "RTC security attribution\n\nValue on reset: 1"]
140#[derive(Clone, Copy, Debug, PartialEq, Eq)]
141pub enum PSARE2_A {
142    #[doc = "0: Secure"]
143    _0 = 0,
144    #[doc = "1: Non-secure"]
145    _1 = 1,
146}
147impl From<PSARE2_A> for bool {
148    #[inline(always)]
149    fn from(variant: PSARE2_A) -> Self {
150        variant as u8 != 0
151    }
152}
153impl PSARE2_R {
154    #[doc = "Get enumerated values variant"]
155    #[inline(always)]
156    pub fn variant(&self) -> PSARE2_A {
157        match self.bits {
158            false => PSARE2_A::_0,
159            true => PSARE2_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 == PSARE2_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 == PSARE2_A::_1
171    }
172}
173#[doc = "Field `PSARE2` writer - RTC security attribution"]
174pub type PSARE2_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSARE_SPEC, PSARE2_A, O>;
175impl<'a, const O: u8> PSARE2_W<'a, O> {
176    #[doc = "Secure"]
177    #[inline(always)]
178    pub fn _0(self) -> &'a mut W {
179        self.variant(PSARE2_A::_0)
180    }
181    #[doc = "Non-secure"]
182    #[inline(always)]
183    pub fn _1(self) -> &'a mut W {
184        self.variant(PSARE2_A::_1)
185    }
186}
187#[doc = "Field `PSARE14` reader - AGT5 and the MSTPCRE.MSTPE14 bit security attribution"]
188pub type PSARE14_R = crate::BitReader<PSARE14_A>;
189#[doc = "AGT5 and the MSTPCRE.MSTPE14 bit security attribution\n\nValue on reset: 1"]
190#[derive(Clone, Copy, Debug, PartialEq, Eq)]
191pub enum PSARE14_A {
192    #[doc = "0: Secure"]
193    _0 = 0,
194    #[doc = "1: Non-secure"]
195    _1 = 1,
196}
197impl From<PSARE14_A> for bool {
198    #[inline(always)]
199    fn from(variant: PSARE14_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl PSARE14_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> PSARE14_A {
207        match self.bits {
208            false => PSARE14_A::_0,
209            true => PSARE14_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 == PSARE14_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 == PSARE14_A::_1
221    }
222}
223#[doc = "Field `PSARE14` writer - AGT5 and the MSTPCRE.MSTPE14 bit security attribution"]
224pub type PSARE14_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSARE_SPEC, PSARE14_A, O>;
225impl<'a, const O: u8> PSARE14_W<'a, O> {
226    #[doc = "Secure"]
227    #[inline(always)]
228    pub fn _0(self) -> &'a mut W {
229        self.variant(PSARE14_A::_0)
230    }
231    #[doc = "Non-secure"]
232    #[inline(always)]
233    pub fn _1(self) -> &'a mut W {
234        self.variant(PSARE14_A::_1)
235    }
236}
237#[doc = "Field `PSARE15` reader - AGT4 and the MSTPCRE.MSTPE15 bit security attribution"]
238pub type PSARE15_R = crate::BitReader<PSARE15_A>;
239#[doc = "AGT4 and the MSTPCRE.MSTPE15 bit security attribution\n\nValue on reset: 1"]
240#[derive(Clone, Copy, Debug, PartialEq, Eq)]
241pub enum PSARE15_A {
242    #[doc = "0: Secure"]
243    _0 = 0,
244    #[doc = "1: Non-secure"]
245    _1 = 1,
246}
247impl From<PSARE15_A> for bool {
248    #[inline(always)]
249    fn from(variant: PSARE15_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl PSARE15_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> PSARE15_A {
257        match self.bits {
258            false => PSARE15_A::_0,
259            true => PSARE15_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 == PSARE15_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 == PSARE15_A::_1
271    }
272}
273#[doc = "Field `PSARE15` writer - AGT4 and the MSTPCRE.MSTPE15 bit security attribution"]
274pub type PSARE15_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSARE_SPEC, PSARE15_A, O>;
275impl<'a, const O: u8> PSARE15_W<'a, O> {
276    #[doc = "Secure"]
277    #[inline(always)]
278    pub fn _0(self) -> &'a mut W {
279        self.variant(PSARE15_A::_0)
280    }
281    #[doc = "Non-secure"]
282    #[inline(always)]
283    pub fn _1(self) -> &'a mut W {
284        self.variant(PSARE15_A::_1)
285    }
286}
287#[doc = "Field `PSARE24` reader - GPT7 and the MSTPCRE.MSTPE24 bit security attribution"]
288pub type PSARE24_R = crate::BitReader<PSARE24_A>;
289#[doc = "GPT7 and the MSTPCRE.MSTPE24 bit security attribution\n\nValue on reset: 1"]
290#[derive(Clone, Copy, Debug, PartialEq, Eq)]
291pub enum PSARE24_A {
292    #[doc = "0: Secure"]
293    _0 = 0,
294    #[doc = "1: Non-secure"]
295    _1 = 1,
296}
297impl From<PSARE24_A> for bool {
298    #[inline(always)]
299    fn from(variant: PSARE24_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl PSARE24_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> PSARE24_A {
307        match self.bits {
308            false => PSARE24_A::_0,
309            true => PSARE24_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 == PSARE24_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 == PSARE24_A::_1
321    }
322}
323#[doc = "Field `PSARE24` writer - GPT7 and the MSTPCRE.MSTPE24 bit security attribution"]
324pub type PSARE24_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSARE_SPEC, PSARE24_A, O>;
325impl<'a, const O: u8> PSARE24_W<'a, O> {
326    #[doc = "Secure"]
327    #[inline(always)]
328    pub fn _0(self) -> &'a mut W {
329        self.variant(PSARE24_A::_0)
330    }
331    #[doc = "Non-secure"]
332    #[inline(always)]
333    pub fn _1(self) -> &'a mut W {
334        self.variant(PSARE24_A::_1)
335    }
336}
337#[doc = "Field `PSARE25` reader - GPT6 and the MSTPCRE.MSTPE25 bit security attribution"]
338pub type PSARE25_R = crate::BitReader<PSARE25_A>;
339#[doc = "GPT6 and the MSTPCRE.MSTPE25 bit security attribution\n\nValue on reset: 1"]
340#[derive(Clone, Copy, Debug, PartialEq, Eq)]
341pub enum PSARE25_A {
342    #[doc = "0: Secure"]
343    _0 = 0,
344    #[doc = "1: Non-secure"]
345    _1 = 1,
346}
347impl From<PSARE25_A> for bool {
348    #[inline(always)]
349    fn from(variant: PSARE25_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl PSARE25_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> PSARE25_A {
357        match self.bits {
358            false => PSARE25_A::_0,
359            true => PSARE25_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 == PSARE25_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 == PSARE25_A::_1
371    }
372}
373#[doc = "Field `PSARE25` writer - GPT6 and the MSTPCRE.MSTPE25 bit security attribution"]
374pub type PSARE25_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSARE_SPEC, PSARE25_A, O>;
375impl<'a, const O: u8> PSARE25_W<'a, O> {
376    #[doc = "Secure"]
377    #[inline(always)]
378    pub fn _0(self) -> &'a mut W {
379        self.variant(PSARE25_A::_0)
380    }
381    #[doc = "Non-secure"]
382    #[inline(always)]
383    pub fn _1(self) -> &'a mut W {
384        self.variant(PSARE25_A::_1)
385    }
386}
387#[doc = "Field `PSARE26` reader - GPT5 and the MSTPCRE.MSTPE26 bit security attribution"]
388pub type PSARE26_R = crate::BitReader<PSARE26_A>;
389#[doc = "GPT5 and the MSTPCRE.MSTPE26 bit security attribution\n\nValue on reset: 1"]
390#[derive(Clone, Copy, Debug, PartialEq, Eq)]
391pub enum PSARE26_A {
392    #[doc = "0: Secure"]
393    _0 = 0,
394    #[doc = "1: Non-secure"]
395    _1 = 1,
396}
397impl From<PSARE26_A> for bool {
398    #[inline(always)]
399    fn from(variant: PSARE26_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl PSARE26_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> PSARE26_A {
407        match self.bits {
408            false => PSARE26_A::_0,
409            true => PSARE26_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 == PSARE26_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 == PSARE26_A::_1
421    }
422}
423#[doc = "Field `PSARE26` writer - GPT5 and the MSTPCRE.MSTPE26 bit security attribution"]
424pub type PSARE26_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSARE_SPEC, PSARE26_A, O>;
425impl<'a, const O: u8> PSARE26_W<'a, O> {
426    #[doc = "Secure"]
427    #[inline(always)]
428    pub fn _0(self) -> &'a mut W {
429        self.variant(PSARE26_A::_0)
430    }
431    #[doc = "Non-secure"]
432    #[inline(always)]
433    pub fn _1(self) -> &'a mut W {
434        self.variant(PSARE26_A::_1)
435    }
436}
437#[doc = "Field `PSARE27` reader - GPT4 and the MSTPCRE.MSTPE27 bit security attribution"]
438pub type PSARE27_R = crate::BitReader<PSARE27_A>;
439#[doc = "GPT4 and the MSTPCRE.MSTPE27 bit security attribution\n\nValue on reset: 1"]
440#[derive(Clone, Copy, Debug, PartialEq, Eq)]
441pub enum PSARE27_A {
442    #[doc = "0: Secure"]
443    _0 = 0,
444    #[doc = "1: Non-secure"]
445    _1 = 1,
446}
447impl From<PSARE27_A> for bool {
448    #[inline(always)]
449    fn from(variant: PSARE27_A) -> Self {
450        variant as u8 != 0
451    }
452}
453impl PSARE27_R {
454    #[doc = "Get enumerated values variant"]
455    #[inline(always)]
456    pub fn variant(&self) -> PSARE27_A {
457        match self.bits {
458            false => PSARE27_A::_0,
459            true => PSARE27_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 == PSARE27_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 == PSARE27_A::_1
471    }
472}
473#[doc = "Field `PSARE27` writer - GPT4 and the MSTPCRE.MSTPE27 bit security attribution"]
474pub type PSARE27_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSARE_SPEC, PSARE27_A, O>;
475impl<'a, const O: u8> PSARE27_W<'a, O> {
476    #[doc = "Secure"]
477    #[inline(always)]
478    pub fn _0(self) -> &'a mut W {
479        self.variant(PSARE27_A::_0)
480    }
481    #[doc = "Non-secure"]
482    #[inline(always)]
483    pub fn _1(self) -> &'a mut W {
484        self.variant(PSARE27_A::_1)
485    }
486}
487#[doc = "Field `PSARE29` reader - GPT2 and the MSTPCRE.MSTPE29 bit security attribution"]
488pub type PSARE29_R = crate::BitReader<PSARE29_A>;
489#[doc = "GPT2 and the MSTPCRE.MSTPE29 bit security attribution\n\nValue on reset: 1"]
490#[derive(Clone, Copy, Debug, PartialEq, Eq)]
491pub enum PSARE29_A {
492    #[doc = "0: Secure"]
493    _0 = 0,
494    #[doc = "1: Non-secure"]
495    _1 = 1,
496}
497impl From<PSARE29_A> for bool {
498    #[inline(always)]
499    fn from(variant: PSARE29_A) -> Self {
500        variant as u8 != 0
501    }
502}
503impl PSARE29_R {
504    #[doc = "Get enumerated values variant"]
505    #[inline(always)]
506    pub fn variant(&self) -> PSARE29_A {
507        match self.bits {
508            false => PSARE29_A::_0,
509            true => PSARE29_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 == PSARE29_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 == PSARE29_A::_1
521    }
522}
523#[doc = "Field `PSARE29` writer - GPT2 and the MSTPCRE.MSTPE29 bit security attribution"]
524pub type PSARE29_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSARE_SPEC, PSARE29_A, O>;
525impl<'a, const O: u8> PSARE29_W<'a, O> {
526    #[doc = "Secure"]
527    #[inline(always)]
528    pub fn _0(self) -> &'a mut W {
529        self.variant(PSARE29_A::_0)
530    }
531    #[doc = "Non-secure"]
532    #[inline(always)]
533    pub fn _1(self) -> &'a mut W {
534        self.variant(PSARE29_A::_1)
535    }
536}
537#[doc = "Field `PSARE30` reader - GPT1 and the MSTPCRE.MSTPE30 bit security attribution"]
538pub type PSARE30_R = crate::BitReader<PSARE30_A>;
539#[doc = "GPT1 and the MSTPCRE.MSTPE30 bit security attribution\n\nValue on reset: 1"]
540#[derive(Clone, Copy, Debug, PartialEq, Eq)]
541pub enum PSARE30_A {
542    #[doc = "0: Secure"]
543    _0 = 0,
544    #[doc = "1: Non-secure"]
545    _1 = 1,
546}
547impl From<PSARE30_A> for bool {
548    #[inline(always)]
549    fn from(variant: PSARE30_A) -> Self {
550        variant as u8 != 0
551    }
552}
553impl PSARE30_R {
554    #[doc = "Get enumerated values variant"]
555    #[inline(always)]
556    pub fn variant(&self) -> PSARE30_A {
557        match self.bits {
558            false => PSARE30_A::_0,
559            true => PSARE30_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 == PSARE30_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 == PSARE30_A::_1
571    }
572}
573#[doc = "Field `PSARE30` writer - GPT1 and the MSTPCRE.MSTPE30 bit security attribution"]
574pub type PSARE30_W<'a, const O: u8> = crate::BitWriter<'a, u32, PSARE_SPEC, PSARE30_A, O>;
575impl<'a, const O: u8> PSARE30_W<'a, O> {
576    #[doc = "Secure"]
577    #[inline(always)]
578    pub fn _0(self) -> &'a mut W {
579        self.variant(PSARE30_A::_0)
580    }
581    #[doc = "Non-secure"]
582    #[inline(always)]
583    pub fn _1(self) -> &'a mut W {
584        self.variant(PSARE30_A::_1)
585    }
586}
587impl R {
588    #[doc = "Bit 0 - WDT security attribution"]
589    #[inline(always)]
590    pub fn psare0(&self) -> PSARE0_R {
591        PSARE0_R::new((self.bits & 1) != 0)
592    }
593    #[doc = "Bit 1 - IWDT security attribution"]
594    #[inline(always)]
595    pub fn psare1(&self) -> PSARE1_R {
596        PSARE1_R::new(((self.bits >> 1) & 1) != 0)
597    }
598    #[doc = "Bit 2 - RTC security attribution"]
599    #[inline(always)]
600    pub fn psare2(&self) -> PSARE2_R {
601        PSARE2_R::new(((self.bits >> 2) & 1) != 0)
602    }
603    #[doc = "Bit 14 - AGT5 and the MSTPCRE.MSTPE14 bit security attribution"]
604    #[inline(always)]
605    pub fn psare14(&self) -> PSARE14_R {
606        PSARE14_R::new(((self.bits >> 14) & 1) != 0)
607    }
608    #[doc = "Bit 15 - AGT4 and the MSTPCRE.MSTPE15 bit security attribution"]
609    #[inline(always)]
610    pub fn psare15(&self) -> PSARE15_R {
611        PSARE15_R::new(((self.bits >> 15) & 1) != 0)
612    }
613    #[doc = "Bit 24 - GPT7 and the MSTPCRE.MSTPE24 bit security attribution"]
614    #[inline(always)]
615    pub fn psare24(&self) -> PSARE24_R {
616        PSARE24_R::new(((self.bits >> 24) & 1) != 0)
617    }
618    #[doc = "Bit 25 - GPT6 and the MSTPCRE.MSTPE25 bit security attribution"]
619    #[inline(always)]
620    pub fn psare25(&self) -> PSARE25_R {
621        PSARE25_R::new(((self.bits >> 25) & 1) != 0)
622    }
623    #[doc = "Bit 26 - GPT5 and the MSTPCRE.MSTPE26 bit security attribution"]
624    #[inline(always)]
625    pub fn psare26(&self) -> PSARE26_R {
626        PSARE26_R::new(((self.bits >> 26) & 1) != 0)
627    }
628    #[doc = "Bit 27 - GPT4 and the MSTPCRE.MSTPE27 bit security attribution"]
629    #[inline(always)]
630    pub fn psare27(&self) -> PSARE27_R {
631        PSARE27_R::new(((self.bits >> 27) & 1) != 0)
632    }
633    #[doc = "Bit 29 - GPT2 and the MSTPCRE.MSTPE29 bit security attribution"]
634    #[inline(always)]
635    pub fn psare29(&self) -> PSARE29_R {
636        PSARE29_R::new(((self.bits >> 29) & 1) != 0)
637    }
638    #[doc = "Bit 30 - GPT1 and the MSTPCRE.MSTPE30 bit security attribution"]
639    #[inline(always)]
640    pub fn psare30(&self) -> PSARE30_R {
641        PSARE30_R::new(((self.bits >> 30) & 1) != 0)
642    }
643}
644impl W {
645    #[doc = "Bit 0 - WDT security attribution"]
646    #[inline(always)]
647    #[must_use]
648    pub fn psare0(&mut self) -> PSARE0_W<0> {
649        PSARE0_W::new(self)
650    }
651    #[doc = "Bit 1 - IWDT security attribution"]
652    #[inline(always)]
653    #[must_use]
654    pub fn psare1(&mut self) -> PSARE1_W<1> {
655        PSARE1_W::new(self)
656    }
657    #[doc = "Bit 2 - RTC security attribution"]
658    #[inline(always)]
659    #[must_use]
660    pub fn psare2(&mut self) -> PSARE2_W<2> {
661        PSARE2_W::new(self)
662    }
663    #[doc = "Bit 14 - AGT5 and the MSTPCRE.MSTPE14 bit security attribution"]
664    #[inline(always)]
665    #[must_use]
666    pub fn psare14(&mut self) -> PSARE14_W<14> {
667        PSARE14_W::new(self)
668    }
669    #[doc = "Bit 15 - AGT4 and the MSTPCRE.MSTPE15 bit security attribution"]
670    #[inline(always)]
671    #[must_use]
672    pub fn psare15(&mut self) -> PSARE15_W<15> {
673        PSARE15_W::new(self)
674    }
675    #[doc = "Bit 24 - GPT7 and the MSTPCRE.MSTPE24 bit security attribution"]
676    #[inline(always)]
677    #[must_use]
678    pub fn psare24(&mut self) -> PSARE24_W<24> {
679        PSARE24_W::new(self)
680    }
681    #[doc = "Bit 25 - GPT6 and the MSTPCRE.MSTPE25 bit security attribution"]
682    #[inline(always)]
683    #[must_use]
684    pub fn psare25(&mut self) -> PSARE25_W<25> {
685        PSARE25_W::new(self)
686    }
687    #[doc = "Bit 26 - GPT5 and the MSTPCRE.MSTPE26 bit security attribution"]
688    #[inline(always)]
689    #[must_use]
690    pub fn psare26(&mut self) -> PSARE26_W<26> {
691        PSARE26_W::new(self)
692    }
693    #[doc = "Bit 27 - GPT4 and the MSTPCRE.MSTPE27 bit security attribution"]
694    #[inline(always)]
695    #[must_use]
696    pub fn psare27(&mut self) -> PSARE27_W<27> {
697        PSARE27_W::new(self)
698    }
699    #[doc = "Bit 29 - GPT2 and the MSTPCRE.MSTPE29 bit security attribution"]
700    #[inline(always)]
701    #[must_use]
702    pub fn psare29(&mut self) -> PSARE29_W<29> {
703        PSARE29_W::new(self)
704    }
705    #[doc = "Bit 30 - GPT1 and the MSTPCRE.MSTPE30 bit security attribution"]
706    #[inline(always)]
707    #[must_use]
708    pub fn psare30(&mut self) -> PSARE30_W<30> {
709        PSARE30_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 = "Peripheral Security Attribution Register E\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 [psare](index.html) module"]
719pub struct PSARE_SPEC;
720impl crate::RegisterSpec for PSARE_SPEC {
721    type Ux = u32;
722}
723#[doc = "`read()` method returns [psare::R](R) reader structure"]
724impl crate::Readable for PSARE_SPEC {
725    type Reader = R;
726}
727#[doc = "`write(|w| ..)` method takes [psare::W](W) writer structure"]
728impl crate::Writable for PSARE_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 PSARE to value 0xffff_ffff"]
734impl crate::Resettable for PSARE_SPEC {
735    const RESET_VALUE: Self::Ux = 0xffff_ffff;
736}