bl602_pac/glb/
tzc_glb_ctrl_1.rs1#[doc = "Register `tzc_glb_ctrl_1` reader"]
2pub struct R(crate::R<TZC_GLB_CTRL_1_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<TZC_GLB_CTRL_1_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<TZC_GLB_CTRL_1_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<TZC_GLB_CTRL_1_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `tzc_glb_swrst_s20_lock` reader - "]
17pub type TZC_GLB_SWRST_S20_LOCK_R = crate::BitReader<bool>;
18#[doc = "Field `tzc_glb_swrst_s21_lock` reader - "]
19pub type TZC_GLB_SWRST_S21_LOCK_R = crate::BitReader<bool>;
20#[doc = "Field `tzc_glb_swrst_s22_lock` reader - "]
21pub type TZC_GLB_SWRST_S22_LOCK_R = crate::BitReader<bool>;
22#[doc = "Field `tzc_glb_swrst_s23_lock` reader - "]
23pub type TZC_GLB_SWRST_S23_LOCK_R = crate::BitReader<bool>;
24#[doc = "Field `tzc_glb_swrst_s24_lock` reader - "]
25pub type TZC_GLB_SWRST_S24_LOCK_R = crate::BitReader<bool>;
26#[doc = "Field `tzc_glb_swrst_s25_lock` reader - "]
27pub type TZC_GLB_SWRST_S25_LOCK_R = crate::BitReader<bool>;
28#[doc = "Field `tzc_glb_swrst_s26_lock` reader - "]
29pub type TZC_GLB_SWRST_S26_LOCK_R = crate::BitReader<bool>;
30#[doc = "Field `tzc_glb_swrst_s27_lock` reader - "]
31pub type TZC_GLB_SWRST_S27_LOCK_R = crate::BitReader<bool>;
32#[doc = "Field `tzc_glb_swrst_s28_lock` reader - "]
33pub type TZC_GLB_SWRST_S28_LOCK_R = crate::BitReader<bool>;
34#[doc = "Field `tzc_glb_swrst_s29_lock` reader - "]
35pub type TZC_GLB_SWRST_S29_LOCK_R = crate::BitReader<bool>;
36#[doc = "Field `tzc_glb_swrst_s2a_lock` reader - "]
37pub type TZC_GLB_SWRST_S2A_LOCK_R = crate::BitReader<bool>;
38#[doc = "Field `tzc_glb_swrst_s2b_lock` reader - "]
39pub type TZC_GLB_SWRST_S2B_LOCK_R = crate::BitReader<bool>;
40#[doc = "Field `tzc_glb_swrst_s2c_lock` reader - "]
41pub type TZC_GLB_SWRST_S2C_LOCK_R = crate::BitReader<bool>;
42#[doc = "Field `tzc_glb_swrst_s2d_lock` reader - "]
43pub type TZC_GLB_SWRST_S2D_LOCK_R = crate::BitReader<bool>;
44#[doc = "Field `tzc_glb_swrst_s2e_lock` reader - "]
45pub type TZC_GLB_SWRST_S2E_LOCK_R = crate::BitReader<bool>;
46#[doc = "Field `tzc_glb_swrst_s2f_lock` reader - "]
47pub type TZC_GLB_SWRST_S2F_LOCK_R = crate::BitReader<bool>;
48#[doc = "Field `tzc_glb_swrst_s10_lock` reader - "]
49pub type TZC_GLB_SWRST_S10_LOCK_R = crate::BitReader<bool>;
50#[doc = "Field `tzc_glb_swrst_s11_lock` reader - "]
51pub type TZC_GLB_SWRST_S11_LOCK_R = crate::BitReader<bool>;
52#[doc = "Field `tzc_glb_swrst_s12_lock` reader - "]
53pub type TZC_GLB_SWRST_S12_LOCK_R = crate::BitReader<bool>;
54#[doc = "Field `tzc_glb_swrst_s13_lock` reader - "]
55pub type TZC_GLB_SWRST_S13_LOCK_R = crate::BitReader<bool>;
56#[doc = "Field `tzc_glb_swrst_s14_lock` reader - "]
57pub type TZC_GLB_SWRST_S14_LOCK_R = crate::BitReader<bool>;
58#[doc = "Field `tzc_glb_swrst_s15_lock` reader - "]
59pub type TZC_GLB_SWRST_S15_LOCK_R = crate::BitReader<bool>;
60#[doc = "Field `tzc_glb_swrst_s16_lock` reader - "]
61pub type TZC_GLB_SWRST_S16_LOCK_R = crate::BitReader<bool>;
62#[doc = "Field `tzc_glb_swrst_s17_lock` reader - "]
63pub type TZC_GLB_SWRST_S17_LOCK_R = crate::BitReader<bool>;
64#[doc = "Field `tzc_glb_swrst_s18_lock` reader - "]
65pub type TZC_GLB_SWRST_S18_LOCK_R = crate::BitReader<bool>;
66#[doc = "Field `tzc_glb_swrst_s19_lock` reader - "]
67pub type TZC_GLB_SWRST_S19_LOCK_R = crate::BitReader<bool>;
68#[doc = "Field `tzc_glb_swrst_s1a_lock` reader - "]
69pub type TZC_GLB_SWRST_S1A_LOCK_R = crate::BitReader<bool>;
70#[doc = "Field `tzc_glb_swrst_s1b_lock` reader - "]
71pub type TZC_GLB_SWRST_S1B_LOCK_R = crate::BitReader<bool>;
72#[doc = "Field `tzc_glb_swrst_s1c_lock` reader - "]
73pub type TZC_GLB_SWRST_S1C_LOCK_R = crate::BitReader<bool>;
74#[doc = "Field `tzc_glb_swrst_s1d_lock` reader - "]
75pub type TZC_GLB_SWRST_S1D_LOCK_R = crate::BitReader<bool>;
76#[doc = "Field `tzc_glb_swrst_s1e_lock` reader - "]
77pub type TZC_GLB_SWRST_S1E_LOCK_R = crate::BitReader<bool>;
78#[doc = "Field `tzc_glb_swrst_s1f_lock` reader - "]
79pub type TZC_GLB_SWRST_S1F_LOCK_R = crate::BitReader<bool>;
80impl R {
81 #[doc = "Bit 0"]
82 #[inline(always)]
83 pub fn tzc_glb_swrst_s20_lock(&self) -> TZC_GLB_SWRST_S20_LOCK_R {
84 TZC_GLB_SWRST_S20_LOCK_R::new((self.bits & 1) != 0)
85 }
86 #[doc = "Bit 1"]
87 #[inline(always)]
88 pub fn tzc_glb_swrst_s21_lock(&self) -> TZC_GLB_SWRST_S21_LOCK_R {
89 TZC_GLB_SWRST_S21_LOCK_R::new(((self.bits >> 1) & 1) != 0)
90 }
91 #[doc = "Bit 2"]
92 #[inline(always)]
93 pub fn tzc_glb_swrst_s22_lock(&self) -> TZC_GLB_SWRST_S22_LOCK_R {
94 TZC_GLB_SWRST_S22_LOCK_R::new(((self.bits >> 2) & 1) != 0)
95 }
96 #[doc = "Bit 3"]
97 #[inline(always)]
98 pub fn tzc_glb_swrst_s23_lock(&self) -> TZC_GLB_SWRST_S23_LOCK_R {
99 TZC_GLB_SWRST_S23_LOCK_R::new(((self.bits >> 3) & 1) != 0)
100 }
101 #[doc = "Bit 4"]
102 #[inline(always)]
103 pub fn tzc_glb_swrst_s24_lock(&self) -> TZC_GLB_SWRST_S24_LOCK_R {
104 TZC_GLB_SWRST_S24_LOCK_R::new(((self.bits >> 4) & 1) != 0)
105 }
106 #[doc = "Bit 5"]
107 #[inline(always)]
108 pub fn tzc_glb_swrst_s25_lock(&self) -> TZC_GLB_SWRST_S25_LOCK_R {
109 TZC_GLB_SWRST_S25_LOCK_R::new(((self.bits >> 5) & 1) != 0)
110 }
111 #[doc = "Bit 6"]
112 #[inline(always)]
113 pub fn tzc_glb_swrst_s26_lock(&self) -> TZC_GLB_SWRST_S26_LOCK_R {
114 TZC_GLB_SWRST_S26_LOCK_R::new(((self.bits >> 6) & 1) != 0)
115 }
116 #[doc = "Bit 7"]
117 #[inline(always)]
118 pub fn tzc_glb_swrst_s27_lock(&self) -> TZC_GLB_SWRST_S27_LOCK_R {
119 TZC_GLB_SWRST_S27_LOCK_R::new(((self.bits >> 7) & 1) != 0)
120 }
121 #[doc = "Bit 8"]
122 #[inline(always)]
123 pub fn tzc_glb_swrst_s28_lock(&self) -> TZC_GLB_SWRST_S28_LOCK_R {
124 TZC_GLB_SWRST_S28_LOCK_R::new(((self.bits >> 8) & 1) != 0)
125 }
126 #[doc = "Bit 9"]
127 #[inline(always)]
128 pub fn tzc_glb_swrst_s29_lock(&self) -> TZC_GLB_SWRST_S29_LOCK_R {
129 TZC_GLB_SWRST_S29_LOCK_R::new(((self.bits >> 9) & 1) != 0)
130 }
131 #[doc = "Bit 10"]
132 #[inline(always)]
133 pub fn tzc_glb_swrst_s2a_lock(&self) -> TZC_GLB_SWRST_S2A_LOCK_R {
134 TZC_GLB_SWRST_S2A_LOCK_R::new(((self.bits >> 10) & 1) != 0)
135 }
136 #[doc = "Bit 11"]
137 #[inline(always)]
138 pub fn tzc_glb_swrst_s2b_lock(&self) -> TZC_GLB_SWRST_S2B_LOCK_R {
139 TZC_GLB_SWRST_S2B_LOCK_R::new(((self.bits >> 11) & 1) != 0)
140 }
141 #[doc = "Bit 12"]
142 #[inline(always)]
143 pub fn tzc_glb_swrst_s2c_lock(&self) -> TZC_GLB_SWRST_S2C_LOCK_R {
144 TZC_GLB_SWRST_S2C_LOCK_R::new(((self.bits >> 12) & 1) != 0)
145 }
146 #[doc = "Bit 13"]
147 #[inline(always)]
148 pub fn tzc_glb_swrst_s2d_lock(&self) -> TZC_GLB_SWRST_S2D_LOCK_R {
149 TZC_GLB_SWRST_S2D_LOCK_R::new(((self.bits >> 13) & 1) != 0)
150 }
151 #[doc = "Bit 14"]
152 #[inline(always)]
153 pub fn tzc_glb_swrst_s2e_lock(&self) -> TZC_GLB_SWRST_S2E_LOCK_R {
154 TZC_GLB_SWRST_S2E_LOCK_R::new(((self.bits >> 14) & 1) != 0)
155 }
156 #[doc = "Bit 15"]
157 #[inline(always)]
158 pub fn tzc_glb_swrst_s2f_lock(&self) -> TZC_GLB_SWRST_S2F_LOCK_R {
159 TZC_GLB_SWRST_S2F_LOCK_R::new(((self.bits >> 15) & 1) != 0)
160 }
161 #[doc = "Bit 16"]
162 #[inline(always)]
163 pub fn tzc_glb_swrst_s10_lock(&self) -> TZC_GLB_SWRST_S10_LOCK_R {
164 TZC_GLB_SWRST_S10_LOCK_R::new(((self.bits >> 16) & 1) != 0)
165 }
166 #[doc = "Bit 17"]
167 #[inline(always)]
168 pub fn tzc_glb_swrst_s11_lock(&self) -> TZC_GLB_SWRST_S11_LOCK_R {
169 TZC_GLB_SWRST_S11_LOCK_R::new(((self.bits >> 17) & 1) != 0)
170 }
171 #[doc = "Bit 18"]
172 #[inline(always)]
173 pub fn tzc_glb_swrst_s12_lock(&self) -> TZC_GLB_SWRST_S12_LOCK_R {
174 TZC_GLB_SWRST_S12_LOCK_R::new(((self.bits >> 18) & 1) != 0)
175 }
176 #[doc = "Bit 19"]
177 #[inline(always)]
178 pub fn tzc_glb_swrst_s13_lock(&self) -> TZC_GLB_SWRST_S13_LOCK_R {
179 TZC_GLB_SWRST_S13_LOCK_R::new(((self.bits >> 19) & 1) != 0)
180 }
181 #[doc = "Bit 20"]
182 #[inline(always)]
183 pub fn tzc_glb_swrst_s14_lock(&self) -> TZC_GLB_SWRST_S14_LOCK_R {
184 TZC_GLB_SWRST_S14_LOCK_R::new(((self.bits >> 20) & 1) != 0)
185 }
186 #[doc = "Bit 21"]
187 #[inline(always)]
188 pub fn tzc_glb_swrst_s15_lock(&self) -> TZC_GLB_SWRST_S15_LOCK_R {
189 TZC_GLB_SWRST_S15_LOCK_R::new(((self.bits >> 21) & 1) != 0)
190 }
191 #[doc = "Bit 22"]
192 #[inline(always)]
193 pub fn tzc_glb_swrst_s16_lock(&self) -> TZC_GLB_SWRST_S16_LOCK_R {
194 TZC_GLB_SWRST_S16_LOCK_R::new(((self.bits >> 22) & 1) != 0)
195 }
196 #[doc = "Bit 23"]
197 #[inline(always)]
198 pub fn tzc_glb_swrst_s17_lock(&self) -> TZC_GLB_SWRST_S17_LOCK_R {
199 TZC_GLB_SWRST_S17_LOCK_R::new(((self.bits >> 23) & 1) != 0)
200 }
201 #[doc = "Bit 24"]
202 #[inline(always)]
203 pub fn tzc_glb_swrst_s18_lock(&self) -> TZC_GLB_SWRST_S18_LOCK_R {
204 TZC_GLB_SWRST_S18_LOCK_R::new(((self.bits >> 24) & 1) != 0)
205 }
206 #[doc = "Bit 25"]
207 #[inline(always)]
208 pub fn tzc_glb_swrst_s19_lock(&self) -> TZC_GLB_SWRST_S19_LOCK_R {
209 TZC_GLB_SWRST_S19_LOCK_R::new(((self.bits >> 25) & 1) != 0)
210 }
211 #[doc = "Bit 26"]
212 #[inline(always)]
213 pub fn tzc_glb_swrst_s1a_lock(&self) -> TZC_GLB_SWRST_S1A_LOCK_R {
214 TZC_GLB_SWRST_S1A_LOCK_R::new(((self.bits >> 26) & 1) != 0)
215 }
216 #[doc = "Bit 27"]
217 #[inline(always)]
218 pub fn tzc_glb_swrst_s1b_lock(&self) -> TZC_GLB_SWRST_S1B_LOCK_R {
219 TZC_GLB_SWRST_S1B_LOCK_R::new(((self.bits >> 27) & 1) != 0)
220 }
221 #[doc = "Bit 28"]
222 #[inline(always)]
223 pub fn tzc_glb_swrst_s1c_lock(&self) -> TZC_GLB_SWRST_S1C_LOCK_R {
224 TZC_GLB_SWRST_S1C_LOCK_R::new(((self.bits >> 28) & 1) != 0)
225 }
226 #[doc = "Bit 29"]
227 #[inline(always)]
228 pub fn tzc_glb_swrst_s1d_lock(&self) -> TZC_GLB_SWRST_S1D_LOCK_R {
229 TZC_GLB_SWRST_S1D_LOCK_R::new(((self.bits >> 29) & 1) != 0)
230 }
231 #[doc = "Bit 30"]
232 #[inline(always)]
233 pub fn tzc_glb_swrst_s1e_lock(&self) -> TZC_GLB_SWRST_S1E_LOCK_R {
234 TZC_GLB_SWRST_S1E_LOCK_R::new(((self.bits >> 30) & 1) != 0)
235 }
236 #[doc = "Bit 31"]
237 #[inline(always)]
238 pub fn tzc_glb_swrst_s1f_lock(&self) -> TZC_GLB_SWRST_S1F_LOCK_R {
239 TZC_GLB_SWRST_S1F_LOCK_R::new(((self.bits >> 31) & 1) != 0)
240 }
241}
242#[doc = "tzc_glb_ctrl_1.\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_1](index.html) module"]
243pub struct TZC_GLB_CTRL_1_SPEC;
244impl crate::RegisterSpec for TZC_GLB_CTRL_1_SPEC {
245 type Ux = u32;
246}
247#[doc = "`read()` method returns [tzc_glb_ctrl_1::R](R) reader structure"]
248impl crate::Readable for TZC_GLB_CTRL_1_SPEC {
249 type Reader = R;
250}
251#[doc = "`reset()` method sets tzc_glb_ctrl_1 to value 0"]
252impl crate::Resettable for TZC_GLB_CTRL_1_SPEC {
253 const RESET_VALUE: Self::Ux = 0;
254}