1 /**
2 * \file
3 *
4 * \brief SAM SUPC
5 *
6 * Copyright (C) 2016 Atmel Corporation. All rights reserved.
7 *
8 * \asf_license_start
9 *
10 * \page License
11 *
12 * Redistribution and use in source and binary forms, with or without
13 * modification, are permitted provided that the following conditions are met:
14 *
15 * 1. Redistributions of source code must retain the above copyright notice,
16 * this list of conditions and the following disclaimer.
17 *
18 * 2. Redistributions in binary form must reproduce the above copyright notice,
19 * this list of conditions and the following disclaimer in the documentation
20 * and/or other materials provided with the distribution.
21 *
22 * 3. The name of Atmel may not be used to endorse or promote products derived
23 * from this software without specific prior written permission.
24 *
25 * 4. This software may only be redistributed and used in connection with an
26 * Atmel microcontroller product.
27 *
28 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
30 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
31 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
32 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
37 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38 * POSSIBILITY OF SUCH DAMAGE.
39 *
40 * \asf_license_stop
41 */
42
43 #ifdef _SAML21_SUPC_COMPONENT_
44 #ifndef _HRI_SUPC_L21_H_INCLUDED_
45 #define _HRI_SUPC_L21_H_INCLUDED_
46
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50
51 #include <stdbool.h>
52 #include <hal_atomic.h>
53
54 #if defined(ENABLE_SUPC_CRITICAL_SECTIONS)
55 #define SUPC_CRITICAL_SECTION_ENTER() CRITICAL_SECTION_ENTER()
56 #define SUPC_CRITICAL_SECTION_LEAVE() CRITICAL_SECTION_LEAVE()
57 #else
58 #define SUPC_CRITICAL_SECTION_ENTER()
59 #define SUPC_CRITICAL_SECTION_LEAVE()
60 #endif
61
62 typedef uint32_t hri_supc_bbps_reg_t;
63 typedef uint32_t hri_supc_bkin_reg_t;
64 typedef uint32_t hri_supc_bkout_reg_t;
65 typedef uint32_t hri_supc_bod12_reg_t;
66 typedef uint32_t hri_supc_bod33_reg_t;
67 typedef uint32_t hri_supc_intenset_reg_t;
68 typedef uint32_t hri_supc_intflag_reg_t;
69 typedef uint32_t hri_supc_status_reg_t;
70 typedef uint32_t hri_supc_vref_reg_t;
71 typedef uint32_t hri_supc_vreg_reg_t;
72
hri_supc_set_INTEN_BOD33RDY_bit(const void * const hw)73 static inline void hri_supc_set_INTEN_BOD33RDY_bit(const void *const hw)
74 {
75 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_BOD33RDY;
76 }
77
hri_supc_get_INTEN_BOD33RDY_bit(const void * const hw)78 static inline bool hri_supc_get_INTEN_BOD33RDY_bit(const void *const hw)
79 {
80 return (((Supc *)hw)->INTENSET.reg & SUPC_INTENSET_BOD33RDY) >> SUPC_INTENSET_BOD33RDY_Pos;
81 }
82
hri_supc_write_INTEN_BOD33RDY_bit(const void * const hw,bool value)83 static inline void hri_supc_write_INTEN_BOD33RDY_bit(const void *const hw, bool value)
84 {
85 if (value == 0x0) {
86 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_BOD33RDY;
87 } else {
88 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_BOD33RDY;
89 }
90 }
91
hri_supc_clear_INTEN_BOD33RDY_bit(const void * const hw)92 static inline void hri_supc_clear_INTEN_BOD33RDY_bit(const void *const hw)
93 {
94 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_BOD33RDY;
95 }
96
hri_supc_set_INTEN_BOD33DET_bit(const void * const hw)97 static inline void hri_supc_set_INTEN_BOD33DET_bit(const void *const hw)
98 {
99 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_BOD33DET;
100 }
101
hri_supc_get_INTEN_BOD33DET_bit(const void * const hw)102 static inline bool hri_supc_get_INTEN_BOD33DET_bit(const void *const hw)
103 {
104 return (((Supc *)hw)->INTENSET.reg & SUPC_INTENSET_BOD33DET) >> SUPC_INTENSET_BOD33DET_Pos;
105 }
106
hri_supc_write_INTEN_BOD33DET_bit(const void * const hw,bool value)107 static inline void hri_supc_write_INTEN_BOD33DET_bit(const void *const hw, bool value)
108 {
109 if (value == 0x0) {
110 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_BOD33DET;
111 } else {
112 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_BOD33DET;
113 }
114 }
115
hri_supc_clear_INTEN_BOD33DET_bit(const void * const hw)116 static inline void hri_supc_clear_INTEN_BOD33DET_bit(const void *const hw)
117 {
118 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_BOD33DET;
119 }
120
hri_supc_set_INTEN_B33SRDY_bit(const void * const hw)121 static inline void hri_supc_set_INTEN_B33SRDY_bit(const void *const hw)
122 {
123 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_B33SRDY;
124 }
125
hri_supc_get_INTEN_B33SRDY_bit(const void * const hw)126 static inline bool hri_supc_get_INTEN_B33SRDY_bit(const void *const hw)
127 {
128 return (((Supc *)hw)->INTENSET.reg & SUPC_INTENSET_B33SRDY) >> SUPC_INTENSET_B33SRDY_Pos;
129 }
130
hri_supc_write_INTEN_B33SRDY_bit(const void * const hw,bool value)131 static inline void hri_supc_write_INTEN_B33SRDY_bit(const void *const hw, bool value)
132 {
133 if (value == 0x0) {
134 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_B33SRDY;
135 } else {
136 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_B33SRDY;
137 }
138 }
139
hri_supc_clear_INTEN_B33SRDY_bit(const void * const hw)140 static inline void hri_supc_clear_INTEN_B33SRDY_bit(const void *const hw)
141 {
142 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_B33SRDY;
143 }
144
hri_supc_set_INTEN_BOD12RDY_bit(const void * const hw)145 static inline void hri_supc_set_INTEN_BOD12RDY_bit(const void *const hw)
146 {
147 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_BOD12RDY;
148 }
149
hri_supc_get_INTEN_BOD12RDY_bit(const void * const hw)150 static inline bool hri_supc_get_INTEN_BOD12RDY_bit(const void *const hw)
151 {
152 return (((Supc *)hw)->INTENSET.reg & SUPC_INTENSET_BOD12RDY) >> SUPC_INTENSET_BOD12RDY_Pos;
153 }
154
hri_supc_write_INTEN_BOD12RDY_bit(const void * const hw,bool value)155 static inline void hri_supc_write_INTEN_BOD12RDY_bit(const void *const hw, bool value)
156 {
157 if (value == 0x0) {
158 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_BOD12RDY;
159 } else {
160 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_BOD12RDY;
161 }
162 }
163
hri_supc_clear_INTEN_BOD12RDY_bit(const void * const hw)164 static inline void hri_supc_clear_INTEN_BOD12RDY_bit(const void *const hw)
165 {
166 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_BOD12RDY;
167 }
168
hri_supc_set_INTEN_BOD12DET_bit(const void * const hw)169 static inline void hri_supc_set_INTEN_BOD12DET_bit(const void *const hw)
170 {
171 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_BOD12DET;
172 }
173
hri_supc_get_INTEN_BOD12DET_bit(const void * const hw)174 static inline bool hri_supc_get_INTEN_BOD12DET_bit(const void *const hw)
175 {
176 return (((Supc *)hw)->INTENSET.reg & SUPC_INTENSET_BOD12DET) >> SUPC_INTENSET_BOD12DET_Pos;
177 }
178
hri_supc_write_INTEN_BOD12DET_bit(const void * const hw,bool value)179 static inline void hri_supc_write_INTEN_BOD12DET_bit(const void *const hw, bool value)
180 {
181 if (value == 0x0) {
182 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_BOD12DET;
183 } else {
184 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_BOD12DET;
185 }
186 }
187
hri_supc_clear_INTEN_BOD12DET_bit(const void * const hw)188 static inline void hri_supc_clear_INTEN_BOD12DET_bit(const void *const hw)
189 {
190 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_BOD12DET;
191 }
192
hri_supc_set_INTEN_B12SRDY_bit(const void * const hw)193 static inline void hri_supc_set_INTEN_B12SRDY_bit(const void *const hw)
194 {
195 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_B12SRDY;
196 }
197
hri_supc_get_INTEN_B12SRDY_bit(const void * const hw)198 static inline bool hri_supc_get_INTEN_B12SRDY_bit(const void *const hw)
199 {
200 return (((Supc *)hw)->INTENSET.reg & SUPC_INTENSET_B12SRDY) >> SUPC_INTENSET_B12SRDY_Pos;
201 }
202
hri_supc_write_INTEN_B12SRDY_bit(const void * const hw,bool value)203 static inline void hri_supc_write_INTEN_B12SRDY_bit(const void *const hw, bool value)
204 {
205 if (value == 0x0) {
206 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_B12SRDY;
207 } else {
208 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_B12SRDY;
209 }
210 }
211
hri_supc_clear_INTEN_B12SRDY_bit(const void * const hw)212 static inline void hri_supc_clear_INTEN_B12SRDY_bit(const void *const hw)
213 {
214 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_B12SRDY;
215 }
216
hri_supc_set_INTEN_VREGRDY_bit(const void * const hw)217 static inline void hri_supc_set_INTEN_VREGRDY_bit(const void *const hw)
218 {
219 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_VREGRDY;
220 }
221
hri_supc_get_INTEN_VREGRDY_bit(const void * const hw)222 static inline bool hri_supc_get_INTEN_VREGRDY_bit(const void *const hw)
223 {
224 return (((Supc *)hw)->INTENSET.reg & SUPC_INTENSET_VREGRDY) >> SUPC_INTENSET_VREGRDY_Pos;
225 }
226
hri_supc_write_INTEN_VREGRDY_bit(const void * const hw,bool value)227 static inline void hri_supc_write_INTEN_VREGRDY_bit(const void *const hw, bool value)
228 {
229 if (value == 0x0) {
230 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_VREGRDY;
231 } else {
232 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_VREGRDY;
233 }
234 }
235
hri_supc_clear_INTEN_VREGRDY_bit(const void * const hw)236 static inline void hri_supc_clear_INTEN_VREGRDY_bit(const void *const hw)
237 {
238 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_VREGRDY;
239 }
240
hri_supc_set_INTEN_APWSRDY_bit(const void * const hw)241 static inline void hri_supc_set_INTEN_APWSRDY_bit(const void *const hw)
242 {
243 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_APWSRDY;
244 }
245
hri_supc_get_INTEN_APWSRDY_bit(const void * const hw)246 static inline bool hri_supc_get_INTEN_APWSRDY_bit(const void *const hw)
247 {
248 return (((Supc *)hw)->INTENSET.reg & SUPC_INTENSET_APWSRDY) >> SUPC_INTENSET_APWSRDY_Pos;
249 }
250
hri_supc_write_INTEN_APWSRDY_bit(const void * const hw,bool value)251 static inline void hri_supc_write_INTEN_APWSRDY_bit(const void *const hw, bool value)
252 {
253 if (value == 0x0) {
254 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_APWSRDY;
255 } else {
256 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_APWSRDY;
257 }
258 }
259
hri_supc_clear_INTEN_APWSRDY_bit(const void * const hw)260 static inline void hri_supc_clear_INTEN_APWSRDY_bit(const void *const hw)
261 {
262 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_APWSRDY;
263 }
264
hri_supc_set_INTEN_VCORERDY_bit(const void * const hw)265 static inline void hri_supc_set_INTEN_VCORERDY_bit(const void *const hw)
266 {
267 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_VCORERDY;
268 }
269
hri_supc_get_INTEN_VCORERDY_bit(const void * const hw)270 static inline bool hri_supc_get_INTEN_VCORERDY_bit(const void *const hw)
271 {
272 return (((Supc *)hw)->INTENSET.reg & SUPC_INTENSET_VCORERDY) >> SUPC_INTENSET_VCORERDY_Pos;
273 }
274
hri_supc_write_INTEN_VCORERDY_bit(const void * const hw,bool value)275 static inline void hri_supc_write_INTEN_VCORERDY_bit(const void *const hw, bool value)
276 {
277 if (value == 0x0) {
278 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_VCORERDY;
279 } else {
280 ((Supc *)hw)->INTENSET.reg = SUPC_INTENSET_VCORERDY;
281 }
282 }
283
hri_supc_clear_INTEN_VCORERDY_bit(const void * const hw)284 static inline void hri_supc_clear_INTEN_VCORERDY_bit(const void *const hw)
285 {
286 ((Supc *)hw)->INTENCLR.reg = SUPC_INTENSET_VCORERDY;
287 }
288
hri_supc_set_INTEN_reg(const void * const hw,hri_supc_intenset_reg_t mask)289 static inline void hri_supc_set_INTEN_reg(const void *const hw, hri_supc_intenset_reg_t mask)
290 {
291 ((Supc *)hw)->INTENSET.reg = mask;
292 }
293
hri_supc_get_INTEN_reg(const void * const hw,hri_supc_intenset_reg_t mask)294 static inline hri_supc_intenset_reg_t hri_supc_get_INTEN_reg(const void *const hw, hri_supc_intenset_reg_t mask)
295 {
296 uint32_t tmp;
297 tmp = ((Supc *)hw)->INTENSET.reg;
298 tmp &= mask;
299 return tmp;
300 }
301
hri_supc_read_INTEN_reg(const void * const hw)302 static inline hri_supc_intenset_reg_t hri_supc_read_INTEN_reg(const void *const hw)
303 {
304 return ((Supc *)hw)->INTENSET.reg;
305 }
306
hri_supc_write_INTEN_reg(const void * const hw,hri_supc_intenset_reg_t data)307 static inline void hri_supc_write_INTEN_reg(const void *const hw, hri_supc_intenset_reg_t data)
308 {
309 ((Supc *)hw)->INTENSET.reg = data;
310 ((Supc *)hw)->INTENCLR.reg = ~data;
311 }
312
hri_supc_clear_INTEN_reg(const void * const hw,hri_supc_intenset_reg_t mask)313 static inline void hri_supc_clear_INTEN_reg(const void *const hw, hri_supc_intenset_reg_t mask)
314 {
315 ((Supc *)hw)->INTENCLR.reg = mask;
316 }
317
hri_supc_get_INTFLAG_BOD33RDY_bit(const void * const hw)318 static inline bool hri_supc_get_INTFLAG_BOD33RDY_bit(const void *const hw)
319 {
320 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_BOD33RDY) >> SUPC_INTFLAG_BOD33RDY_Pos;
321 }
322
hri_supc_clear_INTFLAG_BOD33RDY_bit(const void * const hw)323 static inline void hri_supc_clear_INTFLAG_BOD33RDY_bit(const void *const hw)
324 {
325 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_BOD33RDY;
326 }
327
hri_supc_get_INTFLAG_BOD33DET_bit(const void * const hw)328 static inline bool hri_supc_get_INTFLAG_BOD33DET_bit(const void *const hw)
329 {
330 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_BOD33DET) >> SUPC_INTFLAG_BOD33DET_Pos;
331 }
332
hri_supc_clear_INTFLAG_BOD33DET_bit(const void * const hw)333 static inline void hri_supc_clear_INTFLAG_BOD33DET_bit(const void *const hw)
334 {
335 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_BOD33DET;
336 }
337
hri_supc_get_INTFLAG_B33SRDY_bit(const void * const hw)338 static inline bool hri_supc_get_INTFLAG_B33SRDY_bit(const void *const hw)
339 {
340 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_B33SRDY) >> SUPC_INTFLAG_B33SRDY_Pos;
341 }
342
hri_supc_clear_INTFLAG_B33SRDY_bit(const void * const hw)343 static inline void hri_supc_clear_INTFLAG_B33SRDY_bit(const void *const hw)
344 {
345 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_B33SRDY;
346 }
347
hri_supc_get_INTFLAG_BOD12RDY_bit(const void * const hw)348 static inline bool hri_supc_get_INTFLAG_BOD12RDY_bit(const void *const hw)
349 {
350 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_BOD12RDY) >> SUPC_INTFLAG_BOD12RDY_Pos;
351 }
352
hri_supc_clear_INTFLAG_BOD12RDY_bit(const void * const hw)353 static inline void hri_supc_clear_INTFLAG_BOD12RDY_bit(const void *const hw)
354 {
355 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_BOD12RDY;
356 }
357
hri_supc_get_INTFLAG_BOD12DET_bit(const void * const hw)358 static inline bool hri_supc_get_INTFLAG_BOD12DET_bit(const void *const hw)
359 {
360 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_BOD12DET) >> SUPC_INTFLAG_BOD12DET_Pos;
361 }
362
hri_supc_clear_INTFLAG_BOD12DET_bit(const void * const hw)363 static inline void hri_supc_clear_INTFLAG_BOD12DET_bit(const void *const hw)
364 {
365 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_BOD12DET;
366 }
367
hri_supc_get_INTFLAG_B12SRDY_bit(const void * const hw)368 static inline bool hri_supc_get_INTFLAG_B12SRDY_bit(const void *const hw)
369 {
370 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_B12SRDY) >> SUPC_INTFLAG_B12SRDY_Pos;
371 }
372
hri_supc_clear_INTFLAG_B12SRDY_bit(const void * const hw)373 static inline void hri_supc_clear_INTFLAG_B12SRDY_bit(const void *const hw)
374 {
375 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_B12SRDY;
376 }
377
hri_supc_get_INTFLAG_VREGRDY_bit(const void * const hw)378 static inline bool hri_supc_get_INTFLAG_VREGRDY_bit(const void *const hw)
379 {
380 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_VREGRDY) >> SUPC_INTFLAG_VREGRDY_Pos;
381 }
382
hri_supc_clear_INTFLAG_VREGRDY_bit(const void * const hw)383 static inline void hri_supc_clear_INTFLAG_VREGRDY_bit(const void *const hw)
384 {
385 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_VREGRDY;
386 }
387
hri_supc_get_INTFLAG_APWSRDY_bit(const void * const hw)388 static inline bool hri_supc_get_INTFLAG_APWSRDY_bit(const void *const hw)
389 {
390 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_APWSRDY) >> SUPC_INTFLAG_APWSRDY_Pos;
391 }
392
hri_supc_clear_INTFLAG_APWSRDY_bit(const void * const hw)393 static inline void hri_supc_clear_INTFLAG_APWSRDY_bit(const void *const hw)
394 {
395 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_APWSRDY;
396 }
397
hri_supc_get_INTFLAG_VCORERDY_bit(const void * const hw)398 static inline bool hri_supc_get_INTFLAG_VCORERDY_bit(const void *const hw)
399 {
400 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_VCORERDY) >> SUPC_INTFLAG_VCORERDY_Pos;
401 }
402
hri_supc_clear_INTFLAG_VCORERDY_bit(const void * const hw)403 static inline void hri_supc_clear_INTFLAG_VCORERDY_bit(const void *const hw)
404 {
405 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_VCORERDY;
406 }
407
hri_supc_get_interrupt_BOD33RDY_bit(const void * const hw)408 static inline bool hri_supc_get_interrupt_BOD33RDY_bit(const void *const hw)
409 {
410 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_BOD33RDY) >> SUPC_INTFLAG_BOD33RDY_Pos;
411 }
412
hri_supc_clear_interrupt_BOD33RDY_bit(const void * const hw)413 static inline void hri_supc_clear_interrupt_BOD33RDY_bit(const void *const hw)
414 {
415 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_BOD33RDY;
416 }
417
hri_supc_get_interrupt_BOD33DET_bit(const void * const hw)418 static inline bool hri_supc_get_interrupt_BOD33DET_bit(const void *const hw)
419 {
420 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_BOD33DET) >> SUPC_INTFLAG_BOD33DET_Pos;
421 }
422
hri_supc_clear_interrupt_BOD33DET_bit(const void * const hw)423 static inline void hri_supc_clear_interrupt_BOD33DET_bit(const void *const hw)
424 {
425 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_BOD33DET;
426 }
427
hri_supc_get_interrupt_B33SRDY_bit(const void * const hw)428 static inline bool hri_supc_get_interrupt_B33SRDY_bit(const void *const hw)
429 {
430 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_B33SRDY) >> SUPC_INTFLAG_B33SRDY_Pos;
431 }
432
hri_supc_clear_interrupt_B33SRDY_bit(const void * const hw)433 static inline void hri_supc_clear_interrupt_B33SRDY_bit(const void *const hw)
434 {
435 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_B33SRDY;
436 }
437
hri_supc_get_interrupt_BOD12RDY_bit(const void * const hw)438 static inline bool hri_supc_get_interrupt_BOD12RDY_bit(const void *const hw)
439 {
440 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_BOD12RDY) >> SUPC_INTFLAG_BOD12RDY_Pos;
441 }
442
hri_supc_clear_interrupt_BOD12RDY_bit(const void * const hw)443 static inline void hri_supc_clear_interrupt_BOD12RDY_bit(const void *const hw)
444 {
445 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_BOD12RDY;
446 }
447
hri_supc_get_interrupt_BOD12DET_bit(const void * const hw)448 static inline bool hri_supc_get_interrupt_BOD12DET_bit(const void *const hw)
449 {
450 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_BOD12DET) >> SUPC_INTFLAG_BOD12DET_Pos;
451 }
452
hri_supc_clear_interrupt_BOD12DET_bit(const void * const hw)453 static inline void hri_supc_clear_interrupt_BOD12DET_bit(const void *const hw)
454 {
455 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_BOD12DET;
456 }
457
hri_supc_get_interrupt_B12SRDY_bit(const void * const hw)458 static inline bool hri_supc_get_interrupt_B12SRDY_bit(const void *const hw)
459 {
460 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_B12SRDY) >> SUPC_INTFLAG_B12SRDY_Pos;
461 }
462
hri_supc_clear_interrupt_B12SRDY_bit(const void * const hw)463 static inline void hri_supc_clear_interrupt_B12SRDY_bit(const void *const hw)
464 {
465 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_B12SRDY;
466 }
467
hri_supc_get_interrupt_VREGRDY_bit(const void * const hw)468 static inline bool hri_supc_get_interrupt_VREGRDY_bit(const void *const hw)
469 {
470 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_VREGRDY) >> SUPC_INTFLAG_VREGRDY_Pos;
471 }
472
hri_supc_clear_interrupt_VREGRDY_bit(const void * const hw)473 static inline void hri_supc_clear_interrupt_VREGRDY_bit(const void *const hw)
474 {
475 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_VREGRDY;
476 }
477
hri_supc_get_interrupt_APWSRDY_bit(const void * const hw)478 static inline bool hri_supc_get_interrupt_APWSRDY_bit(const void *const hw)
479 {
480 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_APWSRDY) >> SUPC_INTFLAG_APWSRDY_Pos;
481 }
482
hri_supc_clear_interrupt_APWSRDY_bit(const void * const hw)483 static inline void hri_supc_clear_interrupt_APWSRDY_bit(const void *const hw)
484 {
485 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_APWSRDY;
486 }
487
hri_supc_get_interrupt_VCORERDY_bit(const void * const hw)488 static inline bool hri_supc_get_interrupt_VCORERDY_bit(const void *const hw)
489 {
490 return (((Supc *)hw)->INTFLAG.reg & SUPC_INTFLAG_VCORERDY) >> SUPC_INTFLAG_VCORERDY_Pos;
491 }
492
hri_supc_clear_interrupt_VCORERDY_bit(const void * const hw)493 static inline void hri_supc_clear_interrupt_VCORERDY_bit(const void *const hw)
494 {
495 ((Supc *)hw)->INTFLAG.reg = SUPC_INTFLAG_VCORERDY;
496 }
497
hri_supc_get_INTFLAG_reg(const void * const hw,hri_supc_intflag_reg_t mask)498 static inline hri_supc_intflag_reg_t hri_supc_get_INTFLAG_reg(const void *const hw, hri_supc_intflag_reg_t mask)
499 {
500 uint32_t tmp;
501 tmp = ((Supc *)hw)->INTFLAG.reg;
502 tmp &= mask;
503 return tmp;
504 }
505
hri_supc_read_INTFLAG_reg(const void * const hw)506 static inline hri_supc_intflag_reg_t hri_supc_read_INTFLAG_reg(const void *const hw)
507 {
508 return ((Supc *)hw)->INTFLAG.reg;
509 }
510
hri_supc_clear_INTFLAG_reg(const void * const hw,hri_supc_intflag_reg_t mask)511 static inline void hri_supc_clear_INTFLAG_reg(const void *const hw, hri_supc_intflag_reg_t mask)
512 {
513 ((Supc *)hw)->INTFLAG.reg = mask;
514 }
515
hri_supc_set_BOD33_ENABLE_bit(const void * const hw)516 static inline void hri_supc_set_BOD33_ENABLE_bit(const void *const hw)
517 {
518 SUPC_CRITICAL_SECTION_ENTER();
519 ((Supc *)hw)->BOD33.reg |= SUPC_BOD33_ENABLE;
520 SUPC_CRITICAL_SECTION_LEAVE();
521 }
522
hri_supc_get_BOD33_ENABLE_bit(const void * const hw)523 static inline bool hri_supc_get_BOD33_ENABLE_bit(const void *const hw)
524 {
525 uint32_t tmp;
526 tmp = ((Supc *)hw)->BOD33.reg;
527 tmp = (tmp & SUPC_BOD33_ENABLE) >> SUPC_BOD33_ENABLE_Pos;
528 return (bool)tmp;
529 }
530
hri_supc_write_BOD33_ENABLE_bit(const void * const hw,bool value)531 static inline void hri_supc_write_BOD33_ENABLE_bit(const void *const hw, bool value)
532 {
533 uint32_t tmp;
534 SUPC_CRITICAL_SECTION_ENTER();
535 tmp = ((Supc *)hw)->BOD33.reg;
536 tmp &= ~SUPC_BOD33_ENABLE;
537 tmp |= value << SUPC_BOD33_ENABLE_Pos;
538 ((Supc *)hw)->BOD33.reg = tmp;
539 SUPC_CRITICAL_SECTION_LEAVE();
540 }
541
hri_supc_clear_BOD33_ENABLE_bit(const void * const hw)542 static inline void hri_supc_clear_BOD33_ENABLE_bit(const void *const hw)
543 {
544 SUPC_CRITICAL_SECTION_ENTER();
545 ((Supc *)hw)->BOD33.reg &= ~SUPC_BOD33_ENABLE;
546 SUPC_CRITICAL_SECTION_LEAVE();
547 }
548
hri_supc_toggle_BOD33_ENABLE_bit(const void * const hw)549 static inline void hri_supc_toggle_BOD33_ENABLE_bit(const void *const hw)
550 {
551 SUPC_CRITICAL_SECTION_ENTER();
552 ((Supc *)hw)->BOD33.reg ^= SUPC_BOD33_ENABLE;
553 SUPC_CRITICAL_SECTION_LEAVE();
554 }
555
hri_supc_set_BOD33_HYST_bit(const void * const hw)556 static inline void hri_supc_set_BOD33_HYST_bit(const void *const hw)
557 {
558 SUPC_CRITICAL_SECTION_ENTER();
559 ((Supc *)hw)->BOD33.reg |= SUPC_BOD33_HYST;
560 SUPC_CRITICAL_SECTION_LEAVE();
561 }
562
hri_supc_get_BOD33_HYST_bit(const void * const hw)563 static inline bool hri_supc_get_BOD33_HYST_bit(const void *const hw)
564 {
565 uint32_t tmp;
566 tmp = ((Supc *)hw)->BOD33.reg;
567 tmp = (tmp & SUPC_BOD33_HYST) >> SUPC_BOD33_HYST_Pos;
568 return (bool)tmp;
569 }
570
hri_supc_write_BOD33_HYST_bit(const void * const hw,bool value)571 static inline void hri_supc_write_BOD33_HYST_bit(const void *const hw, bool value)
572 {
573 uint32_t tmp;
574 SUPC_CRITICAL_SECTION_ENTER();
575 tmp = ((Supc *)hw)->BOD33.reg;
576 tmp &= ~SUPC_BOD33_HYST;
577 tmp |= value << SUPC_BOD33_HYST_Pos;
578 ((Supc *)hw)->BOD33.reg = tmp;
579 SUPC_CRITICAL_SECTION_LEAVE();
580 }
581
hri_supc_clear_BOD33_HYST_bit(const void * const hw)582 static inline void hri_supc_clear_BOD33_HYST_bit(const void *const hw)
583 {
584 SUPC_CRITICAL_SECTION_ENTER();
585 ((Supc *)hw)->BOD33.reg &= ~SUPC_BOD33_HYST;
586 SUPC_CRITICAL_SECTION_LEAVE();
587 }
588
hri_supc_toggle_BOD33_HYST_bit(const void * const hw)589 static inline void hri_supc_toggle_BOD33_HYST_bit(const void *const hw)
590 {
591 SUPC_CRITICAL_SECTION_ENTER();
592 ((Supc *)hw)->BOD33.reg ^= SUPC_BOD33_HYST;
593 SUPC_CRITICAL_SECTION_LEAVE();
594 }
595
hri_supc_set_BOD33_STDBYCFG_bit(const void * const hw)596 static inline void hri_supc_set_BOD33_STDBYCFG_bit(const void *const hw)
597 {
598 SUPC_CRITICAL_SECTION_ENTER();
599 ((Supc *)hw)->BOD33.reg |= SUPC_BOD33_STDBYCFG;
600 SUPC_CRITICAL_SECTION_LEAVE();
601 }
602
hri_supc_get_BOD33_STDBYCFG_bit(const void * const hw)603 static inline bool hri_supc_get_BOD33_STDBYCFG_bit(const void *const hw)
604 {
605 uint32_t tmp;
606 tmp = ((Supc *)hw)->BOD33.reg;
607 tmp = (tmp & SUPC_BOD33_STDBYCFG) >> SUPC_BOD33_STDBYCFG_Pos;
608 return (bool)tmp;
609 }
610
hri_supc_write_BOD33_STDBYCFG_bit(const void * const hw,bool value)611 static inline void hri_supc_write_BOD33_STDBYCFG_bit(const void *const hw, bool value)
612 {
613 uint32_t tmp;
614 SUPC_CRITICAL_SECTION_ENTER();
615 tmp = ((Supc *)hw)->BOD33.reg;
616 tmp &= ~SUPC_BOD33_STDBYCFG;
617 tmp |= value << SUPC_BOD33_STDBYCFG_Pos;
618 ((Supc *)hw)->BOD33.reg = tmp;
619 SUPC_CRITICAL_SECTION_LEAVE();
620 }
621
hri_supc_clear_BOD33_STDBYCFG_bit(const void * const hw)622 static inline void hri_supc_clear_BOD33_STDBYCFG_bit(const void *const hw)
623 {
624 SUPC_CRITICAL_SECTION_ENTER();
625 ((Supc *)hw)->BOD33.reg &= ~SUPC_BOD33_STDBYCFG;
626 SUPC_CRITICAL_SECTION_LEAVE();
627 }
628
hri_supc_toggle_BOD33_STDBYCFG_bit(const void * const hw)629 static inline void hri_supc_toggle_BOD33_STDBYCFG_bit(const void *const hw)
630 {
631 SUPC_CRITICAL_SECTION_ENTER();
632 ((Supc *)hw)->BOD33.reg ^= SUPC_BOD33_STDBYCFG;
633 SUPC_CRITICAL_SECTION_LEAVE();
634 }
635
hri_supc_set_BOD33_RUNSTDBY_bit(const void * const hw)636 static inline void hri_supc_set_BOD33_RUNSTDBY_bit(const void *const hw)
637 {
638 SUPC_CRITICAL_SECTION_ENTER();
639 ((Supc *)hw)->BOD33.reg |= SUPC_BOD33_RUNSTDBY;
640 SUPC_CRITICAL_SECTION_LEAVE();
641 }
642
hri_supc_get_BOD33_RUNSTDBY_bit(const void * const hw)643 static inline bool hri_supc_get_BOD33_RUNSTDBY_bit(const void *const hw)
644 {
645 uint32_t tmp;
646 tmp = ((Supc *)hw)->BOD33.reg;
647 tmp = (tmp & SUPC_BOD33_RUNSTDBY) >> SUPC_BOD33_RUNSTDBY_Pos;
648 return (bool)tmp;
649 }
650
hri_supc_write_BOD33_RUNSTDBY_bit(const void * const hw,bool value)651 static inline void hri_supc_write_BOD33_RUNSTDBY_bit(const void *const hw, bool value)
652 {
653 uint32_t tmp;
654 SUPC_CRITICAL_SECTION_ENTER();
655 tmp = ((Supc *)hw)->BOD33.reg;
656 tmp &= ~SUPC_BOD33_RUNSTDBY;
657 tmp |= value << SUPC_BOD33_RUNSTDBY_Pos;
658 ((Supc *)hw)->BOD33.reg = tmp;
659 SUPC_CRITICAL_SECTION_LEAVE();
660 }
661
hri_supc_clear_BOD33_RUNSTDBY_bit(const void * const hw)662 static inline void hri_supc_clear_BOD33_RUNSTDBY_bit(const void *const hw)
663 {
664 SUPC_CRITICAL_SECTION_ENTER();
665 ((Supc *)hw)->BOD33.reg &= ~SUPC_BOD33_RUNSTDBY;
666 SUPC_CRITICAL_SECTION_LEAVE();
667 }
668
hri_supc_toggle_BOD33_RUNSTDBY_bit(const void * const hw)669 static inline void hri_supc_toggle_BOD33_RUNSTDBY_bit(const void *const hw)
670 {
671 SUPC_CRITICAL_SECTION_ENTER();
672 ((Supc *)hw)->BOD33.reg ^= SUPC_BOD33_RUNSTDBY;
673 SUPC_CRITICAL_SECTION_LEAVE();
674 }
675
hri_supc_set_BOD33_RUNBKUP_bit(const void * const hw)676 static inline void hri_supc_set_BOD33_RUNBKUP_bit(const void *const hw)
677 {
678 SUPC_CRITICAL_SECTION_ENTER();
679 ((Supc *)hw)->BOD33.reg |= SUPC_BOD33_RUNBKUP;
680 SUPC_CRITICAL_SECTION_LEAVE();
681 }
682
hri_supc_get_BOD33_RUNBKUP_bit(const void * const hw)683 static inline bool hri_supc_get_BOD33_RUNBKUP_bit(const void *const hw)
684 {
685 uint32_t tmp;
686 tmp = ((Supc *)hw)->BOD33.reg;
687 tmp = (tmp & SUPC_BOD33_RUNBKUP) >> SUPC_BOD33_RUNBKUP_Pos;
688 return (bool)tmp;
689 }
690
hri_supc_write_BOD33_RUNBKUP_bit(const void * const hw,bool value)691 static inline void hri_supc_write_BOD33_RUNBKUP_bit(const void *const hw, bool value)
692 {
693 uint32_t tmp;
694 SUPC_CRITICAL_SECTION_ENTER();
695 tmp = ((Supc *)hw)->BOD33.reg;
696 tmp &= ~SUPC_BOD33_RUNBKUP;
697 tmp |= value << SUPC_BOD33_RUNBKUP_Pos;
698 ((Supc *)hw)->BOD33.reg = tmp;
699 SUPC_CRITICAL_SECTION_LEAVE();
700 }
701
hri_supc_clear_BOD33_RUNBKUP_bit(const void * const hw)702 static inline void hri_supc_clear_BOD33_RUNBKUP_bit(const void *const hw)
703 {
704 SUPC_CRITICAL_SECTION_ENTER();
705 ((Supc *)hw)->BOD33.reg &= ~SUPC_BOD33_RUNBKUP;
706 SUPC_CRITICAL_SECTION_LEAVE();
707 }
708
hri_supc_toggle_BOD33_RUNBKUP_bit(const void * const hw)709 static inline void hri_supc_toggle_BOD33_RUNBKUP_bit(const void *const hw)
710 {
711 SUPC_CRITICAL_SECTION_ENTER();
712 ((Supc *)hw)->BOD33.reg ^= SUPC_BOD33_RUNBKUP;
713 SUPC_CRITICAL_SECTION_LEAVE();
714 }
715
hri_supc_set_BOD33_ACTCFG_bit(const void * const hw)716 static inline void hri_supc_set_BOD33_ACTCFG_bit(const void *const hw)
717 {
718 SUPC_CRITICAL_SECTION_ENTER();
719 ((Supc *)hw)->BOD33.reg |= SUPC_BOD33_ACTCFG;
720 SUPC_CRITICAL_SECTION_LEAVE();
721 }
722
hri_supc_get_BOD33_ACTCFG_bit(const void * const hw)723 static inline bool hri_supc_get_BOD33_ACTCFG_bit(const void *const hw)
724 {
725 uint32_t tmp;
726 tmp = ((Supc *)hw)->BOD33.reg;
727 tmp = (tmp & SUPC_BOD33_ACTCFG) >> SUPC_BOD33_ACTCFG_Pos;
728 return (bool)tmp;
729 }
730
hri_supc_write_BOD33_ACTCFG_bit(const void * const hw,bool value)731 static inline void hri_supc_write_BOD33_ACTCFG_bit(const void *const hw, bool value)
732 {
733 uint32_t tmp;
734 SUPC_CRITICAL_SECTION_ENTER();
735 tmp = ((Supc *)hw)->BOD33.reg;
736 tmp &= ~SUPC_BOD33_ACTCFG;
737 tmp |= value << SUPC_BOD33_ACTCFG_Pos;
738 ((Supc *)hw)->BOD33.reg = tmp;
739 SUPC_CRITICAL_SECTION_LEAVE();
740 }
741
hri_supc_clear_BOD33_ACTCFG_bit(const void * const hw)742 static inline void hri_supc_clear_BOD33_ACTCFG_bit(const void *const hw)
743 {
744 SUPC_CRITICAL_SECTION_ENTER();
745 ((Supc *)hw)->BOD33.reg &= ~SUPC_BOD33_ACTCFG;
746 SUPC_CRITICAL_SECTION_LEAVE();
747 }
748
hri_supc_toggle_BOD33_ACTCFG_bit(const void * const hw)749 static inline void hri_supc_toggle_BOD33_ACTCFG_bit(const void *const hw)
750 {
751 SUPC_CRITICAL_SECTION_ENTER();
752 ((Supc *)hw)->BOD33.reg ^= SUPC_BOD33_ACTCFG;
753 SUPC_CRITICAL_SECTION_LEAVE();
754 }
755
hri_supc_set_BOD33_VMON_bit(const void * const hw)756 static inline void hri_supc_set_BOD33_VMON_bit(const void *const hw)
757 {
758 SUPC_CRITICAL_SECTION_ENTER();
759 ((Supc *)hw)->BOD33.reg |= SUPC_BOD33_VMON;
760 SUPC_CRITICAL_SECTION_LEAVE();
761 }
762
hri_supc_get_BOD33_VMON_bit(const void * const hw)763 static inline bool hri_supc_get_BOD33_VMON_bit(const void *const hw)
764 {
765 uint32_t tmp;
766 tmp = ((Supc *)hw)->BOD33.reg;
767 tmp = (tmp & SUPC_BOD33_VMON) >> SUPC_BOD33_VMON_Pos;
768 return (bool)tmp;
769 }
770
hri_supc_write_BOD33_VMON_bit(const void * const hw,bool value)771 static inline void hri_supc_write_BOD33_VMON_bit(const void *const hw, bool value)
772 {
773 uint32_t tmp;
774 SUPC_CRITICAL_SECTION_ENTER();
775 tmp = ((Supc *)hw)->BOD33.reg;
776 tmp &= ~SUPC_BOD33_VMON;
777 tmp |= value << SUPC_BOD33_VMON_Pos;
778 ((Supc *)hw)->BOD33.reg = tmp;
779 SUPC_CRITICAL_SECTION_LEAVE();
780 }
781
hri_supc_clear_BOD33_VMON_bit(const void * const hw)782 static inline void hri_supc_clear_BOD33_VMON_bit(const void *const hw)
783 {
784 SUPC_CRITICAL_SECTION_ENTER();
785 ((Supc *)hw)->BOD33.reg &= ~SUPC_BOD33_VMON;
786 SUPC_CRITICAL_SECTION_LEAVE();
787 }
788
hri_supc_toggle_BOD33_VMON_bit(const void * const hw)789 static inline void hri_supc_toggle_BOD33_VMON_bit(const void *const hw)
790 {
791 SUPC_CRITICAL_SECTION_ENTER();
792 ((Supc *)hw)->BOD33.reg ^= SUPC_BOD33_VMON;
793 SUPC_CRITICAL_SECTION_LEAVE();
794 }
795
hri_supc_set_BOD33_ACTION_bf(const void * const hw,hri_supc_bod33_reg_t mask)796 static inline void hri_supc_set_BOD33_ACTION_bf(const void *const hw, hri_supc_bod33_reg_t mask)
797 {
798 SUPC_CRITICAL_SECTION_ENTER();
799 ((Supc *)hw)->BOD33.reg |= SUPC_BOD33_ACTION(mask);
800 SUPC_CRITICAL_SECTION_LEAVE();
801 }
802
hri_supc_get_BOD33_ACTION_bf(const void * const hw,hri_supc_bod33_reg_t mask)803 static inline hri_supc_bod33_reg_t hri_supc_get_BOD33_ACTION_bf(const void *const hw, hri_supc_bod33_reg_t mask)
804 {
805 uint32_t tmp;
806 tmp = ((Supc *)hw)->BOD33.reg;
807 tmp = (tmp & SUPC_BOD33_ACTION(mask)) >> SUPC_BOD33_ACTION_Pos;
808 return tmp;
809 }
810
hri_supc_write_BOD33_ACTION_bf(const void * const hw,hri_supc_bod33_reg_t data)811 static inline void hri_supc_write_BOD33_ACTION_bf(const void *const hw, hri_supc_bod33_reg_t data)
812 {
813 uint32_t tmp;
814 SUPC_CRITICAL_SECTION_ENTER();
815 tmp = ((Supc *)hw)->BOD33.reg;
816 tmp &= ~SUPC_BOD33_ACTION_Msk;
817 tmp |= SUPC_BOD33_ACTION(data);
818 ((Supc *)hw)->BOD33.reg = tmp;
819 SUPC_CRITICAL_SECTION_LEAVE();
820 }
821
hri_supc_clear_BOD33_ACTION_bf(const void * const hw,hri_supc_bod33_reg_t mask)822 static inline void hri_supc_clear_BOD33_ACTION_bf(const void *const hw, hri_supc_bod33_reg_t mask)
823 {
824 SUPC_CRITICAL_SECTION_ENTER();
825 ((Supc *)hw)->BOD33.reg &= ~SUPC_BOD33_ACTION(mask);
826 SUPC_CRITICAL_SECTION_LEAVE();
827 }
828
hri_supc_toggle_BOD33_ACTION_bf(const void * const hw,hri_supc_bod33_reg_t mask)829 static inline void hri_supc_toggle_BOD33_ACTION_bf(const void *const hw, hri_supc_bod33_reg_t mask)
830 {
831 SUPC_CRITICAL_SECTION_ENTER();
832 ((Supc *)hw)->BOD33.reg ^= SUPC_BOD33_ACTION(mask);
833 SUPC_CRITICAL_SECTION_LEAVE();
834 }
835
hri_supc_read_BOD33_ACTION_bf(const void * const hw)836 static inline hri_supc_bod33_reg_t hri_supc_read_BOD33_ACTION_bf(const void *const hw)
837 {
838 uint32_t tmp;
839 tmp = ((Supc *)hw)->BOD33.reg;
840 tmp = (tmp & SUPC_BOD33_ACTION_Msk) >> SUPC_BOD33_ACTION_Pos;
841 return tmp;
842 }
843
hri_supc_set_BOD33_PSEL_bf(const void * const hw,hri_supc_bod33_reg_t mask)844 static inline void hri_supc_set_BOD33_PSEL_bf(const void *const hw, hri_supc_bod33_reg_t mask)
845 {
846 SUPC_CRITICAL_SECTION_ENTER();
847 ((Supc *)hw)->BOD33.reg |= SUPC_BOD33_PSEL(mask);
848 SUPC_CRITICAL_SECTION_LEAVE();
849 }
850
hri_supc_get_BOD33_PSEL_bf(const void * const hw,hri_supc_bod33_reg_t mask)851 static inline hri_supc_bod33_reg_t hri_supc_get_BOD33_PSEL_bf(const void *const hw, hri_supc_bod33_reg_t mask)
852 {
853 uint32_t tmp;
854 tmp = ((Supc *)hw)->BOD33.reg;
855 tmp = (tmp & SUPC_BOD33_PSEL(mask)) >> SUPC_BOD33_PSEL_Pos;
856 return tmp;
857 }
858
hri_supc_write_BOD33_PSEL_bf(const void * const hw,hri_supc_bod33_reg_t data)859 static inline void hri_supc_write_BOD33_PSEL_bf(const void *const hw, hri_supc_bod33_reg_t data)
860 {
861 uint32_t tmp;
862 SUPC_CRITICAL_SECTION_ENTER();
863 tmp = ((Supc *)hw)->BOD33.reg;
864 tmp &= ~SUPC_BOD33_PSEL_Msk;
865 tmp |= SUPC_BOD33_PSEL(data);
866 ((Supc *)hw)->BOD33.reg = tmp;
867 SUPC_CRITICAL_SECTION_LEAVE();
868 }
869
hri_supc_clear_BOD33_PSEL_bf(const void * const hw,hri_supc_bod33_reg_t mask)870 static inline void hri_supc_clear_BOD33_PSEL_bf(const void *const hw, hri_supc_bod33_reg_t mask)
871 {
872 SUPC_CRITICAL_SECTION_ENTER();
873 ((Supc *)hw)->BOD33.reg &= ~SUPC_BOD33_PSEL(mask);
874 SUPC_CRITICAL_SECTION_LEAVE();
875 }
876
hri_supc_toggle_BOD33_PSEL_bf(const void * const hw,hri_supc_bod33_reg_t mask)877 static inline void hri_supc_toggle_BOD33_PSEL_bf(const void *const hw, hri_supc_bod33_reg_t mask)
878 {
879 SUPC_CRITICAL_SECTION_ENTER();
880 ((Supc *)hw)->BOD33.reg ^= SUPC_BOD33_PSEL(mask);
881 SUPC_CRITICAL_SECTION_LEAVE();
882 }
883
hri_supc_read_BOD33_PSEL_bf(const void * const hw)884 static inline hri_supc_bod33_reg_t hri_supc_read_BOD33_PSEL_bf(const void *const hw)
885 {
886 uint32_t tmp;
887 tmp = ((Supc *)hw)->BOD33.reg;
888 tmp = (tmp & SUPC_BOD33_PSEL_Msk) >> SUPC_BOD33_PSEL_Pos;
889 return tmp;
890 }
891
hri_supc_set_BOD33_LEVEL_bf(const void * const hw,hri_supc_bod33_reg_t mask)892 static inline void hri_supc_set_BOD33_LEVEL_bf(const void *const hw, hri_supc_bod33_reg_t mask)
893 {
894 SUPC_CRITICAL_SECTION_ENTER();
895 ((Supc *)hw)->BOD33.reg |= SUPC_BOD33_LEVEL(mask);
896 SUPC_CRITICAL_SECTION_LEAVE();
897 }
898
hri_supc_get_BOD33_LEVEL_bf(const void * const hw,hri_supc_bod33_reg_t mask)899 static inline hri_supc_bod33_reg_t hri_supc_get_BOD33_LEVEL_bf(const void *const hw, hri_supc_bod33_reg_t mask)
900 {
901 uint32_t tmp;
902 tmp = ((Supc *)hw)->BOD33.reg;
903 tmp = (tmp & SUPC_BOD33_LEVEL(mask)) >> SUPC_BOD33_LEVEL_Pos;
904 return tmp;
905 }
906
hri_supc_write_BOD33_LEVEL_bf(const void * const hw,hri_supc_bod33_reg_t data)907 static inline void hri_supc_write_BOD33_LEVEL_bf(const void *const hw, hri_supc_bod33_reg_t data)
908 {
909 uint32_t tmp;
910 SUPC_CRITICAL_SECTION_ENTER();
911 tmp = ((Supc *)hw)->BOD33.reg;
912 tmp &= ~SUPC_BOD33_LEVEL_Msk;
913 tmp |= SUPC_BOD33_LEVEL(data);
914 ((Supc *)hw)->BOD33.reg = tmp;
915 SUPC_CRITICAL_SECTION_LEAVE();
916 }
917
hri_supc_clear_BOD33_LEVEL_bf(const void * const hw,hri_supc_bod33_reg_t mask)918 static inline void hri_supc_clear_BOD33_LEVEL_bf(const void *const hw, hri_supc_bod33_reg_t mask)
919 {
920 SUPC_CRITICAL_SECTION_ENTER();
921 ((Supc *)hw)->BOD33.reg &= ~SUPC_BOD33_LEVEL(mask);
922 SUPC_CRITICAL_SECTION_LEAVE();
923 }
924
hri_supc_toggle_BOD33_LEVEL_bf(const void * const hw,hri_supc_bod33_reg_t mask)925 static inline void hri_supc_toggle_BOD33_LEVEL_bf(const void *const hw, hri_supc_bod33_reg_t mask)
926 {
927 SUPC_CRITICAL_SECTION_ENTER();
928 ((Supc *)hw)->BOD33.reg ^= SUPC_BOD33_LEVEL(mask);
929 SUPC_CRITICAL_SECTION_LEAVE();
930 }
931
hri_supc_read_BOD33_LEVEL_bf(const void * const hw)932 static inline hri_supc_bod33_reg_t hri_supc_read_BOD33_LEVEL_bf(const void *const hw)
933 {
934 uint32_t tmp;
935 tmp = ((Supc *)hw)->BOD33.reg;
936 tmp = (tmp & SUPC_BOD33_LEVEL_Msk) >> SUPC_BOD33_LEVEL_Pos;
937 return tmp;
938 }
939
hri_supc_set_BOD33_BKUPLEVEL_bf(const void * const hw,hri_supc_bod33_reg_t mask)940 static inline void hri_supc_set_BOD33_BKUPLEVEL_bf(const void *const hw, hri_supc_bod33_reg_t mask)
941 {
942 SUPC_CRITICAL_SECTION_ENTER();
943 ((Supc *)hw)->BOD33.reg |= SUPC_BOD33_BKUPLEVEL(mask);
944 SUPC_CRITICAL_SECTION_LEAVE();
945 }
946
hri_supc_get_BOD33_BKUPLEVEL_bf(const void * const hw,hri_supc_bod33_reg_t mask)947 static inline hri_supc_bod33_reg_t hri_supc_get_BOD33_BKUPLEVEL_bf(const void *const hw, hri_supc_bod33_reg_t mask)
948 {
949 uint32_t tmp;
950 tmp = ((Supc *)hw)->BOD33.reg;
951 tmp = (tmp & SUPC_BOD33_BKUPLEVEL(mask)) >> SUPC_BOD33_BKUPLEVEL_Pos;
952 return tmp;
953 }
954
hri_supc_write_BOD33_BKUPLEVEL_bf(const void * const hw,hri_supc_bod33_reg_t data)955 static inline void hri_supc_write_BOD33_BKUPLEVEL_bf(const void *const hw, hri_supc_bod33_reg_t data)
956 {
957 uint32_t tmp;
958 SUPC_CRITICAL_SECTION_ENTER();
959 tmp = ((Supc *)hw)->BOD33.reg;
960 tmp &= ~SUPC_BOD33_BKUPLEVEL_Msk;
961 tmp |= SUPC_BOD33_BKUPLEVEL(data);
962 ((Supc *)hw)->BOD33.reg = tmp;
963 SUPC_CRITICAL_SECTION_LEAVE();
964 }
965
hri_supc_clear_BOD33_BKUPLEVEL_bf(const void * const hw,hri_supc_bod33_reg_t mask)966 static inline void hri_supc_clear_BOD33_BKUPLEVEL_bf(const void *const hw, hri_supc_bod33_reg_t mask)
967 {
968 SUPC_CRITICAL_SECTION_ENTER();
969 ((Supc *)hw)->BOD33.reg &= ~SUPC_BOD33_BKUPLEVEL(mask);
970 SUPC_CRITICAL_SECTION_LEAVE();
971 }
972
hri_supc_toggle_BOD33_BKUPLEVEL_bf(const void * const hw,hri_supc_bod33_reg_t mask)973 static inline void hri_supc_toggle_BOD33_BKUPLEVEL_bf(const void *const hw, hri_supc_bod33_reg_t mask)
974 {
975 SUPC_CRITICAL_SECTION_ENTER();
976 ((Supc *)hw)->BOD33.reg ^= SUPC_BOD33_BKUPLEVEL(mask);
977 SUPC_CRITICAL_SECTION_LEAVE();
978 }
979
hri_supc_read_BOD33_BKUPLEVEL_bf(const void * const hw)980 static inline hri_supc_bod33_reg_t hri_supc_read_BOD33_BKUPLEVEL_bf(const void *const hw)
981 {
982 uint32_t tmp;
983 tmp = ((Supc *)hw)->BOD33.reg;
984 tmp = (tmp & SUPC_BOD33_BKUPLEVEL_Msk) >> SUPC_BOD33_BKUPLEVEL_Pos;
985 return tmp;
986 }
987
hri_supc_set_BOD33_reg(const void * const hw,hri_supc_bod33_reg_t mask)988 static inline void hri_supc_set_BOD33_reg(const void *const hw, hri_supc_bod33_reg_t mask)
989 {
990 SUPC_CRITICAL_SECTION_ENTER();
991 ((Supc *)hw)->BOD33.reg |= mask;
992 SUPC_CRITICAL_SECTION_LEAVE();
993 }
994
hri_supc_get_BOD33_reg(const void * const hw,hri_supc_bod33_reg_t mask)995 static inline hri_supc_bod33_reg_t hri_supc_get_BOD33_reg(const void *const hw, hri_supc_bod33_reg_t mask)
996 {
997 uint32_t tmp;
998 tmp = ((Supc *)hw)->BOD33.reg;
999 tmp &= mask;
1000 return tmp;
1001 }
1002
hri_supc_write_BOD33_reg(const void * const hw,hri_supc_bod33_reg_t data)1003 static inline void hri_supc_write_BOD33_reg(const void *const hw, hri_supc_bod33_reg_t data)
1004 {
1005 SUPC_CRITICAL_SECTION_ENTER();
1006 ((Supc *)hw)->BOD33.reg = data;
1007 SUPC_CRITICAL_SECTION_LEAVE();
1008 }
1009
hri_supc_clear_BOD33_reg(const void * const hw,hri_supc_bod33_reg_t mask)1010 static inline void hri_supc_clear_BOD33_reg(const void *const hw, hri_supc_bod33_reg_t mask)
1011 {
1012 SUPC_CRITICAL_SECTION_ENTER();
1013 ((Supc *)hw)->BOD33.reg &= ~mask;
1014 SUPC_CRITICAL_SECTION_LEAVE();
1015 }
1016
hri_supc_toggle_BOD33_reg(const void * const hw,hri_supc_bod33_reg_t mask)1017 static inline void hri_supc_toggle_BOD33_reg(const void *const hw, hri_supc_bod33_reg_t mask)
1018 {
1019 SUPC_CRITICAL_SECTION_ENTER();
1020 ((Supc *)hw)->BOD33.reg ^= mask;
1021 SUPC_CRITICAL_SECTION_LEAVE();
1022 }
1023
hri_supc_read_BOD33_reg(const void * const hw)1024 static inline hri_supc_bod33_reg_t hri_supc_read_BOD33_reg(const void *const hw)
1025 {
1026 return ((Supc *)hw)->BOD33.reg;
1027 }
1028
hri_supc_set_BOD12_ENABLE_bit(const void * const hw)1029 static inline void hri_supc_set_BOD12_ENABLE_bit(const void *const hw)
1030 {
1031 SUPC_CRITICAL_SECTION_ENTER();
1032 ((Supc *)hw)->BOD12.reg |= SUPC_BOD12_ENABLE;
1033 SUPC_CRITICAL_SECTION_LEAVE();
1034 }
1035
hri_supc_get_BOD12_ENABLE_bit(const void * const hw)1036 static inline bool hri_supc_get_BOD12_ENABLE_bit(const void *const hw)
1037 {
1038 uint32_t tmp;
1039 tmp = ((Supc *)hw)->BOD12.reg;
1040 tmp = (tmp & SUPC_BOD12_ENABLE) >> SUPC_BOD12_ENABLE_Pos;
1041 return (bool)tmp;
1042 }
1043
hri_supc_write_BOD12_ENABLE_bit(const void * const hw,bool value)1044 static inline void hri_supc_write_BOD12_ENABLE_bit(const void *const hw, bool value)
1045 {
1046 uint32_t tmp;
1047 SUPC_CRITICAL_SECTION_ENTER();
1048 tmp = ((Supc *)hw)->BOD12.reg;
1049 tmp &= ~SUPC_BOD12_ENABLE;
1050 tmp |= value << SUPC_BOD12_ENABLE_Pos;
1051 ((Supc *)hw)->BOD12.reg = tmp;
1052 SUPC_CRITICAL_SECTION_LEAVE();
1053 }
1054
hri_supc_clear_BOD12_ENABLE_bit(const void * const hw)1055 static inline void hri_supc_clear_BOD12_ENABLE_bit(const void *const hw)
1056 {
1057 SUPC_CRITICAL_SECTION_ENTER();
1058 ((Supc *)hw)->BOD12.reg &= ~SUPC_BOD12_ENABLE;
1059 SUPC_CRITICAL_SECTION_LEAVE();
1060 }
1061
hri_supc_toggle_BOD12_ENABLE_bit(const void * const hw)1062 static inline void hri_supc_toggle_BOD12_ENABLE_bit(const void *const hw)
1063 {
1064 SUPC_CRITICAL_SECTION_ENTER();
1065 ((Supc *)hw)->BOD12.reg ^= SUPC_BOD12_ENABLE;
1066 SUPC_CRITICAL_SECTION_LEAVE();
1067 }
1068
hri_supc_set_BOD12_HYST_bit(const void * const hw)1069 static inline void hri_supc_set_BOD12_HYST_bit(const void *const hw)
1070 {
1071 SUPC_CRITICAL_SECTION_ENTER();
1072 ((Supc *)hw)->BOD12.reg |= SUPC_BOD12_HYST;
1073 SUPC_CRITICAL_SECTION_LEAVE();
1074 }
1075
hri_supc_get_BOD12_HYST_bit(const void * const hw)1076 static inline bool hri_supc_get_BOD12_HYST_bit(const void *const hw)
1077 {
1078 uint32_t tmp;
1079 tmp = ((Supc *)hw)->BOD12.reg;
1080 tmp = (tmp & SUPC_BOD12_HYST) >> SUPC_BOD12_HYST_Pos;
1081 return (bool)tmp;
1082 }
1083
hri_supc_write_BOD12_HYST_bit(const void * const hw,bool value)1084 static inline void hri_supc_write_BOD12_HYST_bit(const void *const hw, bool value)
1085 {
1086 uint32_t tmp;
1087 SUPC_CRITICAL_SECTION_ENTER();
1088 tmp = ((Supc *)hw)->BOD12.reg;
1089 tmp &= ~SUPC_BOD12_HYST;
1090 tmp |= value << SUPC_BOD12_HYST_Pos;
1091 ((Supc *)hw)->BOD12.reg = tmp;
1092 SUPC_CRITICAL_SECTION_LEAVE();
1093 }
1094
hri_supc_clear_BOD12_HYST_bit(const void * const hw)1095 static inline void hri_supc_clear_BOD12_HYST_bit(const void *const hw)
1096 {
1097 SUPC_CRITICAL_SECTION_ENTER();
1098 ((Supc *)hw)->BOD12.reg &= ~SUPC_BOD12_HYST;
1099 SUPC_CRITICAL_SECTION_LEAVE();
1100 }
1101
hri_supc_toggle_BOD12_HYST_bit(const void * const hw)1102 static inline void hri_supc_toggle_BOD12_HYST_bit(const void *const hw)
1103 {
1104 SUPC_CRITICAL_SECTION_ENTER();
1105 ((Supc *)hw)->BOD12.reg ^= SUPC_BOD12_HYST;
1106 SUPC_CRITICAL_SECTION_LEAVE();
1107 }
1108
hri_supc_set_BOD12_STDBYCFG_bit(const void * const hw)1109 static inline void hri_supc_set_BOD12_STDBYCFG_bit(const void *const hw)
1110 {
1111 SUPC_CRITICAL_SECTION_ENTER();
1112 ((Supc *)hw)->BOD12.reg |= SUPC_BOD12_STDBYCFG;
1113 SUPC_CRITICAL_SECTION_LEAVE();
1114 }
1115
hri_supc_get_BOD12_STDBYCFG_bit(const void * const hw)1116 static inline bool hri_supc_get_BOD12_STDBYCFG_bit(const void *const hw)
1117 {
1118 uint32_t tmp;
1119 tmp = ((Supc *)hw)->BOD12.reg;
1120 tmp = (tmp & SUPC_BOD12_STDBYCFG) >> SUPC_BOD12_STDBYCFG_Pos;
1121 return (bool)tmp;
1122 }
1123
hri_supc_write_BOD12_STDBYCFG_bit(const void * const hw,bool value)1124 static inline void hri_supc_write_BOD12_STDBYCFG_bit(const void *const hw, bool value)
1125 {
1126 uint32_t tmp;
1127 SUPC_CRITICAL_SECTION_ENTER();
1128 tmp = ((Supc *)hw)->BOD12.reg;
1129 tmp &= ~SUPC_BOD12_STDBYCFG;
1130 tmp |= value << SUPC_BOD12_STDBYCFG_Pos;
1131 ((Supc *)hw)->BOD12.reg = tmp;
1132 SUPC_CRITICAL_SECTION_LEAVE();
1133 }
1134
hri_supc_clear_BOD12_STDBYCFG_bit(const void * const hw)1135 static inline void hri_supc_clear_BOD12_STDBYCFG_bit(const void *const hw)
1136 {
1137 SUPC_CRITICAL_SECTION_ENTER();
1138 ((Supc *)hw)->BOD12.reg &= ~SUPC_BOD12_STDBYCFG;
1139 SUPC_CRITICAL_SECTION_LEAVE();
1140 }
1141
hri_supc_toggle_BOD12_STDBYCFG_bit(const void * const hw)1142 static inline void hri_supc_toggle_BOD12_STDBYCFG_bit(const void *const hw)
1143 {
1144 SUPC_CRITICAL_SECTION_ENTER();
1145 ((Supc *)hw)->BOD12.reg ^= SUPC_BOD12_STDBYCFG;
1146 SUPC_CRITICAL_SECTION_LEAVE();
1147 }
1148
hri_supc_set_BOD12_RUNSTDBY_bit(const void * const hw)1149 static inline void hri_supc_set_BOD12_RUNSTDBY_bit(const void *const hw)
1150 {
1151 SUPC_CRITICAL_SECTION_ENTER();
1152 ((Supc *)hw)->BOD12.reg |= SUPC_BOD12_RUNSTDBY;
1153 SUPC_CRITICAL_SECTION_LEAVE();
1154 }
1155
hri_supc_get_BOD12_RUNSTDBY_bit(const void * const hw)1156 static inline bool hri_supc_get_BOD12_RUNSTDBY_bit(const void *const hw)
1157 {
1158 uint32_t tmp;
1159 tmp = ((Supc *)hw)->BOD12.reg;
1160 tmp = (tmp & SUPC_BOD12_RUNSTDBY) >> SUPC_BOD12_RUNSTDBY_Pos;
1161 return (bool)tmp;
1162 }
1163
hri_supc_write_BOD12_RUNSTDBY_bit(const void * const hw,bool value)1164 static inline void hri_supc_write_BOD12_RUNSTDBY_bit(const void *const hw, bool value)
1165 {
1166 uint32_t tmp;
1167 SUPC_CRITICAL_SECTION_ENTER();
1168 tmp = ((Supc *)hw)->BOD12.reg;
1169 tmp &= ~SUPC_BOD12_RUNSTDBY;
1170 tmp |= value << SUPC_BOD12_RUNSTDBY_Pos;
1171 ((Supc *)hw)->BOD12.reg = tmp;
1172 SUPC_CRITICAL_SECTION_LEAVE();
1173 }
1174
hri_supc_clear_BOD12_RUNSTDBY_bit(const void * const hw)1175 static inline void hri_supc_clear_BOD12_RUNSTDBY_bit(const void *const hw)
1176 {
1177 SUPC_CRITICAL_SECTION_ENTER();
1178 ((Supc *)hw)->BOD12.reg &= ~SUPC_BOD12_RUNSTDBY;
1179 SUPC_CRITICAL_SECTION_LEAVE();
1180 }
1181
hri_supc_toggle_BOD12_RUNSTDBY_bit(const void * const hw)1182 static inline void hri_supc_toggle_BOD12_RUNSTDBY_bit(const void *const hw)
1183 {
1184 SUPC_CRITICAL_SECTION_ENTER();
1185 ((Supc *)hw)->BOD12.reg ^= SUPC_BOD12_RUNSTDBY;
1186 SUPC_CRITICAL_SECTION_LEAVE();
1187 }
1188
hri_supc_set_BOD12_ACTCFG_bit(const void * const hw)1189 static inline void hri_supc_set_BOD12_ACTCFG_bit(const void *const hw)
1190 {
1191 SUPC_CRITICAL_SECTION_ENTER();
1192 ((Supc *)hw)->BOD12.reg |= SUPC_BOD12_ACTCFG;
1193 SUPC_CRITICAL_SECTION_LEAVE();
1194 }
1195
hri_supc_get_BOD12_ACTCFG_bit(const void * const hw)1196 static inline bool hri_supc_get_BOD12_ACTCFG_bit(const void *const hw)
1197 {
1198 uint32_t tmp;
1199 tmp = ((Supc *)hw)->BOD12.reg;
1200 tmp = (tmp & SUPC_BOD12_ACTCFG) >> SUPC_BOD12_ACTCFG_Pos;
1201 return (bool)tmp;
1202 }
1203
hri_supc_write_BOD12_ACTCFG_bit(const void * const hw,bool value)1204 static inline void hri_supc_write_BOD12_ACTCFG_bit(const void *const hw, bool value)
1205 {
1206 uint32_t tmp;
1207 SUPC_CRITICAL_SECTION_ENTER();
1208 tmp = ((Supc *)hw)->BOD12.reg;
1209 tmp &= ~SUPC_BOD12_ACTCFG;
1210 tmp |= value << SUPC_BOD12_ACTCFG_Pos;
1211 ((Supc *)hw)->BOD12.reg = tmp;
1212 SUPC_CRITICAL_SECTION_LEAVE();
1213 }
1214
hri_supc_clear_BOD12_ACTCFG_bit(const void * const hw)1215 static inline void hri_supc_clear_BOD12_ACTCFG_bit(const void *const hw)
1216 {
1217 SUPC_CRITICAL_SECTION_ENTER();
1218 ((Supc *)hw)->BOD12.reg &= ~SUPC_BOD12_ACTCFG;
1219 SUPC_CRITICAL_SECTION_LEAVE();
1220 }
1221
hri_supc_toggle_BOD12_ACTCFG_bit(const void * const hw)1222 static inline void hri_supc_toggle_BOD12_ACTCFG_bit(const void *const hw)
1223 {
1224 SUPC_CRITICAL_SECTION_ENTER();
1225 ((Supc *)hw)->BOD12.reg ^= SUPC_BOD12_ACTCFG;
1226 SUPC_CRITICAL_SECTION_LEAVE();
1227 }
1228
hri_supc_set_BOD12_ACTION_bf(const void * const hw,hri_supc_bod12_reg_t mask)1229 static inline void hri_supc_set_BOD12_ACTION_bf(const void *const hw, hri_supc_bod12_reg_t mask)
1230 {
1231 SUPC_CRITICAL_SECTION_ENTER();
1232 ((Supc *)hw)->BOD12.reg |= SUPC_BOD12_ACTION(mask);
1233 SUPC_CRITICAL_SECTION_LEAVE();
1234 }
1235
hri_supc_get_BOD12_ACTION_bf(const void * const hw,hri_supc_bod12_reg_t mask)1236 static inline hri_supc_bod12_reg_t hri_supc_get_BOD12_ACTION_bf(const void *const hw, hri_supc_bod12_reg_t mask)
1237 {
1238 uint32_t tmp;
1239 tmp = ((Supc *)hw)->BOD12.reg;
1240 tmp = (tmp & SUPC_BOD12_ACTION(mask)) >> SUPC_BOD12_ACTION_Pos;
1241 return tmp;
1242 }
1243
hri_supc_write_BOD12_ACTION_bf(const void * const hw,hri_supc_bod12_reg_t data)1244 static inline void hri_supc_write_BOD12_ACTION_bf(const void *const hw, hri_supc_bod12_reg_t data)
1245 {
1246 uint32_t tmp;
1247 SUPC_CRITICAL_SECTION_ENTER();
1248 tmp = ((Supc *)hw)->BOD12.reg;
1249 tmp &= ~SUPC_BOD12_ACTION_Msk;
1250 tmp |= SUPC_BOD12_ACTION(data);
1251 ((Supc *)hw)->BOD12.reg = tmp;
1252 SUPC_CRITICAL_SECTION_LEAVE();
1253 }
1254
hri_supc_clear_BOD12_ACTION_bf(const void * const hw,hri_supc_bod12_reg_t mask)1255 static inline void hri_supc_clear_BOD12_ACTION_bf(const void *const hw, hri_supc_bod12_reg_t mask)
1256 {
1257 SUPC_CRITICAL_SECTION_ENTER();
1258 ((Supc *)hw)->BOD12.reg &= ~SUPC_BOD12_ACTION(mask);
1259 SUPC_CRITICAL_SECTION_LEAVE();
1260 }
1261
hri_supc_toggle_BOD12_ACTION_bf(const void * const hw,hri_supc_bod12_reg_t mask)1262 static inline void hri_supc_toggle_BOD12_ACTION_bf(const void *const hw, hri_supc_bod12_reg_t mask)
1263 {
1264 SUPC_CRITICAL_SECTION_ENTER();
1265 ((Supc *)hw)->BOD12.reg ^= SUPC_BOD12_ACTION(mask);
1266 SUPC_CRITICAL_SECTION_LEAVE();
1267 }
1268
hri_supc_read_BOD12_ACTION_bf(const void * const hw)1269 static inline hri_supc_bod12_reg_t hri_supc_read_BOD12_ACTION_bf(const void *const hw)
1270 {
1271 uint32_t tmp;
1272 tmp = ((Supc *)hw)->BOD12.reg;
1273 tmp = (tmp & SUPC_BOD12_ACTION_Msk) >> SUPC_BOD12_ACTION_Pos;
1274 return tmp;
1275 }
1276
hri_supc_set_BOD12_PSEL_bf(const void * const hw,hri_supc_bod12_reg_t mask)1277 static inline void hri_supc_set_BOD12_PSEL_bf(const void *const hw, hri_supc_bod12_reg_t mask)
1278 {
1279 SUPC_CRITICAL_SECTION_ENTER();
1280 ((Supc *)hw)->BOD12.reg |= SUPC_BOD12_PSEL(mask);
1281 SUPC_CRITICAL_SECTION_LEAVE();
1282 }
1283
hri_supc_get_BOD12_PSEL_bf(const void * const hw,hri_supc_bod12_reg_t mask)1284 static inline hri_supc_bod12_reg_t hri_supc_get_BOD12_PSEL_bf(const void *const hw, hri_supc_bod12_reg_t mask)
1285 {
1286 uint32_t tmp;
1287 tmp = ((Supc *)hw)->BOD12.reg;
1288 tmp = (tmp & SUPC_BOD12_PSEL(mask)) >> SUPC_BOD12_PSEL_Pos;
1289 return tmp;
1290 }
1291
hri_supc_write_BOD12_PSEL_bf(const void * const hw,hri_supc_bod12_reg_t data)1292 static inline void hri_supc_write_BOD12_PSEL_bf(const void *const hw, hri_supc_bod12_reg_t data)
1293 {
1294 uint32_t tmp;
1295 SUPC_CRITICAL_SECTION_ENTER();
1296 tmp = ((Supc *)hw)->BOD12.reg;
1297 tmp &= ~SUPC_BOD12_PSEL_Msk;
1298 tmp |= SUPC_BOD12_PSEL(data);
1299 ((Supc *)hw)->BOD12.reg = tmp;
1300 SUPC_CRITICAL_SECTION_LEAVE();
1301 }
1302
hri_supc_clear_BOD12_PSEL_bf(const void * const hw,hri_supc_bod12_reg_t mask)1303 static inline void hri_supc_clear_BOD12_PSEL_bf(const void *const hw, hri_supc_bod12_reg_t mask)
1304 {
1305 SUPC_CRITICAL_SECTION_ENTER();
1306 ((Supc *)hw)->BOD12.reg &= ~SUPC_BOD12_PSEL(mask);
1307 SUPC_CRITICAL_SECTION_LEAVE();
1308 }
1309
hri_supc_toggle_BOD12_PSEL_bf(const void * const hw,hri_supc_bod12_reg_t mask)1310 static inline void hri_supc_toggle_BOD12_PSEL_bf(const void *const hw, hri_supc_bod12_reg_t mask)
1311 {
1312 SUPC_CRITICAL_SECTION_ENTER();
1313 ((Supc *)hw)->BOD12.reg ^= SUPC_BOD12_PSEL(mask);
1314 SUPC_CRITICAL_SECTION_LEAVE();
1315 }
1316
hri_supc_read_BOD12_PSEL_bf(const void * const hw)1317 static inline hri_supc_bod12_reg_t hri_supc_read_BOD12_PSEL_bf(const void *const hw)
1318 {
1319 uint32_t tmp;
1320 tmp = ((Supc *)hw)->BOD12.reg;
1321 tmp = (tmp & SUPC_BOD12_PSEL_Msk) >> SUPC_BOD12_PSEL_Pos;
1322 return tmp;
1323 }
1324
hri_supc_set_BOD12_LEVEL_bf(const void * const hw,hri_supc_bod12_reg_t mask)1325 static inline void hri_supc_set_BOD12_LEVEL_bf(const void *const hw, hri_supc_bod12_reg_t mask)
1326 {
1327 SUPC_CRITICAL_SECTION_ENTER();
1328 ((Supc *)hw)->BOD12.reg |= SUPC_BOD12_LEVEL(mask);
1329 SUPC_CRITICAL_SECTION_LEAVE();
1330 }
1331
hri_supc_get_BOD12_LEVEL_bf(const void * const hw,hri_supc_bod12_reg_t mask)1332 static inline hri_supc_bod12_reg_t hri_supc_get_BOD12_LEVEL_bf(const void *const hw, hri_supc_bod12_reg_t mask)
1333 {
1334 uint32_t tmp;
1335 tmp = ((Supc *)hw)->BOD12.reg;
1336 tmp = (tmp & SUPC_BOD12_LEVEL(mask)) >> SUPC_BOD12_LEVEL_Pos;
1337 return tmp;
1338 }
1339
hri_supc_write_BOD12_LEVEL_bf(const void * const hw,hri_supc_bod12_reg_t data)1340 static inline void hri_supc_write_BOD12_LEVEL_bf(const void *const hw, hri_supc_bod12_reg_t data)
1341 {
1342 uint32_t tmp;
1343 SUPC_CRITICAL_SECTION_ENTER();
1344 tmp = ((Supc *)hw)->BOD12.reg;
1345 tmp &= ~SUPC_BOD12_LEVEL_Msk;
1346 tmp |= SUPC_BOD12_LEVEL(data);
1347 ((Supc *)hw)->BOD12.reg = tmp;
1348 SUPC_CRITICAL_SECTION_LEAVE();
1349 }
1350
hri_supc_clear_BOD12_LEVEL_bf(const void * const hw,hri_supc_bod12_reg_t mask)1351 static inline void hri_supc_clear_BOD12_LEVEL_bf(const void *const hw, hri_supc_bod12_reg_t mask)
1352 {
1353 SUPC_CRITICAL_SECTION_ENTER();
1354 ((Supc *)hw)->BOD12.reg &= ~SUPC_BOD12_LEVEL(mask);
1355 SUPC_CRITICAL_SECTION_LEAVE();
1356 }
1357
hri_supc_toggle_BOD12_LEVEL_bf(const void * const hw,hri_supc_bod12_reg_t mask)1358 static inline void hri_supc_toggle_BOD12_LEVEL_bf(const void *const hw, hri_supc_bod12_reg_t mask)
1359 {
1360 SUPC_CRITICAL_SECTION_ENTER();
1361 ((Supc *)hw)->BOD12.reg ^= SUPC_BOD12_LEVEL(mask);
1362 SUPC_CRITICAL_SECTION_LEAVE();
1363 }
1364
hri_supc_read_BOD12_LEVEL_bf(const void * const hw)1365 static inline hri_supc_bod12_reg_t hri_supc_read_BOD12_LEVEL_bf(const void *const hw)
1366 {
1367 uint32_t tmp;
1368 tmp = ((Supc *)hw)->BOD12.reg;
1369 tmp = (tmp & SUPC_BOD12_LEVEL_Msk) >> SUPC_BOD12_LEVEL_Pos;
1370 return tmp;
1371 }
1372
hri_supc_set_BOD12_reg(const void * const hw,hri_supc_bod12_reg_t mask)1373 static inline void hri_supc_set_BOD12_reg(const void *const hw, hri_supc_bod12_reg_t mask)
1374 {
1375 SUPC_CRITICAL_SECTION_ENTER();
1376 ((Supc *)hw)->BOD12.reg |= mask;
1377 SUPC_CRITICAL_SECTION_LEAVE();
1378 }
1379
hri_supc_get_BOD12_reg(const void * const hw,hri_supc_bod12_reg_t mask)1380 static inline hri_supc_bod12_reg_t hri_supc_get_BOD12_reg(const void *const hw, hri_supc_bod12_reg_t mask)
1381 {
1382 uint32_t tmp;
1383 tmp = ((Supc *)hw)->BOD12.reg;
1384 tmp &= mask;
1385 return tmp;
1386 }
1387
hri_supc_write_BOD12_reg(const void * const hw,hri_supc_bod12_reg_t data)1388 static inline void hri_supc_write_BOD12_reg(const void *const hw, hri_supc_bod12_reg_t data)
1389 {
1390 SUPC_CRITICAL_SECTION_ENTER();
1391 ((Supc *)hw)->BOD12.reg = data;
1392 SUPC_CRITICAL_SECTION_LEAVE();
1393 }
1394
hri_supc_clear_BOD12_reg(const void * const hw,hri_supc_bod12_reg_t mask)1395 static inline void hri_supc_clear_BOD12_reg(const void *const hw, hri_supc_bod12_reg_t mask)
1396 {
1397 SUPC_CRITICAL_SECTION_ENTER();
1398 ((Supc *)hw)->BOD12.reg &= ~mask;
1399 SUPC_CRITICAL_SECTION_LEAVE();
1400 }
1401
hri_supc_toggle_BOD12_reg(const void * const hw,hri_supc_bod12_reg_t mask)1402 static inline void hri_supc_toggle_BOD12_reg(const void *const hw, hri_supc_bod12_reg_t mask)
1403 {
1404 SUPC_CRITICAL_SECTION_ENTER();
1405 ((Supc *)hw)->BOD12.reg ^= mask;
1406 SUPC_CRITICAL_SECTION_LEAVE();
1407 }
1408
hri_supc_read_BOD12_reg(const void * const hw)1409 static inline hri_supc_bod12_reg_t hri_supc_read_BOD12_reg(const void *const hw)
1410 {
1411 return ((Supc *)hw)->BOD12.reg;
1412 }
1413
hri_supc_set_VREG_ENABLE_bit(const void * const hw)1414 static inline void hri_supc_set_VREG_ENABLE_bit(const void *const hw)
1415 {
1416 SUPC_CRITICAL_SECTION_ENTER();
1417 ((Supc *)hw)->VREG.reg |= SUPC_VREG_ENABLE;
1418 SUPC_CRITICAL_SECTION_LEAVE();
1419 }
1420
hri_supc_get_VREG_ENABLE_bit(const void * const hw)1421 static inline bool hri_supc_get_VREG_ENABLE_bit(const void *const hw)
1422 {
1423 uint32_t tmp;
1424 tmp = ((Supc *)hw)->VREG.reg;
1425 tmp = (tmp & SUPC_VREG_ENABLE) >> SUPC_VREG_ENABLE_Pos;
1426 return (bool)tmp;
1427 }
1428
hri_supc_write_VREG_ENABLE_bit(const void * const hw,bool value)1429 static inline void hri_supc_write_VREG_ENABLE_bit(const void *const hw, bool value)
1430 {
1431 uint32_t tmp;
1432 SUPC_CRITICAL_SECTION_ENTER();
1433 tmp = ((Supc *)hw)->VREG.reg;
1434 tmp &= ~SUPC_VREG_ENABLE;
1435 tmp |= value << SUPC_VREG_ENABLE_Pos;
1436 ((Supc *)hw)->VREG.reg = tmp;
1437 SUPC_CRITICAL_SECTION_LEAVE();
1438 }
1439
hri_supc_clear_VREG_ENABLE_bit(const void * const hw)1440 static inline void hri_supc_clear_VREG_ENABLE_bit(const void *const hw)
1441 {
1442 SUPC_CRITICAL_SECTION_ENTER();
1443 ((Supc *)hw)->VREG.reg &= ~SUPC_VREG_ENABLE;
1444 SUPC_CRITICAL_SECTION_LEAVE();
1445 }
1446
hri_supc_toggle_VREG_ENABLE_bit(const void * const hw)1447 static inline void hri_supc_toggle_VREG_ENABLE_bit(const void *const hw)
1448 {
1449 SUPC_CRITICAL_SECTION_ENTER();
1450 ((Supc *)hw)->VREG.reg ^= SUPC_VREG_ENABLE;
1451 SUPC_CRITICAL_SECTION_LEAVE();
1452 }
1453
hri_supc_set_VREG_STDBYPL0_bit(const void * const hw)1454 static inline void hri_supc_set_VREG_STDBYPL0_bit(const void *const hw)
1455 {
1456 SUPC_CRITICAL_SECTION_ENTER();
1457 ((Supc *)hw)->VREG.reg |= SUPC_VREG_STDBYPL0;
1458 SUPC_CRITICAL_SECTION_LEAVE();
1459 }
1460
hri_supc_get_VREG_STDBYPL0_bit(const void * const hw)1461 static inline bool hri_supc_get_VREG_STDBYPL0_bit(const void *const hw)
1462 {
1463 uint32_t tmp;
1464 tmp = ((Supc *)hw)->VREG.reg;
1465 tmp = (tmp & SUPC_VREG_STDBYPL0) >> SUPC_VREG_STDBYPL0_Pos;
1466 return (bool)tmp;
1467 }
1468
hri_supc_write_VREG_STDBYPL0_bit(const void * const hw,bool value)1469 static inline void hri_supc_write_VREG_STDBYPL0_bit(const void *const hw, bool value)
1470 {
1471 uint32_t tmp;
1472 SUPC_CRITICAL_SECTION_ENTER();
1473 tmp = ((Supc *)hw)->VREG.reg;
1474 tmp &= ~SUPC_VREG_STDBYPL0;
1475 tmp |= value << SUPC_VREG_STDBYPL0_Pos;
1476 ((Supc *)hw)->VREG.reg = tmp;
1477 SUPC_CRITICAL_SECTION_LEAVE();
1478 }
1479
hri_supc_clear_VREG_STDBYPL0_bit(const void * const hw)1480 static inline void hri_supc_clear_VREG_STDBYPL0_bit(const void *const hw)
1481 {
1482 SUPC_CRITICAL_SECTION_ENTER();
1483 ((Supc *)hw)->VREG.reg &= ~SUPC_VREG_STDBYPL0;
1484 SUPC_CRITICAL_SECTION_LEAVE();
1485 }
1486
hri_supc_toggle_VREG_STDBYPL0_bit(const void * const hw)1487 static inline void hri_supc_toggle_VREG_STDBYPL0_bit(const void *const hw)
1488 {
1489 SUPC_CRITICAL_SECTION_ENTER();
1490 ((Supc *)hw)->VREG.reg ^= SUPC_VREG_STDBYPL0;
1491 SUPC_CRITICAL_SECTION_LEAVE();
1492 }
1493
hri_supc_set_VREG_RUNSTDBY_bit(const void * const hw)1494 static inline void hri_supc_set_VREG_RUNSTDBY_bit(const void *const hw)
1495 {
1496 SUPC_CRITICAL_SECTION_ENTER();
1497 ((Supc *)hw)->VREG.reg |= SUPC_VREG_RUNSTDBY;
1498 SUPC_CRITICAL_SECTION_LEAVE();
1499 }
1500
hri_supc_get_VREG_RUNSTDBY_bit(const void * const hw)1501 static inline bool hri_supc_get_VREG_RUNSTDBY_bit(const void *const hw)
1502 {
1503 uint32_t tmp;
1504 tmp = ((Supc *)hw)->VREG.reg;
1505 tmp = (tmp & SUPC_VREG_RUNSTDBY) >> SUPC_VREG_RUNSTDBY_Pos;
1506 return (bool)tmp;
1507 }
1508
hri_supc_write_VREG_RUNSTDBY_bit(const void * const hw,bool value)1509 static inline void hri_supc_write_VREG_RUNSTDBY_bit(const void *const hw, bool value)
1510 {
1511 uint32_t tmp;
1512 SUPC_CRITICAL_SECTION_ENTER();
1513 tmp = ((Supc *)hw)->VREG.reg;
1514 tmp &= ~SUPC_VREG_RUNSTDBY;
1515 tmp |= value << SUPC_VREG_RUNSTDBY_Pos;
1516 ((Supc *)hw)->VREG.reg = tmp;
1517 SUPC_CRITICAL_SECTION_LEAVE();
1518 }
1519
hri_supc_clear_VREG_RUNSTDBY_bit(const void * const hw)1520 static inline void hri_supc_clear_VREG_RUNSTDBY_bit(const void *const hw)
1521 {
1522 SUPC_CRITICAL_SECTION_ENTER();
1523 ((Supc *)hw)->VREG.reg &= ~SUPC_VREG_RUNSTDBY;
1524 SUPC_CRITICAL_SECTION_LEAVE();
1525 }
1526
hri_supc_toggle_VREG_RUNSTDBY_bit(const void * const hw)1527 static inline void hri_supc_toggle_VREG_RUNSTDBY_bit(const void *const hw)
1528 {
1529 SUPC_CRITICAL_SECTION_ENTER();
1530 ((Supc *)hw)->VREG.reg ^= SUPC_VREG_RUNSTDBY;
1531 SUPC_CRITICAL_SECTION_LEAVE();
1532 }
1533
hri_supc_set_VREG_LPEFF_bit(const void * const hw)1534 static inline void hri_supc_set_VREG_LPEFF_bit(const void *const hw)
1535 {
1536 SUPC_CRITICAL_SECTION_ENTER();
1537 ((Supc *)hw)->VREG.reg |= SUPC_VREG_LPEFF;
1538 SUPC_CRITICAL_SECTION_LEAVE();
1539 }
1540
hri_supc_get_VREG_LPEFF_bit(const void * const hw)1541 static inline bool hri_supc_get_VREG_LPEFF_bit(const void *const hw)
1542 {
1543 uint32_t tmp;
1544 tmp = ((Supc *)hw)->VREG.reg;
1545 tmp = (tmp & SUPC_VREG_LPEFF) >> SUPC_VREG_LPEFF_Pos;
1546 return (bool)tmp;
1547 }
1548
hri_supc_write_VREG_LPEFF_bit(const void * const hw,bool value)1549 static inline void hri_supc_write_VREG_LPEFF_bit(const void *const hw, bool value)
1550 {
1551 uint32_t tmp;
1552 SUPC_CRITICAL_SECTION_ENTER();
1553 tmp = ((Supc *)hw)->VREG.reg;
1554 tmp &= ~SUPC_VREG_LPEFF;
1555 tmp |= value << SUPC_VREG_LPEFF_Pos;
1556 ((Supc *)hw)->VREG.reg = tmp;
1557 SUPC_CRITICAL_SECTION_LEAVE();
1558 }
1559
hri_supc_clear_VREG_LPEFF_bit(const void * const hw)1560 static inline void hri_supc_clear_VREG_LPEFF_bit(const void *const hw)
1561 {
1562 SUPC_CRITICAL_SECTION_ENTER();
1563 ((Supc *)hw)->VREG.reg &= ~SUPC_VREG_LPEFF;
1564 SUPC_CRITICAL_SECTION_LEAVE();
1565 }
1566
hri_supc_toggle_VREG_LPEFF_bit(const void * const hw)1567 static inline void hri_supc_toggle_VREG_LPEFF_bit(const void *const hw)
1568 {
1569 SUPC_CRITICAL_SECTION_ENTER();
1570 ((Supc *)hw)->VREG.reg ^= SUPC_VREG_LPEFF;
1571 SUPC_CRITICAL_SECTION_LEAVE();
1572 }
1573
hri_supc_set_VREG_SEL_bf(const void * const hw,hri_supc_vreg_reg_t mask)1574 static inline void hri_supc_set_VREG_SEL_bf(const void *const hw, hri_supc_vreg_reg_t mask)
1575 {
1576 SUPC_CRITICAL_SECTION_ENTER();
1577 ((Supc *)hw)->VREG.reg |= SUPC_VREG_SEL(mask);
1578 SUPC_CRITICAL_SECTION_LEAVE();
1579 }
1580
hri_supc_get_VREG_SEL_bf(const void * const hw,hri_supc_vreg_reg_t mask)1581 static inline hri_supc_vreg_reg_t hri_supc_get_VREG_SEL_bf(const void *const hw, hri_supc_vreg_reg_t mask)
1582 {
1583 uint32_t tmp;
1584 tmp = ((Supc *)hw)->VREG.reg;
1585 tmp = (tmp & SUPC_VREG_SEL(mask)) >> SUPC_VREG_SEL_Pos;
1586 return tmp;
1587 }
1588
hri_supc_write_VREG_SEL_bf(const void * const hw,hri_supc_vreg_reg_t data)1589 static inline void hri_supc_write_VREG_SEL_bf(const void *const hw, hri_supc_vreg_reg_t data)
1590 {
1591 uint32_t tmp;
1592 SUPC_CRITICAL_SECTION_ENTER();
1593 tmp = ((Supc *)hw)->VREG.reg;
1594 tmp &= ~SUPC_VREG_SEL_Msk;
1595 tmp |= SUPC_VREG_SEL(data);
1596 ((Supc *)hw)->VREG.reg = tmp;
1597 SUPC_CRITICAL_SECTION_LEAVE();
1598 }
1599
hri_supc_clear_VREG_SEL_bf(const void * const hw,hri_supc_vreg_reg_t mask)1600 static inline void hri_supc_clear_VREG_SEL_bf(const void *const hw, hri_supc_vreg_reg_t mask)
1601 {
1602 SUPC_CRITICAL_SECTION_ENTER();
1603 ((Supc *)hw)->VREG.reg &= ~SUPC_VREG_SEL(mask);
1604 SUPC_CRITICAL_SECTION_LEAVE();
1605 }
1606
hri_supc_toggle_VREG_SEL_bf(const void * const hw,hri_supc_vreg_reg_t mask)1607 static inline void hri_supc_toggle_VREG_SEL_bf(const void *const hw, hri_supc_vreg_reg_t mask)
1608 {
1609 SUPC_CRITICAL_SECTION_ENTER();
1610 ((Supc *)hw)->VREG.reg ^= SUPC_VREG_SEL(mask);
1611 SUPC_CRITICAL_SECTION_LEAVE();
1612 }
1613
hri_supc_read_VREG_SEL_bf(const void * const hw)1614 static inline hri_supc_vreg_reg_t hri_supc_read_VREG_SEL_bf(const void *const hw)
1615 {
1616 uint32_t tmp;
1617 tmp = ((Supc *)hw)->VREG.reg;
1618 tmp = (tmp & SUPC_VREG_SEL_Msk) >> SUPC_VREG_SEL_Pos;
1619 return tmp;
1620 }
1621
hri_supc_set_VREG_VSVSTEP_bf(const void * const hw,hri_supc_vreg_reg_t mask)1622 static inline void hri_supc_set_VREG_VSVSTEP_bf(const void *const hw, hri_supc_vreg_reg_t mask)
1623 {
1624 SUPC_CRITICAL_SECTION_ENTER();
1625 ((Supc *)hw)->VREG.reg |= SUPC_VREG_VSVSTEP(mask);
1626 SUPC_CRITICAL_SECTION_LEAVE();
1627 }
1628
hri_supc_get_VREG_VSVSTEP_bf(const void * const hw,hri_supc_vreg_reg_t mask)1629 static inline hri_supc_vreg_reg_t hri_supc_get_VREG_VSVSTEP_bf(const void *const hw, hri_supc_vreg_reg_t mask)
1630 {
1631 uint32_t tmp;
1632 tmp = ((Supc *)hw)->VREG.reg;
1633 tmp = (tmp & SUPC_VREG_VSVSTEP(mask)) >> SUPC_VREG_VSVSTEP_Pos;
1634 return tmp;
1635 }
1636
hri_supc_write_VREG_VSVSTEP_bf(const void * const hw,hri_supc_vreg_reg_t data)1637 static inline void hri_supc_write_VREG_VSVSTEP_bf(const void *const hw, hri_supc_vreg_reg_t data)
1638 {
1639 uint32_t tmp;
1640 SUPC_CRITICAL_SECTION_ENTER();
1641 tmp = ((Supc *)hw)->VREG.reg;
1642 tmp &= ~SUPC_VREG_VSVSTEP_Msk;
1643 tmp |= SUPC_VREG_VSVSTEP(data);
1644 ((Supc *)hw)->VREG.reg = tmp;
1645 SUPC_CRITICAL_SECTION_LEAVE();
1646 }
1647
hri_supc_clear_VREG_VSVSTEP_bf(const void * const hw,hri_supc_vreg_reg_t mask)1648 static inline void hri_supc_clear_VREG_VSVSTEP_bf(const void *const hw, hri_supc_vreg_reg_t mask)
1649 {
1650 SUPC_CRITICAL_SECTION_ENTER();
1651 ((Supc *)hw)->VREG.reg &= ~SUPC_VREG_VSVSTEP(mask);
1652 SUPC_CRITICAL_SECTION_LEAVE();
1653 }
1654
hri_supc_toggle_VREG_VSVSTEP_bf(const void * const hw,hri_supc_vreg_reg_t mask)1655 static inline void hri_supc_toggle_VREG_VSVSTEP_bf(const void *const hw, hri_supc_vreg_reg_t mask)
1656 {
1657 SUPC_CRITICAL_SECTION_ENTER();
1658 ((Supc *)hw)->VREG.reg ^= SUPC_VREG_VSVSTEP(mask);
1659 SUPC_CRITICAL_SECTION_LEAVE();
1660 }
1661
hri_supc_read_VREG_VSVSTEP_bf(const void * const hw)1662 static inline hri_supc_vreg_reg_t hri_supc_read_VREG_VSVSTEP_bf(const void *const hw)
1663 {
1664 uint32_t tmp;
1665 tmp = ((Supc *)hw)->VREG.reg;
1666 tmp = (tmp & SUPC_VREG_VSVSTEP_Msk) >> SUPC_VREG_VSVSTEP_Pos;
1667 return tmp;
1668 }
1669
hri_supc_set_VREG_VSPER_bf(const void * const hw,hri_supc_vreg_reg_t mask)1670 static inline void hri_supc_set_VREG_VSPER_bf(const void *const hw, hri_supc_vreg_reg_t mask)
1671 {
1672 SUPC_CRITICAL_SECTION_ENTER();
1673 ((Supc *)hw)->VREG.reg |= SUPC_VREG_VSPER(mask);
1674 SUPC_CRITICAL_SECTION_LEAVE();
1675 }
1676
hri_supc_get_VREG_VSPER_bf(const void * const hw,hri_supc_vreg_reg_t mask)1677 static inline hri_supc_vreg_reg_t hri_supc_get_VREG_VSPER_bf(const void *const hw, hri_supc_vreg_reg_t mask)
1678 {
1679 uint32_t tmp;
1680 tmp = ((Supc *)hw)->VREG.reg;
1681 tmp = (tmp & SUPC_VREG_VSPER(mask)) >> SUPC_VREG_VSPER_Pos;
1682 return tmp;
1683 }
1684
hri_supc_write_VREG_VSPER_bf(const void * const hw,hri_supc_vreg_reg_t data)1685 static inline void hri_supc_write_VREG_VSPER_bf(const void *const hw, hri_supc_vreg_reg_t data)
1686 {
1687 uint32_t tmp;
1688 SUPC_CRITICAL_SECTION_ENTER();
1689 tmp = ((Supc *)hw)->VREG.reg;
1690 tmp &= ~SUPC_VREG_VSPER_Msk;
1691 tmp |= SUPC_VREG_VSPER(data);
1692 ((Supc *)hw)->VREG.reg = tmp;
1693 SUPC_CRITICAL_SECTION_LEAVE();
1694 }
1695
hri_supc_clear_VREG_VSPER_bf(const void * const hw,hri_supc_vreg_reg_t mask)1696 static inline void hri_supc_clear_VREG_VSPER_bf(const void *const hw, hri_supc_vreg_reg_t mask)
1697 {
1698 SUPC_CRITICAL_SECTION_ENTER();
1699 ((Supc *)hw)->VREG.reg &= ~SUPC_VREG_VSPER(mask);
1700 SUPC_CRITICAL_SECTION_LEAVE();
1701 }
1702
hri_supc_toggle_VREG_VSPER_bf(const void * const hw,hri_supc_vreg_reg_t mask)1703 static inline void hri_supc_toggle_VREG_VSPER_bf(const void *const hw, hri_supc_vreg_reg_t mask)
1704 {
1705 SUPC_CRITICAL_SECTION_ENTER();
1706 ((Supc *)hw)->VREG.reg ^= SUPC_VREG_VSPER(mask);
1707 SUPC_CRITICAL_SECTION_LEAVE();
1708 }
1709
hri_supc_read_VREG_VSPER_bf(const void * const hw)1710 static inline hri_supc_vreg_reg_t hri_supc_read_VREG_VSPER_bf(const void *const hw)
1711 {
1712 uint32_t tmp;
1713 tmp = ((Supc *)hw)->VREG.reg;
1714 tmp = (tmp & SUPC_VREG_VSPER_Msk) >> SUPC_VREG_VSPER_Pos;
1715 return tmp;
1716 }
1717
hri_supc_set_VREG_reg(const void * const hw,hri_supc_vreg_reg_t mask)1718 static inline void hri_supc_set_VREG_reg(const void *const hw, hri_supc_vreg_reg_t mask)
1719 {
1720 SUPC_CRITICAL_SECTION_ENTER();
1721 ((Supc *)hw)->VREG.reg |= mask;
1722 SUPC_CRITICAL_SECTION_LEAVE();
1723 }
1724
hri_supc_get_VREG_reg(const void * const hw,hri_supc_vreg_reg_t mask)1725 static inline hri_supc_vreg_reg_t hri_supc_get_VREG_reg(const void *const hw, hri_supc_vreg_reg_t mask)
1726 {
1727 uint32_t tmp;
1728 tmp = ((Supc *)hw)->VREG.reg;
1729 tmp &= mask;
1730 return tmp;
1731 }
1732
hri_supc_write_VREG_reg(const void * const hw,hri_supc_vreg_reg_t data)1733 static inline void hri_supc_write_VREG_reg(const void *const hw, hri_supc_vreg_reg_t data)
1734 {
1735 SUPC_CRITICAL_SECTION_ENTER();
1736 ((Supc *)hw)->VREG.reg = data;
1737 SUPC_CRITICAL_SECTION_LEAVE();
1738 }
1739
hri_supc_clear_VREG_reg(const void * const hw,hri_supc_vreg_reg_t mask)1740 static inline void hri_supc_clear_VREG_reg(const void *const hw, hri_supc_vreg_reg_t mask)
1741 {
1742 SUPC_CRITICAL_SECTION_ENTER();
1743 ((Supc *)hw)->VREG.reg &= ~mask;
1744 SUPC_CRITICAL_SECTION_LEAVE();
1745 }
1746
hri_supc_toggle_VREG_reg(const void * const hw,hri_supc_vreg_reg_t mask)1747 static inline void hri_supc_toggle_VREG_reg(const void *const hw, hri_supc_vreg_reg_t mask)
1748 {
1749 SUPC_CRITICAL_SECTION_ENTER();
1750 ((Supc *)hw)->VREG.reg ^= mask;
1751 SUPC_CRITICAL_SECTION_LEAVE();
1752 }
1753
hri_supc_read_VREG_reg(const void * const hw)1754 static inline hri_supc_vreg_reg_t hri_supc_read_VREG_reg(const void *const hw)
1755 {
1756 return ((Supc *)hw)->VREG.reg;
1757 }
1758
hri_supc_set_VREF_TSEN_bit(const void * const hw)1759 static inline void hri_supc_set_VREF_TSEN_bit(const void *const hw)
1760 {
1761 SUPC_CRITICAL_SECTION_ENTER();
1762 ((Supc *)hw)->VREF.reg |= SUPC_VREF_TSEN;
1763 SUPC_CRITICAL_SECTION_LEAVE();
1764 }
1765
hri_supc_get_VREF_TSEN_bit(const void * const hw)1766 static inline bool hri_supc_get_VREF_TSEN_bit(const void *const hw)
1767 {
1768 uint32_t tmp;
1769 tmp = ((Supc *)hw)->VREF.reg;
1770 tmp = (tmp & SUPC_VREF_TSEN) >> SUPC_VREF_TSEN_Pos;
1771 return (bool)tmp;
1772 }
1773
hri_supc_write_VREF_TSEN_bit(const void * const hw,bool value)1774 static inline void hri_supc_write_VREF_TSEN_bit(const void *const hw, bool value)
1775 {
1776 uint32_t tmp;
1777 SUPC_CRITICAL_SECTION_ENTER();
1778 tmp = ((Supc *)hw)->VREF.reg;
1779 tmp &= ~SUPC_VREF_TSEN;
1780 tmp |= value << SUPC_VREF_TSEN_Pos;
1781 ((Supc *)hw)->VREF.reg = tmp;
1782 SUPC_CRITICAL_SECTION_LEAVE();
1783 }
1784
hri_supc_clear_VREF_TSEN_bit(const void * const hw)1785 static inline void hri_supc_clear_VREF_TSEN_bit(const void *const hw)
1786 {
1787 SUPC_CRITICAL_SECTION_ENTER();
1788 ((Supc *)hw)->VREF.reg &= ~SUPC_VREF_TSEN;
1789 SUPC_CRITICAL_SECTION_LEAVE();
1790 }
1791
hri_supc_toggle_VREF_TSEN_bit(const void * const hw)1792 static inline void hri_supc_toggle_VREF_TSEN_bit(const void *const hw)
1793 {
1794 SUPC_CRITICAL_SECTION_ENTER();
1795 ((Supc *)hw)->VREF.reg ^= SUPC_VREF_TSEN;
1796 SUPC_CRITICAL_SECTION_LEAVE();
1797 }
1798
hri_supc_set_VREF_VREFOE_bit(const void * const hw)1799 static inline void hri_supc_set_VREF_VREFOE_bit(const void *const hw)
1800 {
1801 SUPC_CRITICAL_SECTION_ENTER();
1802 ((Supc *)hw)->VREF.reg |= SUPC_VREF_VREFOE;
1803 SUPC_CRITICAL_SECTION_LEAVE();
1804 }
1805
hri_supc_get_VREF_VREFOE_bit(const void * const hw)1806 static inline bool hri_supc_get_VREF_VREFOE_bit(const void *const hw)
1807 {
1808 uint32_t tmp;
1809 tmp = ((Supc *)hw)->VREF.reg;
1810 tmp = (tmp & SUPC_VREF_VREFOE) >> SUPC_VREF_VREFOE_Pos;
1811 return (bool)tmp;
1812 }
1813
hri_supc_write_VREF_VREFOE_bit(const void * const hw,bool value)1814 static inline void hri_supc_write_VREF_VREFOE_bit(const void *const hw, bool value)
1815 {
1816 uint32_t tmp;
1817 SUPC_CRITICAL_SECTION_ENTER();
1818 tmp = ((Supc *)hw)->VREF.reg;
1819 tmp &= ~SUPC_VREF_VREFOE;
1820 tmp |= value << SUPC_VREF_VREFOE_Pos;
1821 ((Supc *)hw)->VREF.reg = tmp;
1822 SUPC_CRITICAL_SECTION_LEAVE();
1823 }
1824
hri_supc_clear_VREF_VREFOE_bit(const void * const hw)1825 static inline void hri_supc_clear_VREF_VREFOE_bit(const void *const hw)
1826 {
1827 SUPC_CRITICAL_SECTION_ENTER();
1828 ((Supc *)hw)->VREF.reg &= ~SUPC_VREF_VREFOE;
1829 SUPC_CRITICAL_SECTION_LEAVE();
1830 }
1831
hri_supc_toggle_VREF_VREFOE_bit(const void * const hw)1832 static inline void hri_supc_toggle_VREF_VREFOE_bit(const void *const hw)
1833 {
1834 SUPC_CRITICAL_SECTION_ENTER();
1835 ((Supc *)hw)->VREF.reg ^= SUPC_VREF_VREFOE;
1836 SUPC_CRITICAL_SECTION_LEAVE();
1837 }
1838
hri_supc_set_VREF_RUNSTDBY_bit(const void * const hw)1839 static inline void hri_supc_set_VREF_RUNSTDBY_bit(const void *const hw)
1840 {
1841 SUPC_CRITICAL_SECTION_ENTER();
1842 ((Supc *)hw)->VREF.reg |= SUPC_VREF_RUNSTDBY;
1843 SUPC_CRITICAL_SECTION_LEAVE();
1844 }
1845
hri_supc_get_VREF_RUNSTDBY_bit(const void * const hw)1846 static inline bool hri_supc_get_VREF_RUNSTDBY_bit(const void *const hw)
1847 {
1848 uint32_t tmp;
1849 tmp = ((Supc *)hw)->VREF.reg;
1850 tmp = (tmp & SUPC_VREF_RUNSTDBY) >> SUPC_VREF_RUNSTDBY_Pos;
1851 return (bool)tmp;
1852 }
1853
hri_supc_write_VREF_RUNSTDBY_bit(const void * const hw,bool value)1854 static inline void hri_supc_write_VREF_RUNSTDBY_bit(const void *const hw, bool value)
1855 {
1856 uint32_t tmp;
1857 SUPC_CRITICAL_SECTION_ENTER();
1858 tmp = ((Supc *)hw)->VREF.reg;
1859 tmp &= ~SUPC_VREF_RUNSTDBY;
1860 tmp |= value << SUPC_VREF_RUNSTDBY_Pos;
1861 ((Supc *)hw)->VREF.reg = tmp;
1862 SUPC_CRITICAL_SECTION_LEAVE();
1863 }
1864
hri_supc_clear_VREF_RUNSTDBY_bit(const void * const hw)1865 static inline void hri_supc_clear_VREF_RUNSTDBY_bit(const void *const hw)
1866 {
1867 SUPC_CRITICAL_SECTION_ENTER();
1868 ((Supc *)hw)->VREF.reg &= ~SUPC_VREF_RUNSTDBY;
1869 SUPC_CRITICAL_SECTION_LEAVE();
1870 }
1871
hri_supc_toggle_VREF_RUNSTDBY_bit(const void * const hw)1872 static inline void hri_supc_toggle_VREF_RUNSTDBY_bit(const void *const hw)
1873 {
1874 SUPC_CRITICAL_SECTION_ENTER();
1875 ((Supc *)hw)->VREF.reg ^= SUPC_VREF_RUNSTDBY;
1876 SUPC_CRITICAL_SECTION_LEAVE();
1877 }
1878
hri_supc_set_VREF_ONDEMAND_bit(const void * const hw)1879 static inline void hri_supc_set_VREF_ONDEMAND_bit(const void *const hw)
1880 {
1881 SUPC_CRITICAL_SECTION_ENTER();
1882 ((Supc *)hw)->VREF.reg |= SUPC_VREF_ONDEMAND;
1883 SUPC_CRITICAL_SECTION_LEAVE();
1884 }
1885
hri_supc_get_VREF_ONDEMAND_bit(const void * const hw)1886 static inline bool hri_supc_get_VREF_ONDEMAND_bit(const void *const hw)
1887 {
1888 uint32_t tmp;
1889 tmp = ((Supc *)hw)->VREF.reg;
1890 tmp = (tmp & SUPC_VREF_ONDEMAND) >> SUPC_VREF_ONDEMAND_Pos;
1891 return (bool)tmp;
1892 }
1893
hri_supc_write_VREF_ONDEMAND_bit(const void * const hw,bool value)1894 static inline void hri_supc_write_VREF_ONDEMAND_bit(const void *const hw, bool value)
1895 {
1896 uint32_t tmp;
1897 SUPC_CRITICAL_SECTION_ENTER();
1898 tmp = ((Supc *)hw)->VREF.reg;
1899 tmp &= ~SUPC_VREF_ONDEMAND;
1900 tmp |= value << SUPC_VREF_ONDEMAND_Pos;
1901 ((Supc *)hw)->VREF.reg = tmp;
1902 SUPC_CRITICAL_SECTION_LEAVE();
1903 }
1904
hri_supc_clear_VREF_ONDEMAND_bit(const void * const hw)1905 static inline void hri_supc_clear_VREF_ONDEMAND_bit(const void *const hw)
1906 {
1907 SUPC_CRITICAL_SECTION_ENTER();
1908 ((Supc *)hw)->VREF.reg &= ~SUPC_VREF_ONDEMAND;
1909 SUPC_CRITICAL_SECTION_LEAVE();
1910 }
1911
hri_supc_toggle_VREF_ONDEMAND_bit(const void * const hw)1912 static inline void hri_supc_toggle_VREF_ONDEMAND_bit(const void *const hw)
1913 {
1914 SUPC_CRITICAL_SECTION_ENTER();
1915 ((Supc *)hw)->VREF.reg ^= SUPC_VREF_ONDEMAND;
1916 SUPC_CRITICAL_SECTION_LEAVE();
1917 }
1918
hri_supc_set_VREF_SEL_bf(const void * const hw,hri_supc_vref_reg_t mask)1919 static inline void hri_supc_set_VREF_SEL_bf(const void *const hw, hri_supc_vref_reg_t mask)
1920 {
1921 SUPC_CRITICAL_SECTION_ENTER();
1922 ((Supc *)hw)->VREF.reg |= SUPC_VREF_SEL(mask);
1923 SUPC_CRITICAL_SECTION_LEAVE();
1924 }
1925
hri_supc_get_VREF_SEL_bf(const void * const hw,hri_supc_vref_reg_t mask)1926 static inline hri_supc_vref_reg_t hri_supc_get_VREF_SEL_bf(const void *const hw, hri_supc_vref_reg_t mask)
1927 {
1928 uint32_t tmp;
1929 tmp = ((Supc *)hw)->VREF.reg;
1930 tmp = (tmp & SUPC_VREF_SEL(mask)) >> SUPC_VREF_SEL_Pos;
1931 return tmp;
1932 }
1933
hri_supc_write_VREF_SEL_bf(const void * const hw,hri_supc_vref_reg_t data)1934 static inline void hri_supc_write_VREF_SEL_bf(const void *const hw, hri_supc_vref_reg_t data)
1935 {
1936 uint32_t tmp;
1937 SUPC_CRITICAL_SECTION_ENTER();
1938 tmp = ((Supc *)hw)->VREF.reg;
1939 tmp &= ~SUPC_VREF_SEL_Msk;
1940 tmp |= SUPC_VREF_SEL(data);
1941 ((Supc *)hw)->VREF.reg = tmp;
1942 SUPC_CRITICAL_SECTION_LEAVE();
1943 }
1944
hri_supc_clear_VREF_SEL_bf(const void * const hw,hri_supc_vref_reg_t mask)1945 static inline void hri_supc_clear_VREF_SEL_bf(const void *const hw, hri_supc_vref_reg_t mask)
1946 {
1947 SUPC_CRITICAL_SECTION_ENTER();
1948 ((Supc *)hw)->VREF.reg &= ~SUPC_VREF_SEL(mask);
1949 SUPC_CRITICAL_SECTION_LEAVE();
1950 }
1951
hri_supc_toggle_VREF_SEL_bf(const void * const hw,hri_supc_vref_reg_t mask)1952 static inline void hri_supc_toggle_VREF_SEL_bf(const void *const hw, hri_supc_vref_reg_t mask)
1953 {
1954 SUPC_CRITICAL_SECTION_ENTER();
1955 ((Supc *)hw)->VREF.reg ^= SUPC_VREF_SEL(mask);
1956 SUPC_CRITICAL_SECTION_LEAVE();
1957 }
1958
hri_supc_read_VREF_SEL_bf(const void * const hw)1959 static inline hri_supc_vref_reg_t hri_supc_read_VREF_SEL_bf(const void *const hw)
1960 {
1961 uint32_t tmp;
1962 tmp = ((Supc *)hw)->VREF.reg;
1963 tmp = (tmp & SUPC_VREF_SEL_Msk) >> SUPC_VREF_SEL_Pos;
1964 return tmp;
1965 }
1966
hri_supc_set_VREF_reg(const void * const hw,hri_supc_vref_reg_t mask)1967 static inline void hri_supc_set_VREF_reg(const void *const hw, hri_supc_vref_reg_t mask)
1968 {
1969 SUPC_CRITICAL_SECTION_ENTER();
1970 ((Supc *)hw)->VREF.reg |= mask;
1971 SUPC_CRITICAL_SECTION_LEAVE();
1972 }
1973
hri_supc_get_VREF_reg(const void * const hw,hri_supc_vref_reg_t mask)1974 static inline hri_supc_vref_reg_t hri_supc_get_VREF_reg(const void *const hw, hri_supc_vref_reg_t mask)
1975 {
1976 uint32_t tmp;
1977 tmp = ((Supc *)hw)->VREF.reg;
1978 tmp &= mask;
1979 return tmp;
1980 }
1981
hri_supc_write_VREF_reg(const void * const hw,hri_supc_vref_reg_t data)1982 static inline void hri_supc_write_VREF_reg(const void *const hw, hri_supc_vref_reg_t data)
1983 {
1984 SUPC_CRITICAL_SECTION_ENTER();
1985 ((Supc *)hw)->VREF.reg = data;
1986 SUPC_CRITICAL_SECTION_LEAVE();
1987 }
1988
hri_supc_clear_VREF_reg(const void * const hw,hri_supc_vref_reg_t mask)1989 static inline void hri_supc_clear_VREF_reg(const void *const hw, hri_supc_vref_reg_t mask)
1990 {
1991 SUPC_CRITICAL_SECTION_ENTER();
1992 ((Supc *)hw)->VREF.reg &= ~mask;
1993 SUPC_CRITICAL_SECTION_LEAVE();
1994 }
1995
hri_supc_toggle_VREF_reg(const void * const hw,hri_supc_vref_reg_t mask)1996 static inline void hri_supc_toggle_VREF_reg(const void *const hw, hri_supc_vref_reg_t mask)
1997 {
1998 SUPC_CRITICAL_SECTION_ENTER();
1999 ((Supc *)hw)->VREF.reg ^= mask;
2000 SUPC_CRITICAL_SECTION_LEAVE();
2001 }
2002
hri_supc_read_VREF_reg(const void * const hw)2003 static inline hri_supc_vref_reg_t hri_supc_read_VREF_reg(const void *const hw)
2004 {
2005 return ((Supc *)hw)->VREF.reg;
2006 }
2007
hri_supc_set_BBPS_WAKEEN_bit(const void * const hw)2008 static inline void hri_supc_set_BBPS_WAKEEN_bit(const void *const hw)
2009 {
2010 SUPC_CRITICAL_SECTION_ENTER();
2011 ((Supc *)hw)->BBPS.reg |= SUPC_BBPS_WAKEEN;
2012 SUPC_CRITICAL_SECTION_LEAVE();
2013 }
2014
hri_supc_get_BBPS_WAKEEN_bit(const void * const hw)2015 static inline bool hri_supc_get_BBPS_WAKEEN_bit(const void *const hw)
2016 {
2017 uint32_t tmp;
2018 tmp = ((Supc *)hw)->BBPS.reg;
2019 tmp = (tmp & SUPC_BBPS_WAKEEN) >> SUPC_BBPS_WAKEEN_Pos;
2020 return (bool)tmp;
2021 }
2022
hri_supc_write_BBPS_WAKEEN_bit(const void * const hw,bool value)2023 static inline void hri_supc_write_BBPS_WAKEEN_bit(const void *const hw, bool value)
2024 {
2025 uint32_t tmp;
2026 SUPC_CRITICAL_SECTION_ENTER();
2027 tmp = ((Supc *)hw)->BBPS.reg;
2028 tmp &= ~SUPC_BBPS_WAKEEN;
2029 tmp |= value << SUPC_BBPS_WAKEEN_Pos;
2030 ((Supc *)hw)->BBPS.reg = tmp;
2031 SUPC_CRITICAL_SECTION_LEAVE();
2032 }
2033
hri_supc_clear_BBPS_WAKEEN_bit(const void * const hw)2034 static inline void hri_supc_clear_BBPS_WAKEEN_bit(const void *const hw)
2035 {
2036 SUPC_CRITICAL_SECTION_ENTER();
2037 ((Supc *)hw)->BBPS.reg &= ~SUPC_BBPS_WAKEEN;
2038 SUPC_CRITICAL_SECTION_LEAVE();
2039 }
2040
hri_supc_toggle_BBPS_WAKEEN_bit(const void * const hw)2041 static inline void hri_supc_toggle_BBPS_WAKEEN_bit(const void *const hw)
2042 {
2043 SUPC_CRITICAL_SECTION_ENTER();
2044 ((Supc *)hw)->BBPS.reg ^= SUPC_BBPS_WAKEEN;
2045 SUPC_CRITICAL_SECTION_LEAVE();
2046 }
2047
hri_supc_set_BBPS_PSOKEN_bit(const void * const hw)2048 static inline void hri_supc_set_BBPS_PSOKEN_bit(const void *const hw)
2049 {
2050 SUPC_CRITICAL_SECTION_ENTER();
2051 ((Supc *)hw)->BBPS.reg |= SUPC_BBPS_PSOKEN;
2052 SUPC_CRITICAL_SECTION_LEAVE();
2053 }
2054
hri_supc_get_BBPS_PSOKEN_bit(const void * const hw)2055 static inline bool hri_supc_get_BBPS_PSOKEN_bit(const void *const hw)
2056 {
2057 uint32_t tmp;
2058 tmp = ((Supc *)hw)->BBPS.reg;
2059 tmp = (tmp & SUPC_BBPS_PSOKEN) >> SUPC_BBPS_PSOKEN_Pos;
2060 return (bool)tmp;
2061 }
2062
hri_supc_write_BBPS_PSOKEN_bit(const void * const hw,bool value)2063 static inline void hri_supc_write_BBPS_PSOKEN_bit(const void *const hw, bool value)
2064 {
2065 uint32_t tmp;
2066 SUPC_CRITICAL_SECTION_ENTER();
2067 tmp = ((Supc *)hw)->BBPS.reg;
2068 tmp &= ~SUPC_BBPS_PSOKEN;
2069 tmp |= value << SUPC_BBPS_PSOKEN_Pos;
2070 ((Supc *)hw)->BBPS.reg = tmp;
2071 SUPC_CRITICAL_SECTION_LEAVE();
2072 }
2073
hri_supc_clear_BBPS_PSOKEN_bit(const void * const hw)2074 static inline void hri_supc_clear_BBPS_PSOKEN_bit(const void *const hw)
2075 {
2076 SUPC_CRITICAL_SECTION_ENTER();
2077 ((Supc *)hw)->BBPS.reg &= ~SUPC_BBPS_PSOKEN;
2078 SUPC_CRITICAL_SECTION_LEAVE();
2079 }
2080
hri_supc_toggle_BBPS_PSOKEN_bit(const void * const hw)2081 static inline void hri_supc_toggle_BBPS_PSOKEN_bit(const void *const hw)
2082 {
2083 SUPC_CRITICAL_SECTION_ENTER();
2084 ((Supc *)hw)->BBPS.reg ^= SUPC_BBPS_PSOKEN;
2085 SUPC_CRITICAL_SECTION_LEAVE();
2086 }
2087
hri_supc_set_BBPS_CONF_bf(const void * const hw,hri_supc_bbps_reg_t mask)2088 static inline void hri_supc_set_BBPS_CONF_bf(const void *const hw, hri_supc_bbps_reg_t mask)
2089 {
2090 SUPC_CRITICAL_SECTION_ENTER();
2091 ((Supc *)hw)->BBPS.reg |= SUPC_BBPS_CONF(mask);
2092 SUPC_CRITICAL_SECTION_LEAVE();
2093 }
2094
hri_supc_get_BBPS_CONF_bf(const void * const hw,hri_supc_bbps_reg_t mask)2095 static inline hri_supc_bbps_reg_t hri_supc_get_BBPS_CONF_bf(const void *const hw, hri_supc_bbps_reg_t mask)
2096 {
2097 uint32_t tmp;
2098 tmp = ((Supc *)hw)->BBPS.reg;
2099 tmp = (tmp & SUPC_BBPS_CONF(mask)) >> SUPC_BBPS_CONF_Pos;
2100 return tmp;
2101 }
2102
hri_supc_write_BBPS_CONF_bf(const void * const hw,hri_supc_bbps_reg_t data)2103 static inline void hri_supc_write_BBPS_CONF_bf(const void *const hw, hri_supc_bbps_reg_t data)
2104 {
2105 uint32_t tmp;
2106 SUPC_CRITICAL_SECTION_ENTER();
2107 tmp = ((Supc *)hw)->BBPS.reg;
2108 tmp &= ~SUPC_BBPS_CONF_Msk;
2109 tmp |= SUPC_BBPS_CONF(data);
2110 ((Supc *)hw)->BBPS.reg = tmp;
2111 SUPC_CRITICAL_SECTION_LEAVE();
2112 }
2113
hri_supc_clear_BBPS_CONF_bf(const void * const hw,hri_supc_bbps_reg_t mask)2114 static inline void hri_supc_clear_BBPS_CONF_bf(const void *const hw, hri_supc_bbps_reg_t mask)
2115 {
2116 SUPC_CRITICAL_SECTION_ENTER();
2117 ((Supc *)hw)->BBPS.reg &= ~SUPC_BBPS_CONF(mask);
2118 SUPC_CRITICAL_SECTION_LEAVE();
2119 }
2120
hri_supc_toggle_BBPS_CONF_bf(const void * const hw,hri_supc_bbps_reg_t mask)2121 static inline void hri_supc_toggle_BBPS_CONF_bf(const void *const hw, hri_supc_bbps_reg_t mask)
2122 {
2123 SUPC_CRITICAL_SECTION_ENTER();
2124 ((Supc *)hw)->BBPS.reg ^= SUPC_BBPS_CONF(mask);
2125 SUPC_CRITICAL_SECTION_LEAVE();
2126 }
2127
hri_supc_read_BBPS_CONF_bf(const void * const hw)2128 static inline hri_supc_bbps_reg_t hri_supc_read_BBPS_CONF_bf(const void *const hw)
2129 {
2130 uint32_t tmp;
2131 tmp = ((Supc *)hw)->BBPS.reg;
2132 tmp = (tmp & SUPC_BBPS_CONF_Msk) >> SUPC_BBPS_CONF_Pos;
2133 return tmp;
2134 }
2135
hri_supc_set_BBPS_reg(const void * const hw,hri_supc_bbps_reg_t mask)2136 static inline void hri_supc_set_BBPS_reg(const void *const hw, hri_supc_bbps_reg_t mask)
2137 {
2138 SUPC_CRITICAL_SECTION_ENTER();
2139 ((Supc *)hw)->BBPS.reg |= mask;
2140 SUPC_CRITICAL_SECTION_LEAVE();
2141 }
2142
hri_supc_get_BBPS_reg(const void * const hw,hri_supc_bbps_reg_t mask)2143 static inline hri_supc_bbps_reg_t hri_supc_get_BBPS_reg(const void *const hw, hri_supc_bbps_reg_t mask)
2144 {
2145 uint32_t tmp;
2146 tmp = ((Supc *)hw)->BBPS.reg;
2147 tmp &= mask;
2148 return tmp;
2149 }
2150
hri_supc_write_BBPS_reg(const void * const hw,hri_supc_bbps_reg_t data)2151 static inline void hri_supc_write_BBPS_reg(const void *const hw, hri_supc_bbps_reg_t data)
2152 {
2153 SUPC_CRITICAL_SECTION_ENTER();
2154 ((Supc *)hw)->BBPS.reg = data;
2155 SUPC_CRITICAL_SECTION_LEAVE();
2156 }
2157
hri_supc_clear_BBPS_reg(const void * const hw,hri_supc_bbps_reg_t mask)2158 static inline void hri_supc_clear_BBPS_reg(const void *const hw, hri_supc_bbps_reg_t mask)
2159 {
2160 SUPC_CRITICAL_SECTION_ENTER();
2161 ((Supc *)hw)->BBPS.reg &= ~mask;
2162 SUPC_CRITICAL_SECTION_LEAVE();
2163 }
2164
hri_supc_toggle_BBPS_reg(const void * const hw,hri_supc_bbps_reg_t mask)2165 static inline void hri_supc_toggle_BBPS_reg(const void *const hw, hri_supc_bbps_reg_t mask)
2166 {
2167 SUPC_CRITICAL_SECTION_ENTER();
2168 ((Supc *)hw)->BBPS.reg ^= mask;
2169 SUPC_CRITICAL_SECTION_LEAVE();
2170 }
2171
hri_supc_read_BBPS_reg(const void * const hw)2172 static inline hri_supc_bbps_reg_t hri_supc_read_BBPS_reg(const void *const hw)
2173 {
2174 return ((Supc *)hw)->BBPS.reg;
2175 }
2176
hri_supc_set_BKOUT_EN_bf(const void * const hw,hri_supc_bkout_reg_t mask)2177 static inline void hri_supc_set_BKOUT_EN_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2178 {
2179 SUPC_CRITICAL_SECTION_ENTER();
2180 ((Supc *)hw)->BKOUT.reg |= SUPC_BKOUT_EN(mask);
2181 SUPC_CRITICAL_SECTION_LEAVE();
2182 }
2183
hri_supc_get_BKOUT_EN_bf(const void * const hw,hri_supc_bkout_reg_t mask)2184 static inline hri_supc_bkout_reg_t hri_supc_get_BKOUT_EN_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2185 {
2186 uint32_t tmp;
2187 tmp = ((Supc *)hw)->BKOUT.reg;
2188 tmp = (tmp & SUPC_BKOUT_EN(mask)) >> SUPC_BKOUT_EN_Pos;
2189 return tmp;
2190 }
2191
hri_supc_write_BKOUT_EN_bf(const void * const hw,hri_supc_bkout_reg_t data)2192 static inline void hri_supc_write_BKOUT_EN_bf(const void *const hw, hri_supc_bkout_reg_t data)
2193 {
2194 uint32_t tmp;
2195 SUPC_CRITICAL_SECTION_ENTER();
2196 tmp = ((Supc *)hw)->BKOUT.reg;
2197 tmp &= ~SUPC_BKOUT_EN_Msk;
2198 tmp |= SUPC_BKOUT_EN(data);
2199 ((Supc *)hw)->BKOUT.reg = tmp;
2200 SUPC_CRITICAL_SECTION_LEAVE();
2201 }
2202
hri_supc_clear_BKOUT_EN_bf(const void * const hw,hri_supc_bkout_reg_t mask)2203 static inline void hri_supc_clear_BKOUT_EN_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2204 {
2205 SUPC_CRITICAL_SECTION_ENTER();
2206 ((Supc *)hw)->BKOUT.reg &= ~SUPC_BKOUT_EN(mask);
2207 SUPC_CRITICAL_SECTION_LEAVE();
2208 }
2209
hri_supc_toggle_BKOUT_EN_bf(const void * const hw,hri_supc_bkout_reg_t mask)2210 static inline void hri_supc_toggle_BKOUT_EN_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2211 {
2212 SUPC_CRITICAL_SECTION_ENTER();
2213 ((Supc *)hw)->BKOUT.reg ^= SUPC_BKOUT_EN(mask);
2214 SUPC_CRITICAL_SECTION_LEAVE();
2215 }
2216
hri_supc_read_BKOUT_EN_bf(const void * const hw)2217 static inline hri_supc_bkout_reg_t hri_supc_read_BKOUT_EN_bf(const void *const hw)
2218 {
2219 uint32_t tmp;
2220 tmp = ((Supc *)hw)->BKOUT.reg;
2221 tmp = (tmp & SUPC_BKOUT_EN_Msk) >> SUPC_BKOUT_EN_Pos;
2222 return tmp;
2223 }
2224
hri_supc_set_BKOUT_CLR_bf(const void * const hw,hri_supc_bkout_reg_t mask)2225 static inline void hri_supc_set_BKOUT_CLR_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2226 {
2227 SUPC_CRITICAL_SECTION_ENTER();
2228 ((Supc *)hw)->BKOUT.reg |= SUPC_BKOUT_CLR(mask);
2229 SUPC_CRITICAL_SECTION_LEAVE();
2230 }
2231
hri_supc_get_BKOUT_CLR_bf(const void * const hw,hri_supc_bkout_reg_t mask)2232 static inline hri_supc_bkout_reg_t hri_supc_get_BKOUT_CLR_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2233 {
2234 uint32_t tmp;
2235 tmp = ((Supc *)hw)->BKOUT.reg;
2236 tmp = (tmp & SUPC_BKOUT_CLR(mask)) >> SUPC_BKOUT_CLR_Pos;
2237 return tmp;
2238 }
2239
hri_supc_write_BKOUT_CLR_bf(const void * const hw,hri_supc_bkout_reg_t data)2240 static inline void hri_supc_write_BKOUT_CLR_bf(const void *const hw, hri_supc_bkout_reg_t data)
2241 {
2242 uint32_t tmp;
2243 SUPC_CRITICAL_SECTION_ENTER();
2244 tmp = ((Supc *)hw)->BKOUT.reg;
2245 tmp &= ~SUPC_BKOUT_CLR_Msk;
2246 tmp |= SUPC_BKOUT_CLR(data);
2247 ((Supc *)hw)->BKOUT.reg = tmp;
2248 SUPC_CRITICAL_SECTION_LEAVE();
2249 }
2250
hri_supc_clear_BKOUT_CLR_bf(const void * const hw,hri_supc_bkout_reg_t mask)2251 static inline void hri_supc_clear_BKOUT_CLR_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2252 {
2253 SUPC_CRITICAL_SECTION_ENTER();
2254 ((Supc *)hw)->BKOUT.reg &= ~SUPC_BKOUT_CLR(mask);
2255 SUPC_CRITICAL_SECTION_LEAVE();
2256 }
2257
hri_supc_toggle_BKOUT_CLR_bf(const void * const hw,hri_supc_bkout_reg_t mask)2258 static inline void hri_supc_toggle_BKOUT_CLR_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2259 {
2260 SUPC_CRITICAL_SECTION_ENTER();
2261 ((Supc *)hw)->BKOUT.reg ^= SUPC_BKOUT_CLR(mask);
2262 SUPC_CRITICAL_SECTION_LEAVE();
2263 }
2264
hri_supc_read_BKOUT_CLR_bf(const void * const hw)2265 static inline hri_supc_bkout_reg_t hri_supc_read_BKOUT_CLR_bf(const void *const hw)
2266 {
2267 uint32_t tmp;
2268 tmp = ((Supc *)hw)->BKOUT.reg;
2269 tmp = (tmp & SUPC_BKOUT_CLR_Msk) >> SUPC_BKOUT_CLR_Pos;
2270 return tmp;
2271 }
2272
hri_supc_set_BKOUT_SET_bf(const void * const hw,hri_supc_bkout_reg_t mask)2273 static inline void hri_supc_set_BKOUT_SET_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2274 {
2275 SUPC_CRITICAL_SECTION_ENTER();
2276 ((Supc *)hw)->BKOUT.reg |= SUPC_BKOUT_SET(mask);
2277 SUPC_CRITICAL_SECTION_LEAVE();
2278 }
2279
hri_supc_get_BKOUT_SET_bf(const void * const hw,hri_supc_bkout_reg_t mask)2280 static inline hri_supc_bkout_reg_t hri_supc_get_BKOUT_SET_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2281 {
2282 uint32_t tmp;
2283 tmp = ((Supc *)hw)->BKOUT.reg;
2284 tmp = (tmp & SUPC_BKOUT_SET(mask)) >> SUPC_BKOUT_SET_Pos;
2285 return tmp;
2286 }
2287
hri_supc_write_BKOUT_SET_bf(const void * const hw,hri_supc_bkout_reg_t data)2288 static inline void hri_supc_write_BKOUT_SET_bf(const void *const hw, hri_supc_bkout_reg_t data)
2289 {
2290 uint32_t tmp;
2291 SUPC_CRITICAL_SECTION_ENTER();
2292 tmp = ((Supc *)hw)->BKOUT.reg;
2293 tmp &= ~SUPC_BKOUT_SET_Msk;
2294 tmp |= SUPC_BKOUT_SET(data);
2295 ((Supc *)hw)->BKOUT.reg = tmp;
2296 SUPC_CRITICAL_SECTION_LEAVE();
2297 }
2298
hri_supc_clear_BKOUT_SET_bf(const void * const hw,hri_supc_bkout_reg_t mask)2299 static inline void hri_supc_clear_BKOUT_SET_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2300 {
2301 SUPC_CRITICAL_SECTION_ENTER();
2302 ((Supc *)hw)->BKOUT.reg &= ~SUPC_BKOUT_SET(mask);
2303 SUPC_CRITICAL_SECTION_LEAVE();
2304 }
2305
hri_supc_toggle_BKOUT_SET_bf(const void * const hw,hri_supc_bkout_reg_t mask)2306 static inline void hri_supc_toggle_BKOUT_SET_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2307 {
2308 SUPC_CRITICAL_SECTION_ENTER();
2309 ((Supc *)hw)->BKOUT.reg ^= SUPC_BKOUT_SET(mask);
2310 SUPC_CRITICAL_SECTION_LEAVE();
2311 }
2312
hri_supc_read_BKOUT_SET_bf(const void * const hw)2313 static inline hri_supc_bkout_reg_t hri_supc_read_BKOUT_SET_bf(const void *const hw)
2314 {
2315 uint32_t tmp;
2316 tmp = ((Supc *)hw)->BKOUT.reg;
2317 tmp = (tmp & SUPC_BKOUT_SET_Msk) >> SUPC_BKOUT_SET_Pos;
2318 return tmp;
2319 }
2320
hri_supc_set_BKOUT_RTCTGL_bf(const void * const hw,hri_supc_bkout_reg_t mask)2321 static inline void hri_supc_set_BKOUT_RTCTGL_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2322 {
2323 SUPC_CRITICAL_SECTION_ENTER();
2324 ((Supc *)hw)->BKOUT.reg |= SUPC_BKOUT_RTCTGL(mask);
2325 SUPC_CRITICAL_SECTION_LEAVE();
2326 }
2327
hri_supc_get_BKOUT_RTCTGL_bf(const void * const hw,hri_supc_bkout_reg_t mask)2328 static inline hri_supc_bkout_reg_t hri_supc_get_BKOUT_RTCTGL_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2329 {
2330 uint32_t tmp;
2331 tmp = ((Supc *)hw)->BKOUT.reg;
2332 tmp = (tmp & SUPC_BKOUT_RTCTGL(mask)) >> SUPC_BKOUT_RTCTGL_Pos;
2333 return tmp;
2334 }
2335
hri_supc_write_BKOUT_RTCTGL_bf(const void * const hw,hri_supc_bkout_reg_t data)2336 static inline void hri_supc_write_BKOUT_RTCTGL_bf(const void *const hw, hri_supc_bkout_reg_t data)
2337 {
2338 uint32_t tmp;
2339 SUPC_CRITICAL_SECTION_ENTER();
2340 tmp = ((Supc *)hw)->BKOUT.reg;
2341 tmp &= ~SUPC_BKOUT_RTCTGL_Msk;
2342 tmp |= SUPC_BKOUT_RTCTGL(data);
2343 ((Supc *)hw)->BKOUT.reg = tmp;
2344 SUPC_CRITICAL_SECTION_LEAVE();
2345 }
2346
hri_supc_clear_BKOUT_RTCTGL_bf(const void * const hw,hri_supc_bkout_reg_t mask)2347 static inline void hri_supc_clear_BKOUT_RTCTGL_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2348 {
2349 SUPC_CRITICAL_SECTION_ENTER();
2350 ((Supc *)hw)->BKOUT.reg &= ~SUPC_BKOUT_RTCTGL(mask);
2351 SUPC_CRITICAL_SECTION_LEAVE();
2352 }
2353
hri_supc_toggle_BKOUT_RTCTGL_bf(const void * const hw,hri_supc_bkout_reg_t mask)2354 static inline void hri_supc_toggle_BKOUT_RTCTGL_bf(const void *const hw, hri_supc_bkout_reg_t mask)
2355 {
2356 SUPC_CRITICAL_SECTION_ENTER();
2357 ((Supc *)hw)->BKOUT.reg ^= SUPC_BKOUT_RTCTGL(mask);
2358 SUPC_CRITICAL_SECTION_LEAVE();
2359 }
2360
hri_supc_read_BKOUT_RTCTGL_bf(const void * const hw)2361 static inline hri_supc_bkout_reg_t hri_supc_read_BKOUT_RTCTGL_bf(const void *const hw)
2362 {
2363 uint32_t tmp;
2364 tmp = ((Supc *)hw)->BKOUT.reg;
2365 tmp = (tmp & SUPC_BKOUT_RTCTGL_Msk) >> SUPC_BKOUT_RTCTGL_Pos;
2366 return tmp;
2367 }
2368
hri_supc_set_BKOUT_reg(const void * const hw,hri_supc_bkout_reg_t mask)2369 static inline void hri_supc_set_BKOUT_reg(const void *const hw, hri_supc_bkout_reg_t mask)
2370 {
2371 SUPC_CRITICAL_SECTION_ENTER();
2372 ((Supc *)hw)->BKOUT.reg |= mask;
2373 SUPC_CRITICAL_SECTION_LEAVE();
2374 }
2375
hri_supc_get_BKOUT_reg(const void * const hw,hri_supc_bkout_reg_t mask)2376 static inline hri_supc_bkout_reg_t hri_supc_get_BKOUT_reg(const void *const hw, hri_supc_bkout_reg_t mask)
2377 {
2378 uint32_t tmp;
2379 tmp = ((Supc *)hw)->BKOUT.reg;
2380 tmp &= mask;
2381 return tmp;
2382 }
2383
hri_supc_write_BKOUT_reg(const void * const hw,hri_supc_bkout_reg_t data)2384 static inline void hri_supc_write_BKOUT_reg(const void *const hw, hri_supc_bkout_reg_t data)
2385 {
2386 SUPC_CRITICAL_SECTION_ENTER();
2387 ((Supc *)hw)->BKOUT.reg = data;
2388 SUPC_CRITICAL_SECTION_LEAVE();
2389 }
2390
hri_supc_clear_BKOUT_reg(const void * const hw,hri_supc_bkout_reg_t mask)2391 static inline void hri_supc_clear_BKOUT_reg(const void *const hw, hri_supc_bkout_reg_t mask)
2392 {
2393 SUPC_CRITICAL_SECTION_ENTER();
2394 ((Supc *)hw)->BKOUT.reg &= ~mask;
2395 SUPC_CRITICAL_SECTION_LEAVE();
2396 }
2397
hri_supc_toggle_BKOUT_reg(const void * const hw,hri_supc_bkout_reg_t mask)2398 static inline void hri_supc_toggle_BKOUT_reg(const void *const hw, hri_supc_bkout_reg_t mask)
2399 {
2400 SUPC_CRITICAL_SECTION_ENTER();
2401 ((Supc *)hw)->BKOUT.reg ^= mask;
2402 SUPC_CRITICAL_SECTION_LEAVE();
2403 }
2404
hri_supc_read_BKOUT_reg(const void * const hw)2405 static inline hri_supc_bkout_reg_t hri_supc_read_BKOUT_reg(const void *const hw)
2406 {
2407 return ((Supc *)hw)->BKOUT.reg;
2408 }
2409
hri_supc_get_STATUS_BOD33RDY_bit(const void * const hw)2410 static inline bool hri_supc_get_STATUS_BOD33RDY_bit(const void *const hw)
2411 {
2412 return (((Supc *)hw)->STATUS.reg & SUPC_STATUS_BOD33RDY) >> SUPC_STATUS_BOD33RDY_Pos;
2413 }
2414
hri_supc_get_STATUS_BOD33DET_bit(const void * const hw)2415 static inline bool hri_supc_get_STATUS_BOD33DET_bit(const void *const hw)
2416 {
2417 return (((Supc *)hw)->STATUS.reg & SUPC_STATUS_BOD33DET) >> SUPC_STATUS_BOD33DET_Pos;
2418 }
2419
hri_supc_get_STATUS_B33SRDY_bit(const void * const hw)2420 static inline bool hri_supc_get_STATUS_B33SRDY_bit(const void *const hw)
2421 {
2422 return (((Supc *)hw)->STATUS.reg & SUPC_STATUS_B33SRDY) >> SUPC_STATUS_B33SRDY_Pos;
2423 }
2424
hri_supc_get_STATUS_BOD12RDY_bit(const void * const hw)2425 static inline bool hri_supc_get_STATUS_BOD12RDY_bit(const void *const hw)
2426 {
2427 return (((Supc *)hw)->STATUS.reg & SUPC_STATUS_BOD12RDY) >> SUPC_STATUS_BOD12RDY_Pos;
2428 }
2429
hri_supc_get_STATUS_BOD12DET_bit(const void * const hw)2430 static inline bool hri_supc_get_STATUS_BOD12DET_bit(const void *const hw)
2431 {
2432 return (((Supc *)hw)->STATUS.reg & SUPC_STATUS_BOD12DET) >> SUPC_STATUS_BOD12DET_Pos;
2433 }
2434
hri_supc_get_STATUS_B12SRDY_bit(const void * const hw)2435 static inline bool hri_supc_get_STATUS_B12SRDY_bit(const void *const hw)
2436 {
2437 return (((Supc *)hw)->STATUS.reg & SUPC_STATUS_B12SRDY) >> SUPC_STATUS_B12SRDY_Pos;
2438 }
2439
hri_supc_get_STATUS_VREGRDY_bit(const void * const hw)2440 static inline bool hri_supc_get_STATUS_VREGRDY_bit(const void *const hw)
2441 {
2442 return (((Supc *)hw)->STATUS.reg & SUPC_STATUS_VREGRDY) >> SUPC_STATUS_VREGRDY_Pos;
2443 }
2444
hri_supc_get_STATUS_APWSRDY_bit(const void * const hw)2445 static inline bool hri_supc_get_STATUS_APWSRDY_bit(const void *const hw)
2446 {
2447 return (((Supc *)hw)->STATUS.reg & SUPC_STATUS_APWSRDY) >> SUPC_STATUS_APWSRDY_Pos;
2448 }
2449
hri_supc_get_STATUS_VCORERDY_bit(const void * const hw)2450 static inline bool hri_supc_get_STATUS_VCORERDY_bit(const void *const hw)
2451 {
2452 return (((Supc *)hw)->STATUS.reg & SUPC_STATUS_VCORERDY) >> SUPC_STATUS_VCORERDY_Pos;
2453 }
2454
hri_supc_get_STATUS_BBPS_bit(const void * const hw)2455 static inline bool hri_supc_get_STATUS_BBPS_bit(const void *const hw)
2456 {
2457 return (((Supc *)hw)->STATUS.reg & SUPC_STATUS_BBPS) >> SUPC_STATUS_BBPS_Pos;
2458 }
2459
hri_supc_get_STATUS_reg(const void * const hw,hri_supc_status_reg_t mask)2460 static inline hri_supc_status_reg_t hri_supc_get_STATUS_reg(const void *const hw, hri_supc_status_reg_t mask)
2461 {
2462 uint32_t tmp;
2463 tmp = ((Supc *)hw)->STATUS.reg;
2464 tmp &= mask;
2465 return tmp;
2466 }
2467
hri_supc_read_STATUS_reg(const void * const hw)2468 static inline hri_supc_status_reg_t hri_supc_read_STATUS_reg(const void *const hw)
2469 {
2470 return ((Supc *)hw)->STATUS.reg;
2471 }
2472
hri_supc_get_BKIN_BKIN_bf(const void * const hw,hri_supc_bkin_reg_t mask)2473 static inline hri_supc_bkin_reg_t hri_supc_get_BKIN_BKIN_bf(const void *const hw, hri_supc_bkin_reg_t mask)
2474 {
2475 return (((Supc *)hw)->BKIN.reg & SUPC_BKIN_BKIN(mask)) >> SUPC_BKIN_BKIN_Pos;
2476 }
2477
hri_supc_read_BKIN_BKIN_bf(const void * const hw)2478 static inline hri_supc_bkin_reg_t hri_supc_read_BKIN_BKIN_bf(const void *const hw)
2479 {
2480 return (((Supc *)hw)->BKIN.reg & SUPC_BKIN_BKIN_Msk) >> SUPC_BKIN_BKIN_Pos;
2481 }
2482
hri_supc_get_BKIN_reg(const void * const hw,hri_supc_bkin_reg_t mask)2483 static inline hri_supc_bkin_reg_t hri_supc_get_BKIN_reg(const void *const hw, hri_supc_bkin_reg_t mask)
2484 {
2485 uint32_t tmp;
2486 tmp = ((Supc *)hw)->BKIN.reg;
2487 tmp &= mask;
2488 return tmp;
2489 }
2490
hri_supc_read_BKIN_reg(const void * const hw)2491 static inline hri_supc_bkin_reg_t hri_supc_read_BKIN_reg(const void *const hw)
2492 {
2493 return ((Supc *)hw)->BKIN.reg;
2494 }
2495
2496 #ifdef __cplusplus
2497 }
2498 #endif
2499
2500 #endif /* _HRI_SUPC_L21_H_INCLUDED */
2501 #endif /* _SAML21_SUPC_COMPONENT_ */
2502