bl702_pac/glb/
tzc_glb_ctrl_2.rs

1#[doc = "Register `tzc_glb_ctrl_2` reader"]
2pub struct R(crate::R<TZC_GLB_CTRL_2_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<TZC_GLB_CTRL_2_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<TZC_GLB_CTRL_2_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<TZC_GLB_CTRL_2_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `tzc_glb_ctrl_2` writer"]
17pub struct W(crate::W<TZC_GLB_CTRL_2_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<TZC_GLB_CTRL_2_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<TZC_GLB_CTRL_2_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<TZC_GLB_CTRL_2_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `tzc_glb_gpio_0_lock` reader - "]
38pub type TZC_GLB_GPIO_0_LOCK_R = crate::BitReader<bool>;
39#[doc = "Field `tzc_glb_gpio_0_lock` writer - "]
40pub type TZC_GLB_GPIO_0_LOCK_W<'a, const O: u8> =
41    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
42#[doc = "Field `tzc_glb_gpio_1_lock` reader - "]
43pub type TZC_GLB_GPIO_1_LOCK_R = crate::BitReader<bool>;
44#[doc = "Field `tzc_glb_gpio_1_lock` writer - "]
45pub type TZC_GLB_GPIO_1_LOCK_W<'a, const O: u8> =
46    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
47#[doc = "Field `tzc_glb_gpio_2_lock` reader - "]
48pub type TZC_GLB_GPIO_2_LOCK_R = crate::BitReader<bool>;
49#[doc = "Field `tzc_glb_gpio_2_lock` writer - "]
50pub type TZC_GLB_GPIO_2_LOCK_W<'a, const O: u8> =
51    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
52#[doc = "Field `tzc_glb_gpio_3_lock` reader - "]
53pub type TZC_GLB_GPIO_3_LOCK_R = crate::BitReader<bool>;
54#[doc = "Field `tzc_glb_gpio_3_lock` writer - "]
55pub type TZC_GLB_GPIO_3_LOCK_W<'a, const O: u8> =
56    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
57#[doc = "Field `tzc_glb_gpio_4_lock` reader - "]
58pub type TZC_GLB_GPIO_4_LOCK_R = crate::BitReader<bool>;
59#[doc = "Field `tzc_glb_gpio_4_lock` writer - "]
60pub type TZC_GLB_GPIO_4_LOCK_W<'a, const O: u8> =
61    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
62#[doc = "Field `tzc_glb_gpio_5_lock` reader - "]
63pub type TZC_GLB_GPIO_5_LOCK_R = crate::BitReader<bool>;
64#[doc = "Field `tzc_glb_gpio_5_lock` writer - "]
65pub type TZC_GLB_GPIO_5_LOCK_W<'a, const O: u8> =
66    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
67#[doc = "Field `tzc_glb_gpio_6_lock` reader - "]
68pub type TZC_GLB_GPIO_6_LOCK_R = crate::BitReader<bool>;
69#[doc = "Field `tzc_glb_gpio_6_lock` writer - "]
70pub type TZC_GLB_GPIO_6_LOCK_W<'a, const O: u8> =
71    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
72#[doc = "Field `tzc_glb_gpio_7_lock` reader - "]
73pub type TZC_GLB_GPIO_7_LOCK_R = crate::BitReader<bool>;
74#[doc = "Field `tzc_glb_gpio_7_lock` writer - "]
75pub type TZC_GLB_GPIO_7_LOCK_W<'a, const O: u8> =
76    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
77#[doc = "Field `tzc_glb_gpio_8_lock` reader - "]
78pub type TZC_GLB_GPIO_8_LOCK_R = crate::BitReader<bool>;
79#[doc = "Field `tzc_glb_gpio_8_lock` writer - "]
80pub type TZC_GLB_GPIO_8_LOCK_W<'a, const O: u8> =
81    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
82#[doc = "Field `tzc_glb_gpio_9_lock` reader - "]
83pub type TZC_GLB_GPIO_9_LOCK_R = crate::BitReader<bool>;
84#[doc = "Field `tzc_glb_gpio_9_lock` writer - "]
85pub type TZC_GLB_GPIO_9_LOCK_W<'a, const O: u8> =
86    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
87#[doc = "Field `tzc_glb_gpio_10_lock` reader - "]
88pub type TZC_GLB_GPIO_10_LOCK_R = crate::BitReader<bool>;
89#[doc = "Field `tzc_glb_gpio_10_lock` writer - "]
90pub type TZC_GLB_GPIO_10_LOCK_W<'a, const O: u8> =
91    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
92#[doc = "Field `tzc_glb_gpio_11_lock` reader - "]
93pub type TZC_GLB_GPIO_11_LOCK_R = crate::BitReader<bool>;
94#[doc = "Field `tzc_glb_gpio_11_lock` writer - "]
95pub type TZC_GLB_GPIO_11_LOCK_W<'a, const O: u8> =
96    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
97#[doc = "Field `tzc_glb_gpio_12_lock` reader - "]
98pub type TZC_GLB_GPIO_12_LOCK_R = crate::BitReader<bool>;
99#[doc = "Field `tzc_glb_gpio_12_lock` writer - "]
100pub type TZC_GLB_GPIO_12_LOCK_W<'a, const O: u8> =
101    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
102#[doc = "Field `tzc_glb_gpio_13_lock` reader - "]
103pub type TZC_GLB_GPIO_13_LOCK_R = crate::BitReader<bool>;
104#[doc = "Field `tzc_glb_gpio_13_lock` writer - "]
105pub type TZC_GLB_GPIO_13_LOCK_W<'a, const O: u8> =
106    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
107#[doc = "Field `tzc_glb_gpio_14_lock` reader - "]
108pub type TZC_GLB_GPIO_14_LOCK_R = crate::BitReader<bool>;
109#[doc = "Field `tzc_glb_gpio_14_lock` writer - "]
110pub type TZC_GLB_GPIO_14_LOCK_W<'a, const O: u8> =
111    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
112#[doc = "Field `tzc_glb_gpio_15_lock` reader - "]
113pub type TZC_GLB_GPIO_15_LOCK_R = crate::BitReader<bool>;
114#[doc = "Field `tzc_glb_gpio_15_lock` writer - "]
115pub type TZC_GLB_GPIO_15_LOCK_W<'a, const O: u8> =
116    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
117#[doc = "Field `tzc_glb_gpio_16_lock` reader - "]
118pub type TZC_GLB_GPIO_16_LOCK_R = crate::BitReader<bool>;
119#[doc = "Field `tzc_glb_gpio_16_lock` writer - "]
120pub type TZC_GLB_GPIO_16_LOCK_W<'a, const O: u8> =
121    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
122#[doc = "Field `tzc_glb_gpio_17_lock` reader - "]
123pub type TZC_GLB_GPIO_17_LOCK_R = crate::BitReader<bool>;
124#[doc = "Field `tzc_glb_gpio_17_lock` writer - "]
125pub type TZC_GLB_GPIO_17_LOCK_W<'a, const O: u8> =
126    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
127#[doc = "Field `tzc_glb_gpio_18_lock` reader - "]
128pub type TZC_GLB_GPIO_18_LOCK_R = crate::BitReader<bool>;
129#[doc = "Field `tzc_glb_gpio_18_lock` writer - "]
130pub type TZC_GLB_GPIO_18_LOCK_W<'a, const O: u8> =
131    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
132#[doc = "Field `tzc_glb_gpio_19_lock` reader - "]
133pub type TZC_GLB_GPIO_19_LOCK_R = crate::BitReader<bool>;
134#[doc = "Field `tzc_glb_gpio_19_lock` writer - "]
135pub type TZC_GLB_GPIO_19_LOCK_W<'a, const O: u8> =
136    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
137#[doc = "Field `tzc_glb_gpio_20_lock` reader - "]
138pub type TZC_GLB_GPIO_20_LOCK_R = crate::BitReader<bool>;
139#[doc = "Field `tzc_glb_gpio_20_lock` writer - "]
140pub type TZC_GLB_GPIO_20_LOCK_W<'a, const O: u8> =
141    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
142#[doc = "Field `tzc_glb_gpio_21_lock` reader - "]
143pub type TZC_GLB_GPIO_21_LOCK_R = crate::BitReader<bool>;
144#[doc = "Field `tzc_glb_gpio_21_lock` writer - "]
145pub type TZC_GLB_GPIO_21_LOCK_W<'a, const O: u8> =
146    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
147#[doc = "Field `tzc_glb_gpio_22_lock` reader - "]
148pub type TZC_GLB_GPIO_22_LOCK_R = crate::BitReader<bool>;
149#[doc = "Field `tzc_glb_gpio_22_lock` writer - "]
150pub type TZC_GLB_GPIO_22_LOCK_W<'a, const O: u8> =
151    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
152#[doc = "Field `tzc_glb_gpio_23_lock` reader - "]
153pub type TZC_GLB_GPIO_23_LOCK_R = crate::BitReader<bool>;
154#[doc = "Field `tzc_glb_gpio_23_lock` writer - "]
155pub type TZC_GLB_GPIO_23_LOCK_W<'a, const O: u8> =
156    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
157#[doc = "Field `tzc_glb_gpio_24_lock` reader - "]
158pub type TZC_GLB_GPIO_24_LOCK_R = crate::BitReader<bool>;
159#[doc = "Field `tzc_glb_gpio_24_lock` writer - "]
160pub type TZC_GLB_GPIO_24_LOCK_W<'a, const O: u8> =
161    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
162#[doc = "Field `tzc_glb_gpio_25_lock` reader - "]
163pub type TZC_GLB_GPIO_25_LOCK_R = crate::BitReader<bool>;
164#[doc = "Field `tzc_glb_gpio_25_lock` writer - "]
165pub type TZC_GLB_GPIO_25_LOCK_W<'a, const O: u8> =
166    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
167#[doc = "Field `tzc_glb_gpio_26_lock` reader - "]
168pub type TZC_GLB_GPIO_26_LOCK_R = crate::BitReader<bool>;
169#[doc = "Field `tzc_glb_gpio_26_lock` writer - "]
170pub type TZC_GLB_GPIO_26_LOCK_W<'a, const O: u8> =
171    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
172#[doc = "Field `tzc_glb_gpio_27_lock` reader - "]
173pub type TZC_GLB_GPIO_27_LOCK_R = crate::BitReader<bool>;
174#[doc = "Field `tzc_glb_gpio_27_lock` writer - "]
175pub type TZC_GLB_GPIO_27_LOCK_W<'a, const O: u8> =
176    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
177#[doc = "Field `tzc_glb_gpio_28_lock` reader - "]
178pub type TZC_GLB_GPIO_28_LOCK_R = crate::BitReader<bool>;
179#[doc = "Field `tzc_glb_gpio_28_lock` writer - "]
180pub type TZC_GLB_GPIO_28_LOCK_W<'a, const O: u8> =
181    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
182#[doc = "Field `tzc_glb_gpio_29_lock` reader - "]
183pub type TZC_GLB_GPIO_29_LOCK_R = crate::BitReader<bool>;
184#[doc = "Field `tzc_glb_gpio_29_lock` writer - "]
185pub type TZC_GLB_GPIO_29_LOCK_W<'a, const O: u8> =
186    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
187#[doc = "Field `tzc_glb_gpio_30_lock` reader - "]
188pub type TZC_GLB_GPIO_30_LOCK_R = crate::BitReader<bool>;
189#[doc = "Field `tzc_glb_gpio_30_lock` writer - "]
190pub type TZC_GLB_GPIO_30_LOCK_W<'a, const O: u8> =
191    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
192#[doc = "Field `tzc_glb_gpio_31_lock` reader - "]
193pub type TZC_GLB_GPIO_31_LOCK_R = crate::BitReader<bool>;
194#[doc = "Field `tzc_glb_gpio_31_lock` writer - "]
195pub type TZC_GLB_GPIO_31_LOCK_W<'a, const O: u8> =
196    crate::BitWriter<'a, u32, TZC_GLB_CTRL_2_SPEC, bool, O>;
197impl R {
198    #[doc = "Bit 0"]
199    #[inline(always)]
200    pub fn tzc_glb_gpio_0_lock(&self) -> TZC_GLB_GPIO_0_LOCK_R {
201        TZC_GLB_GPIO_0_LOCK_R::new((self.bits & 1) != 0)
202    }
203    #[doc = "Bit 1"]
204    #[inline(always)]
205    pub fn tzc_glb_gpio_1_lock(&self) -> TZC_GLB_GPIO_1_LOCK_R {
206        TZC_GLB_GPIO_1_LOCK_R::new(((self.bits >> 1) & 1) != 0)
207    }
208    #[doc = "Bit 2"]
209    #[inline(always)]
210    pub fn tzc_glb_gpio_2_lock(&self) -> TZC_GLB_GPIO_2_LOCK_R {
211        TZC_GLB_GPIO_2_LOCK_R::new(((self.bits >> 2) & 1) != 0)
212    }
213    #[doc = "Bit 3"]
214    #[inline(always)]
215    pub fn tzc_glb_gpio_3_lock(&self) -> TZC_GLB_GPIO_3_LOCK_R {
216        TZC_GLB_GPIO_3_LOCK_R::new(((self.bits >> 3) & 1) != 0)
217    }
218    #[doc = "Bit 4"]
219    #[inline(always)]
220    pub fn tzc_glb_gpio_4_lock(&self) -> TZC_GLB_GPIO_4_LOCK_R {
221        TZC_GLB_GPIO_4_LOCK_R::new(((self.bits >> 4) & 1) != 0)
222    }
223    #[doc = "Bit 5"]
224    #[inline(always)]
225    pub fn tzc_glb_gpio_5_lock(&self) -> TZC_GLB_GPIO_5_LOCK_R {
226        TZC_GLB_GPIO_5_LOCK_R::new(((self.bits >> 5) & 1) != 0)
227    }
228    #[doc = "Bit 6"]
229    #[inline(always)]
230    pub fn tzc_glb_gpio_6_lock(&self) -> TZC_GLB_GPIO_6_LOCK_R {
231        TZC_GLB_GPIO_6_LOCK_R::new(((self.bits >> 6) & 1) != 0)
232    }
233    #[doc = "Bit 7"]
234    #[inline(always)]
235    pub fn tzc_glb_gpio_7_lock(&self) -> TZC_GLB_GPIO_7_LOCK_R {
236        TZC_GLB_GPIO_7_LOCK_R::new(((self.bits >> 7) & 1) != 0)
237    }
238    #[doc = "Bit 8"]
239    #[inline(always)]
240    pub fn tzc_glb_gpio_8_lock(&self) -> TZC_GLB_GPIO_8_LOCK_R {
241        TZC_GLB_GPIO_8_LOCK_R::new(((self.bits >> 8) & 1) != 0)
242    }
243    #[doc = "Bit 9"]
244    #[inline(always)]
245    pub fn tzc_glb_gpio_9_lock(&self) -> TZC_GLB_GPIO_9_LOCK_R {
246        TZC_GLB_GPIO_9_LOCK_R::new(((self.bits >> 9) & 1) != 0)
247    }
248    #[doc = "Bit 10"]
249    #[inline(always)]
250    pub fn tzc_glb_gpio_10_lock(&self) -> TZC_GLB_GPIO_10_LOCK_R {
251        TZC_GLB_GPIO_10_LOCK_R::new(((self.bits >> 10) & 1) != 0)
252    }
253    #[doc = "Bit 11"]
254    #[inline(always)]
255    pub fn tzc_glb_gpio_11_lock(&self) -> TZC_GLB_GPIO_11_LOCK_R {
256        TZC_GLB_GPIO_11_LOCK_R::new(((self.bits >> 11) & 1) != 0)
257    }
258    #[doc = "Bit 12"]
259    #[inline(always)]
260    pub fn tzc_glb_gpio_12_lock(&self) -> TZC_GLB_GPIO_12_LOCK_R {
261        TZC_GLB_GPIO_12_LOCK_R::new(((self.bits >> 12) & 1) != 0)
262    }
263    #[doc = "Bit 13"]
264    #[inline(always)]
265    pub fn tzc_glb_gpio_13_lock(&self) -> TZC_GLB_GPIO_13_LOCK_R {
266        TZC_GLB_GPIO_13_LOCK_R::new(((self.bits >> 13) & 1) != 0)
267    }
268    #[doc = "Bit 14"]
269    #[inline(always)]
270    pub fn tzc_glb_gpio_14_lock(&self) -> TZC_GLB_GPIO_14_LOCK_R {
271        TZC_GLB_GPIO_14_LOCK_R::new(((self.bits >> 14) & 1) != 0)
272    }
273    #[doc = "Bit 15"]
274    #[inline(always)]
275    pub fn tzc_glb_gpio_15_lock(&self) -> TZC_GLB_GPIO_15_LOCK_R {
276        TZC_GLB_GPIO_15_LOCK_R::new(((self.bits >> 15) & 1) != 0)
277    }
278    #[doc = "Bit 16"]
279    #[inline(always)]
280    pub fn tzc_glb_gpio_16_lock(&self) -> TZC_GLB_GPIO_16_LOCK_R {
281        TZC_GLB_GPIO_16_LOCK_R::new(((self.bits >> 16) & 1) != 0)
282    }
283    #[doc = "Bit 17"]
284    #[inline(always)]
285    pub fn tzc_glb_gpio_17_lock(&self) -> TZC_GLB_GPIO_17_LOCK_R {
286        TZC_GLB_GPIO_17_LOCK_R::new(((self.bits >> 17) & 1) != 0)
287    }
288    #[doc = "Bit 18"]
289    #[inline(always)]
290    pub fn tzc_glb_gpio_18_lock(&self) -> TZC_GLB_GPIO_18_LOCK_R {
291        TZC_GLB_GPIO_18_LOCK_R::new(((self.bits >> 18) & 1) != 0)
292    }
293    #[doc = "Bit 19"]
294    #[inline(always)]
295    pub fn tzc_glb_gpio_19_lock(&self) -> TZC_GLB_GPIO_19_LOCK_R {
296        TZC_GLB_GPIO_19_LOCK_R::new(((self.bits >> 19) & 1) != 0)
297    }
298    #[doc = "Bit 20"]
299    #[inline(always)]
300    pub fn tzc_glb_gpio_20_lock(&self) -> TZC_GLB_GPIO_20_LOCK_R {
301        TZC_GLB_GPIO_20_LOCK_R::new(((self.bits >> 20) & 1) != 0)
302    }
303    #[doc = "Bit 21"]
304    #[inline(always)]
305    pub fn tzc_glb_gpio_21_lock(&self) -> TZC_GLB_GPIO_21_LOCK_R {
306        TZC_GLB_GPIO_21_LOCK_R::new(((self.bits >> 21) & 1) != 0)
307    }
308    #[doc = "Bit 22"]
309    #[inline(always)]
310    pub fn tzc_glb_gpio_22_lock(&self) -> TZC_GLB_GPIO_22_LOCK_R {
311        TZC_GLB_GPIO_22_LOCK_R::new(((self.bits >> 22) & 1) != 0)
312    }
313    #[doc = "Bit 23"]
314    #[inline(always)]
315    pub fn tzc_glb_gpio_23_lock(&self) -> TZC_GLB_GPIO_23_LOCK_R {
316        TZC_GLB_GPIO_23_LOCK_R::new(((self.bits >> 23) & 1) != 0)
317    }
318    #[doc = "Bit 24"]
319    #[inline(always)]
320    pub fn tzc_glb_gpio_24_lock(&self) -> TZC_GLB_GPIO_24_LOCK_R {
321        TZC_GLB_GPIO_24_LOCK_R::new(((self.bits >> 24) & 1) != 0)
322    }
323    #[doc = "Bit 25"]
324    #[inline(always)]
325    pub fn tzc_glb_gpio_25_lock(&self) -> TZC_GLB_GPIO_25_LOCK_R {
326        TZC_GLB_GPIO_25_LOCK_R::new(((self.bits >> 25) & 1) != 0)
327    }
328    #[doc = "Bit 26"]
329    #[inline(always)]
330    pub fn tzc_glb_gpio_26_lock(&self) -> TZC_GLB_GPIO_26_LOCK_R {
331        TZC_GLB_GPIO_26_LOCK_R::new(((self.bits >> 26) & 1) != 0)
332    }
333    #[doc = "Bit 27"]
334    #[inline(always)]
335    pub fn tzc_glb_gpio_27_lock(&self) -> TZC_GLB_GPIO_27_LOCK_R {
336        TZC_GLB_GPIO_27_LOCK_R::new(((self.bits >> 27) & 1) != 0)
337    }
338    #[doc = "Bit 28"]
339    #[inline(always)]
340    pub fn tzc_glb_gpio_28_lock(&self) -> TZC_GLB_GPIO_28_LOCK_R {
341        TZC_GLB_GPIO_28_LOCK_R::new(((self.bits >> 28) & 1) != 0)
342    }
343    #[doc = "Bit 29"]
344    #[inline(always)]
345    pub fn tzc_glb_gpio_29_lock(&self) -> TZC_GLB_GPIO_29_LOCK_R {
346        TZC_GLB_GPIO_29_LOCK_R::new(((self.bits >> 29) & 1) != 0)
347    }
348    #[doc = "Bit 30"]
349    #[inline(always)]
350    pub fn tzc_glb_gpio_30_lock(&self) -> TZC_GLB_GPIO_30_LOCK_R {
351        TZC_GLB_GPIO_30_LOCK_R::new(((self.bits >> 30) & 1) != 0)
352    }
353    #[doc = "Bit 31"]
354    #[inline(always)]
355    pub fn tzc_glb_gpio_31_lock(&self) -> TZC_GLB_GPIO_31_LOCK_R {
356        TZC_GLB_GPIO_31_LOCK_R::new(((self.bits >> 31) & 1) != 0)
357    }
358}
359impl W {
360    #[doc = "Bit 0"]
361    #[inline(always)]
362    #[must_use]
363    pub fn tzc_glb_gpio_0_lock(&mut self) -> TZC_GLB_GPIO_0_LOCK_W<0> {
364        TZC_GLB_GPIO_0_LOCK_W::new(self)
365    }
366    #[doc = "Bit 1"]
367    #[inline(always)]
368    #[must_use]
369    pub fn tzc_glb_gpio_1_lock(&mut self) -> TZC_GLB_GPIO_1_LOCK_W<1> {
370        TZC_GLB_GPIO_1_LOCK_W::new(self)
371    }
372    #[doc = "Bit 2"]
373    #[inline(always)]
374    #[must_use]
375    pub fn tzc_glb_gpio_2_lock(&mut self) -> TZC_GLB_GPIO_2_LOCK_W<2> {
376        TZC_GLB_GPIO_2_LOCK_W::new(self)
377    }
378    #[doc = "Bit 3"]
379    #[inline(always)]
380    #[must_use]
381    pub fn tzc_glb_gpio_3_lock(&mut self) -> TZC_GLB_GPIO_3_LOCK_W<3> {
382        TZC_GLB_GPIO_3_LOCK_W::new(self)
383    }
384    #[doc = "Bit 4"]
385    #[inline(always)]
386    #[must_use]
387    pub fn tzc_glb_gpio_4_lock(&mut self) -> TZC_GLB_GPIO_4_LOCK_W<4> {
388        TZC_GLB_GPIO_4_LOCK_W::new(self)
389    }
390    #[doc = "Bit 5"]
391    #[inline(always)]
392    #[must_use]
393    pub fn tzc_glb_gpio_5_lock(&mut self) -> TZC_GLB_GPIO_5_LOCK_W<5> {
394        TZC_GLB_GPIO_5_LOCK_W::new(self)
395    }
396    #[doc = "Bit 6"]
397    #[inline(always)]
398    #[must_use]
399    pub fn tzc_glb_gpio_6_lock(&mut self) -> TZC_GLB_GPIO_6_LOCK_W<6> {
400        TZC_GLB_GPIO_6_LOCK_W::new(self)
401    }
402    #[doc = "Bit 7"]
403    #[inline(always)]
404    #[must_use]
405    pub fn tzc_glb_gpio_7_lock(&mut self) -> TZC_GLB_GPIO_7_LOCK_W<7> {
406        TZC_GLB_GPIO_7_LOCK_W::new(self)
407    }
408    #[doc = "Bit 8"]
409    #[inline(always)]
410    #[must_use]
411    pub fn tzc_glb_gpio_8_lock(&mut self) -> TZC_GLB_GPIO_8_LOCK_W<8> {
412        TZC_GLB_GPIO_8_LOCK_W::new(self)
413    }
414    #[doc = "Bit 9"]
415    #[inline(always)]
416    #[must_use]
417    pub fn tzc_glb_gpio_9_lock(&mut self) -> TZC_GLB_GPIO_9_LOCK_W<9> {
418        TZC_GLB_GPIO_9_LOCK_W::new(self)
419    }
420    #[doc = "Bit 10"]
421    #[inline(always)]
422    #[must_use]
423    pub fn tzc_glb_gpio_10_lock(&mut self) -> TZC_GLB_GPIO_10_LOCK_W<10> {
424        TZC_GLB_GPIO_10_LOCK_W::new(self)
425    }
426    #[doc = "Bit 11"]
427    #[inline(always)]
428    #[must_use]
429    pub fn tzc_glb_gpio_11_lock(&mut self) -> TZC_GLB_GPIO_11_LOCK_W<11> {
430        TZC_GLB_GPIO_11_LOCK_W::new(self)
431    }
432    #[doc = "Bit 12"]
433    #[inline(always)]
434    #[must_use]
435    pub fn tzc_glb_gpio_12_lock(&mut self) -> TZC_GLB_GPIO_12_LOCK_W<12> {
436        TZC_GLB_GPIO_12_LOCK_W::new(self)
437    }
438    #[doc = "Bit 13"]
439    #[inline(always)]
440    #[must_use]
441    pub fn tzc_glb_gpio_13_lock(&mut self) -> TZC_GLB_GPIO_13_LOCK_W<13> {
442        TZC_GLB_GPIO_13_LOCK_W::new(self)
443    }
444    #[doc = "Bit 14"]
445    #[inline(always)]
446    #[must_use]
447    pub fn tzc_glb_gpio_14_lock(&mut self) -> TZC_GLB_GPIO_14_LOCK_W<14> {
448        TZC_GLB_GPIO_14_LOCK_W::new(self)
449    }
450    #[doc = "Bit 15"]
451    #[inline(always)]
452    #[must_use]
453    pub fn tzc_glb_gpio_15_lock(&mut self) -> TZC_GLB_GPIO_15_LOCK_W<15> {
454        TZC_GLB_GPIO_15_LOCK_W::new(self)
455    }
456    #[doc = "Bit 16"]
457    #[inline(always)]
458    #[must_use]
459    pub fn tzc_glb_gpio_16_lock(&mut self) -> TZC_GLB_GPIO_16_LOCK_W<16> {
460        TZC_GLB_GPIO_16_LOCK_W::new(self)
461    }
462    #[doc = "Bit 17"]
463    #[inline(always)]
464    #[must_use]
465    pub fn tzc_glb_gpio_17_lock(&mut self) -> TZC_GLB_GPIO_17_LOCK_W<17> {
466        TZC_GLB_GPIO_17_LOCK_W::new(self)
467    }
468    #[doc = "Bit 18"]
469    #[inline(always)]
470    #[must_use]
471    pub fn tzc_glb_gpio_18_lock(&mut self) -> TZC_GLB_GPIO_18_LOCK_W<18> {
472        TZC_GLB_GPIO_18_LOCK_W::new(self)
473    }
474    #[doc = "Bit 19"]
475    #[inline(always)]
476    #[must_use]
477    pub fn tzc_glb_gpio_19_lock(&mut self) -> TZC_GLB_GPIO_19_LOCK_W<19> {
478        TZC_GLB_GPIO_19_LOCK_W::new(self)
479    }
480    #[doc = "Bit 20"]
481    #[inline(always)]
482    #[must_use]
483    pub fn tzc_glb_gpio_20_lock(&mut self) -> TZC_GLB_GPIO_20_LOCK_W<20> {
484        TZC_GLB_GPIO_20_LOCK_W::new(self)
485    }
486    #[doc = "Bit 21"]
487    #[inline(always)]
488    #[must_use]
489    pub fn tzc_glb_gpio_21_lock(&mut self) -> TZC_GLB_GPIO_21_LOCK_W<21> {
490        TZC_GLB_GPIO_21_LOCK_W::new(self)
491    }
492    #[doc = "Bit 22"]
493    #[inline(always)]
494    #[must_use]
495    pub fn tzc_glb_gpio_22_lock(&mut self) -> TZC_GLB_GPIO_22_LOCK_W<22> {
496        TZC_GLB_GPIO_22_LOCK_W::new(self)
497    }
498    #[doc = "Bit 23"]
499    #[inline(always)]
500    #[must_use]
501    pub fn tzc_glb_gpio_23_lock(&mut self) -> TZC_GLB_GPIO_23_LOCK_W<23> {
502        TZC_GLB_GPIO_23_LOCK_W::new(self)
503    }
504    #[doc = "Bit 24"]
505    #[inline(always)]
506    #[must_use]
507    pub fn tzc_glb_gpio_24_lock(&mut self) -> TZC_GLB_GPIO_24_LOCK_W<24> {
508        TZC_GLB_GPIO_24_LOCK_W::new(self)
509    }
510    #[doc = "Bit 25"]
511    #[inline(always)]
512    #[must_use]
513    pub fn tzc_glb_gpio_25_lock(&mut self) -> TZC_GLB_GPIO_25_LOCK_W<25> {
514        TZC_GLB_GPIO_25_LOCK_W::new(self)
515    }
516    #[doc = "Bit 26"]
517    #[inline(always)]
518    #[must_use]
519    pub fn tzc_glb_gpio_26_lock(&mut self) -> TZC_GLB_GPIO_26_LOCK_W<26> {
520        TZC_GLB_GPIO_26_LOCK_W::new(self)
521    }
522    #[doc = "Bit 27"]
523    #[inline(always)]
524    #[must_use]
525    pub fn tzc_glb_gpio_27_lock(&mut self) -> TZC_GLB_GPIO_27_LOCK_W<27> {
526        TZC_GLB_GPIO_27_LOCK_W::new(self)
527    }
528    #[doc = "Bit 28"]
529    #[inline(always)]
530    #[must_use]
531    pub fn tzc_glb_gpio_28_lock(&mut self) -> TZC_GLB_GPIO_28_LOCK_W<28> {
532        TZC_GLB_GPIO_28_LOCK_W::new(self)
533    }
534    #[doc = "Bit 29"]
535    #[inline(always)]
536    #[must_use]
537    pub fn tzc_glb_gpio_29_lock(&mut self) -> TZC_GLB_GPIO_29_LOCK_W<29> {
538        TZC_GLB_GPIO_29_LOCK_W::new(self)
539    }
540    #[doc = "Bit 30"]
541    #[inline(always)]
542    #[must_use]
543    pub fn tzc_glb_gpio_30_lock(&mut self) -> TZC_GLB_GPIO_30_LOCK_W<30> {
544        TZC_GLB_GPIO_30_LOCK_W::new(self)
545    }
546    #[doc = "Bit 31"]
547    #[inline(always)]
548    #[must_use]
549    pub fn tzc_glb_gpio_31_lock(&mut self) -> TZC_GLB_GPIO_31_LOCK_W<31> {
550        TZC_GLB_GPIO_31_LOCK_W::new(self)
551    }
552    #[doc = "Writes raw bits to the register."]
553    #[inline(always)]
554    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
555        self.0.bits(bits);
556        self
557    }
558}
559#[doc = "tzc_glb_ctrl_2.\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 [tzc_glb_ctrl_2](index.html) module"]
560pub struct TZC_GLB_CTRL_2_SPEC;
561impl crate::RegisterSpec for TZC_GLB_CTRL_2_SPEC {
562    type Ux = u32;
563}
564#[doc = "`read()` method returns [tzc_glb_ctrl_2::R](R) reader structure"]
565impl crate::Readable for TZC_GLB_CTRL_2_SPEC {
566    type Reader = R;
567}
568#[doc = "`write(|w| ..)` method takes [tzc_glb_ctrl_2::W](W) writer structure"]
569impl crate::Writable for TZC_GLB_CTRL_2_SPEC {
570    type Writer = W;
571    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
572    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
573}
574#[doc = "`reset()` method sets tzc_glb_ctrl_2 to value 0"]
575impl crate::Resettable for TZC_GLB_CTRL_2_SPEC {
576    const RESET_VALUE: Self::Ux = 0;
577}