bl602_pac/glb/
tzc_glb_ctrl_2.rs1#[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 = "Field `tzc_glb_gpio_0_lock` reader - "]
17pub type TZC_GLB_GPIO_0_LOCK_R = crate::BitReader<bool>;
18#[doc = "Field `tzc_glb_gpio_1_lock` reader - "]
19pub type TZC_GLB_GPIO_1_LOCK_R = crate::BitReader<bool>;
20#[doc = "Field `tzc_glb_gpio_2_lock` reader - "]
21pub type TZC_GLB_GPIO_2_LOCK_R = crate::BitReader<bool>;
22#[doc = "Field `tzc_glb_gpio_3_lock` reader - "]
23pub type TZC_GLB_GPIO_3_LOCK_R = crate::BitReader<bool>;
24#[doc = "Field `tzc_glb_gpio_4_lock` reader - "]
25pub type TZC_GLB_GPIO_4_LOCK_R = crate::BitReader<bool>;
26#[doc = "Field `tzc_glb_gpio_5_lock` reader - "]
27pub type TZC_GLB_GPIO_5_LOCK_R = crate::BitReader<bool>;
28#[doc = "Field `tzc_glb_gpio_6_lock` reader - "]
29pub type TZC_GLB_GPIO_6_LOCK_R = crate::BitReader<bool>;
30#[doc = "Field `tzc_glb_gpio_7_lock` reader - "]
31pub type TZC_GLB_GPIO_7_LOCK_R = crate::BitReader<bool>;
32#[doc = "Field `tzc_glb_gpio_8_lock` reader - "]
33pub type TZC_GLB_GPIO_8_LOCK_R = crate::BitReader<bool>;
34#[doc = "Field `tzc_glb_gpio_9_lock` reader - "]
35pub type TZC_GLB_GPIO_9_LOCK_R = crate::BitReader<bool>;
36#[doc = "Field `tzc_glb_gpio_10_lock` reader - "]
37pub type TZC_GLB_GPIO_10_LOCK_R = crate::BitReader<bool>;
38#[doc = "Field `tzc_glb_gpio_11_lock` reader - "]
39pub type TZC_GLB_GPIO_11_LOCK_R = crate::BitReader<bool>;
40#[doc = "Field `tzc_glb_gpio_12_lock` reader - "]
41pub type TZC_GLB_GPIO_12_LOCK_R = crate::BitReader<bool>;
42#[doc = "Field `tzc_glb_gpio_13_lock` reader - "]
43pub type TZC_GLB_GPIO_13_LOCK_R = crate::BitReader<bool>;
44#[doc = "Field `tzc_glb_gpio_14_lock` reader - "]
45pub type TZC_GLB_GPIO_14_LOCK_R = crate::BitReader<bool>;
46#[doc = "Field `tzc_glb_gpio_15_lock` reader - "]
47pub type TZC_GLB_GPIO_15_LOCK_R = crate::BitReader<bool>;
48#[doc = "Field `tzc_glb_gpio_16_lock` reader - "]
49pub type TZC_GLB_GPIO_16_LOCK_R = crate::BitReader<bool>;
50#[doc = "Field `tzc_glb_gpio_17_lock` reader - "]
51pub type TZC_GLB_GPIO_17_LOCK_R = crate::BitReader<bool>;
52#[doc = "Field `tzc_glb_gpio_18_lock` reader - "]
53pub type TZC_GLB_GPIO_18_LOCK_R = crate::BitReader<bool>;
54#[doc = "Field `tzc_glb_gpio_19_lock` reader - "]
55pub type TZC_GLB_GPIO_19_LOCK_R = crate::BitReader<bool>;
56#[doc = "Field `tzc_glb_gpio_20_lock` reader - "]
57pub type TZC_GLB_GPIO_20_LOCK_R = crate::BitReader<bool>;
58#[doc = "Field `tzc_glb_gpio_21_lock` reader - "]
59pub type TZC_GLB_GPIO_21_LOCK_R = crate::BitReader<bool>;
60#[doc = "Field `tzc_glb_gpio_22_lock` reader - "]
61pub type TZC_GLB_GPIO_22_LOCK_R = crate::BitReader<bool>;
62#[doc = "Field `tzc_glb_gpio_23_lock` reader - "]
63pub type TZC_GLB_GPIO_23_LOCK_R = crate::BitReader<bool>;
64#[doc = "Field `tzc_glb_gpio_24_lock` reader - "]
65pub type TZC_GLB_GPIO_24_LOCK_R = crate::BitReader<bool>;
66#[doc = "Field `tzc_glb_gpio_25_lock` reader - "]
67pub type TZC_GLB_GPIO_25_LOCK_R = crate::BitReader<bool>;
68#[doc = "Field `tzc_glb_gpio_26_lock` reader - "]
69pub type TZC_GLB_GPIO_26_LOCK_R = crate::BitReader<bool>;
70#[doc = "Field `tzc_glb_gpio_27_lock` reader - "]
71pub type TZC_GLB_GPIO_27_LOCK_R = crate::BitReader<bool>;
72#[doc = "Field `tzc_glb_gpio_28_lock` reader - "]
73pub type TZC_GLB_GPIO_28_LOCK_R = crate::BitReader<bool>;
74impl R {
75 #[doc = "Bit 0"]
76 #[inline(always)]
77 pub fn tzc_glb_gpio_0_lock(&self) -> TZC_GLB_GPIO_0_LOCK_R {
78 TZC_GLB_GPIO_0_LOCK_R::new((self.bits & 1) != 0)
79 }
80 #[doc = "Bit 1"]
81 #[inline(always)]
82 pub fn tzc_glb_gpio_1_lock(&self) -> TZC_GLB_GPIO_1_LOCK_R {
83 TZC_GLB_GPIO_1_LOCK_R::new(((self.bits >> 1) & 1) != 0)
84 }
85 #[doc = "Bit 2"]
86 #[inline(always)]
87 pub fn tzc_glb_gpio_2_lock(&self) -> TZC_GLB_GPIO_2_LOCK_R {
88 TZC_GLB_GPIO_2_LOCK_R::new(((self.bits >> 2) & 1) != 0)
89 }
90 #[doc = "Bit 3"]
91 #[inline(always)]
92 pub fn tzc_glb_gpio_3_lock(&self) -> TZC_GLB_GPIO_3_LOCK_R {
93 TZC_GLB_GPIO_3_LOCK_R::new(((self.bits >> 3) & 1) != 0)
94 }
95 #[doc = "Bit 4"]
96 #[inline(always)]
97 pub fn tzc_glb_gpio_4_lock(&self) -> TZC_GLB_GPIO_4_LOCK_R {
98 TZC_GLB_GPIO_4_LOCK_R::new(((self.bits >> 4) & 1) != 0)
99 }
100 #[doc = "Bit 5"]
101 #[inline(always)]
102 pub fn tzc_glb_gpio_5_lock(&self) -> TZC_GLB_GPIO_5_LOCK_R {
103 TZC_GLB_GPIO_5_LOCK_R::new(((self.bits >> 5) & 1) != 0)
104 }
105 #[doc = "Bit 6"]
106 #[inline(always)]
107 pub fn tzc_glb_gpio_6_lock(&self) -> TZC_GLB_GPIO_6_LOCK_R {
108 TZC_GLB_GPIO_6_LOCK_R::new(((self.bits >> 6) & 1) != 0)
109 }
110 #[doc = "Bit 7"]
111 #[inline(always)]
112 pub fn tzc_glb_gpio_7_lock(&self) -> TZC_GLB_GPIO_7_LOCK_R {
113 TZC_GLB_GPIO_7_LOCK_R::new(((self.bits >> 7) & 1) != 0)
114 }
115 #[doc = "Bit 8"]
116 #[inline(always)]
117 pub fn tzc_glb_gpio_8_lock(&self) -> TZC_GLB_GPIO_8_LOCK_R {
118 TZC_GLB_GPIO_8_LOCK_R::new(((self.bits >> 8) & 1) != 0)
119 }
120 #[doc = "Bit 9"]
121 #[inline(always)]
122 pub fn tzc_glb_gpio_9_lock(&self) -> TZC_GLB_GPIO_9_LOCK_R {
123 TZC_GLB_GPIO_9_LOCK_R::new(((self.bits >> 9) & 1) != 0)
124 }
125 #[doc = "Bit 10"]
126 #[inline(always)]
127 pub fn tzc_glb_gpio_10_lock(&self) -> TZC_GLB_GPIO_10_LOCK_R {
128 TZC_GLB_GPIO_10_LOCK_R::new(((self.bits >> 10) & 1) != 0)
129 }
130 #[doc = "Bit 11"]
131 #[inline(always)]
132 pub fn tzc_glb_gpio_11_lock(&self) -> TZC_GLB_GPIO_11_LOCK_R {
133 TZC_GLB_GPIO_11_LOCK_R::new(((self.bits >> 11) & 1) != 0)
134 }
135 #[doc = "Bit 12"]
136 #[inline(always)]
137 pub fn tzc_glb_gpio_12_lock(&self) -> TZC_GLB_GPIO_12_LOCK_R {
138 TZC_GLB_GPIO_12_LOCK_R::new(((self.bits >> 12) & 1) != 0)
139 }
140 #[doc = "Bit 13"]
141 #[inline(always)]
142 pub fn tzc_glb_gpio_13_lock(&self) -> TZC_GLB_GPIO_13_LOCK_R {
143 TZC_GLB_GPIO_13_LOCK_R::new(((self.bits >> 13) & 1) != 0)
144 }
145 #[doc = "Bit 14"]
146 #[inline(always)]
147 pub fn tzc_glb_gpio_14_lock(&self) -> TZC_GLB_GPIO_14_LOCK_R {
148 TZC_GLB_GPIO_14_LOCK_R::new(((self.bits >> 14) & 1) != 0)
149 }
150 #[doc = "Bit 15"]
151 #[inline(always)]
152 pub fn tzc_glb_gpio_15_lock(&self) -> TZC_GLB_GPIO_15_LOCK_R {
153 TZC_GLB_GPIO_15_LOCK_R::new(((self.bits >> 15) & 1) != 0)
154 }
155 #[doc = "Bit 16"]
156 #[inline(always)]
157 pub fn tzc_glb_gpio_16_lock(&self) -> TZC_GLB_GPIO_16_LOCK_R {
158 TZC_GLB_GPIO_16_LOCK_R::new(((self.bits >> 16) & 1) != 0)
159 }
160 #[doc = "Bit 17"]
161 #[inline(always)]
162 pub fn tzc_glb_gpio_17_lock(&self) -> TZC_GLB_GPIO_17_LOCK_R {
163 TZC_GLB_GPIO_17_LOCK_R::new(((self.bits >> 17) & 1) != 0)
164 }
165 #[doc = "Bit 18"]
166 #[inline(always)]
167 pub fn tzc_glb_gpio_18_lock(&self) -> TZC_GLB_GPIO_18_LOCK_R {
168 TZC_GLB_GPIO_18_LOCK_R::new(((self.bits >> 18) & 1) != 0)
169 }
170 #[doc = "Bit 19"]
171 #[inline(always)]
172 pub fn tzc_glb_gpio_19_lock(&self) -> TZC_GLB_GPIO_19_LOCK_R {
173 TZC_GLB_GPIO_19_LOCK_R::new(((self.bits >> 19) & 1) != 0)
174 }
175 #[doc = "Bit 20"]
176 #[inline(always)]
177 pub fn tzc_glb_gpio_20_lock(&self) -> TZC_GLB_GPIO_20_LOCK_R {
178 TZC_GLB_GPIO_20_LOCK_R::new(((self.bits >> 20) & 1) != 0)
179 }
180 #[doc = "Bit 21"]
181 #[inline(always)]
182 pub fn tzc_glb_gpio_21_lock(&self) -> TZC_GLB_GPIO_21_LOCK_R {
183 TZC_GLB_GPIO_21_LOCK_R::new(((self.bits >> 21) & 1) != 0)
184 }
185 #[doc = "Bit 22"]
186 #[inline(always)]
187 pub fn tzc_glb_gpio_22_lock(&self) -> TZC_GLB_GPIO_22_LOCK_R {
188 TZC_GLB_GPIO_22_LOCK_R::new(((self.bits >> 22) & 1) != 0)
189 }
190 #[doc = "Bit 23"]
191 #[inline(always)]
192 pub fn tzc_glb_gpio_23_lock(&self) -> TZC_GLB_GPIO_23_LOCK_R {
193 TZC_GLB_GPIO_23_LOCK_R::new(((self.bits >> 23) & 1) != 0)
194 }
195 #[doc = "Bit 24"]
196 #[inline(always)]
197 pub fn tzc_glb_gpio_24_lock(&self) -> TZC_GLB_GPIO_24_LOCK_R {
198 TZC_GLB_GPIO_24_LOCK_R::new(((self.bits >> 24) & 1) != 0)
199 }
200 #[doc = "Bit 25"]
201 #[inline(always)]
202 pub fn tzc_glb_gpio_25_lock(&self) -> TZC_GLB_GPIO_25_LOCK_R {
203 TZC_GLB_GPIO_25_LOCK_R::new(((self.bits >> 25) & 1) != 0)
204 }
205 #[doc = "Bit 26"]
206 #[inline(always)]
207 pub fn tzc_glb_gpio_26_lock(&self) -> TZC_GLB_GPIO_26_LOCK_R {
208 TZC_GLB_GPIO_26_LOCK_R::new(((self.bits >> 26) & 1) != 0)
209 }
210 #[doc = "Bit 27"]
211 #[inline(always)]
212 pub fn tzc_glb_gpio_27_lock(&self) -> TZC_GLB_GPIO_27_LOCK_R {
213 TZC_GLB_GPIO_27_LOCK_R::new(((self.bits >> 27) & 1) != 0)
214 }
215 #[doc = "Bit 28"]
216 #[inline(always)]
217 pub fn tzc_glb_gpio_28_lock(&self) -> TZC_GLB_GPIO_28_LOCK_R {
218 TZC_GLB_GPIO_28_LOCK_R::new(((self.bits >> 28) & 1) != 0)
219 }
220}
221#[doc = "tzc_glb_ctrl_2.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tzc_glb_ctrl_2](index.html) module"]
222pub struct TZC_GLB_CTRL_2_SPEC;
223impl crate::RegisterSpec for TZC_GLB_CTRL_2_SPEC {
224 type Ux = u32;
225}
226#[doc = "`read()` method returns [tzc_glb_ctrl_2::R](R) reader structure"]
227impl crate::Readable for TZC_GLB_CTRL_2_SPEC {
228 type Reader = R;
229}
230#[doc = "`reset()` method sets tzc_glb_ctrl_2 to value 0"]
231impl crate::Resettable for TZC_GLB_CTRL_2_SPEC {
232 const RESET_VALUE: Self::Ux = 0;
233}