1 /*
2 * Copyright (c) 2021 Chipsea Technologies (Shenzhen) Corp., Ltd. All rights reserved.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15 /**
16 * @file reg_riu.h
17 * @brief Definitions of the RIU HW block registers and register access functions.
18 *
19 * @defgroup REG_RIU REG_RIU
20 * @ingroup REG
21 * @{
22 *
23 * @brief Definitions of the RIU HW block registers and register access functions.
24 */
25 #ifndef _REG_RIU_H_
26 #define _REG_RIU_H_
27
28 #include "wb_co_int.h"
29 #include "compiler.h"
30 #include "arch.h"
31 #include "reg_access_wrapper.h"
32
33 /** @brief Number of registers in the REG_RIU peripheral.
34 */
35 #define REG_RIU_COUNT 321
36
37 /** @brief Decoding mask of the REG_RIU peripheral registers from the CPU point of view.
38 */
39 #define REG_RIU_DECODING_MASK 0x000007FF
40
41 /**
42 * @name RWNXVERSION register definitions
43 * <table>
44 * <caption id="RWNXVERSION_BF">RWNXVERSION bitfields</caption>
45 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
46 * <tr><td>31:24 <td> RESERVED <td>W <td>R <td>0x0
47 * <tr><td>23:22 <td> AGCRAMMODE <td>W <td>R <td>0x2
48 * <tr><td>21 <td> IQCOMP <td>W <td>R <td>0
49 * <tr><td>20 <td> DSSSCORR <td>W <td>R <td>1
50 * <tr><td>19 <td> FIQCOMP <td>W <td>R <td>0
51 * <tr><td>18 <td> AGCSNR <td>W <td>R <td>1
52 * <tr><td>16 <td> RADAR <td>W <td>R <td>1
53 * <tr><td>14 <td> DSSSCCK <td>W <td>R <td>1
54 * <tr><td>13:12 <td> CHBW <td>W <td>R <td>0x2
55 * <tr><td>11:08 <td> NSS <td>W <td>R <td>0x2
56 * <tr><td>07:04 <td> NTX <td>W <td>R <td>0x2
57 * <tr><td>03:00 <td> NRX <td>W <td>R <td>0x2
58 * </table>
59 *
60 * @{
61 */
62
63 /// Address of the RWNXVERSION register
64 #define RIU_RWNXVERSION_ADDR 0x4033B000
65 /// Offset of the RWNXVERSION register from the base address
66 #define RIU_RWNXVERSION_OFFSET 0x00000000
67 /// Index of the RWNXVERSION register
68 #define RIU_RWNXVERSION_INDEX 0x00000000
69 /// Reset value of the RWNXVERSION register
70 #define RIU_RWNXVERSION_RESET 0x00956222
71
72 /**
73 * @brief Returns the current value of the RWNXVERSION register.
74 * The RWNXVERSION register will be read and its value returned.
75 * @return The current value of the RWNXVERSION register.
76 */
riu_rwnxversion_get(void)77 __INLINE uint32_t riu_rwnxversion_get(void)
78 {
79 return PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
80 }
81
82 // field definitions
83 /// RESERVED field mask
84 #define RIU_RESERVED_MASK ((uint32_t)0xFF000000)
85 /// RESERVED field LSB position
86 #define RIU_RESERVED_LSB 24
87 /// RESERVED field width
88 #define RIU_RESERVED_WIDTH ((uint32_t)0x00000008)
89 /// AGCRAMMODE field mask
90 #define RIU_AGCRAMMODE_MASK ((uint32_t)0x00C00000)
91 /// AGCRAMMODE field LSB position
92 #define RIU_AGCRAMMODE_LSB 22
93 /// AGCRAMMODE field width
94 #define RIU_AGCRAMMODE_WIDTH ((uint32_t)0x00000002)
95 /// IQCOMP field bit
96 #define RIU_IQCOMP_BIT ((uint32_t)0x00200000)
97 /// IQCOMP field position
98 #define RIU_IQCOMP_POS 21
99 /// DSSSCORR field bit
100 #define RIU_DSSSCORR_BIT ((uint32_t)0x00100000)
101 /// DSSSCORR field position
102 #define RIU_DSSSCORR_POS 20
103 /// FIQCOMP field bit
104 #define RIU_FIQCOMP_BIT ((uint32_t)0x00080000)
105 /// FIQCOMP field position
106 #define RIU_FIQCOMP_POS 19
107 /// AGCSNR field bit
108 #define RIU_AGCSNR_BIT ((uint32_t)0x00040000)
109 /// AGCSNR field position
110 #define RIU_AGCSNR_POS 18
111 /// RADAR field bit
112 #define RIU_RADAR_BIT ((uint32_t)0x00010000)
113 /// RADAR field position
114 #define RIU_RADAR_POS 16
115 /// DSSSCCK field bit
116 #define RIU_DSSSCCK_BIT ((uint32_t)0x00004000)
117 /// DSSSCCK field position
118 #define RIU_DSSSCCK_POS 14
119 /// CHBW field mask
120 #define RIU_CHBW_MASK ((uint32_t)0x00003000)
121 /// CHBW field LSB position
122 #define RIU_CHBW_LSB 12
123 /// CHBW field width
124 #define RIU_CHBW_WIDTH ((uint32_t)0x00000002)
125 /// NSS field mask
126 #define RIU_NSS_MASK ((uint32_t)0x00000F00)
127 /// NSS field LSB position
128 #define RIU_NSS_LSB 8
129 /// NSS field width
130 #define RIU_NSS_WIDTH ((uint32_t)0x00000004)
131 /// NTX field mask
132 #define RIU_NTX_MASK ((uint32_t)0x000000F0)
133 /// NTX field LSB position
134 #define RIU_NTX_LSB 4
135 /// NTX field width
136 #define RIU_NTX_WIDTH ((uint32_t)0x00000004)
137 /// NRX field mask
138 #define RIU_NRX_MASK ((uint32_t)0x0000000F)
139 /// NRX field LSB position
140 #define RIU_NRX_LSB 0
141 /// NRX field width
142 #define RIU_NRX_WIDTH ((uint32_t)0x00000004)
143
144 /// RESERVED field reset value
145 #define RIU_RESERVED_RST 0x0
146 /// AGCRAMMODE field reset value
147 #define RIU_AGCRAMMODE_RST 0x2
148 /// IQCOMP field reset value
149 #define RIU_IQCOMP_RST 0x0
150 /// DSSSCORR field reset value
151 #define RIU_DSSSCORR_RST 0x1
152 /// FIQCOMP field reset value
153 #define RIU_FIQCOMP_RST 0x0
154 /// AGCSNR field reset value
155 #define RIU_AGCSNR_RST 0x1
156 /// RADAR field reset value
157 #define RIU_RADAR_RST 0x1
158 /// DSSSCCK field reset value
159 #define RIU_DSSSCCK_RST 0x1
160 /// CHBW field reset value
161 #define RIU_CHBW_RST 0x2
162 /// NSS field reset value
163 #define RIU_NSS_RST 0x2
164 /// NTX field reset value
165 #define RIU_NTX_RST 0x2
166 /// NRX field reset value
167 #define RIU_NRX_RST 0x2
168
169 /**
170 * @brief Unpacks RWNXVERSION's fields from current value of the RWNXVERSION register.
171 *
172 * Reads the RWNXVERSION register and populates all the _field variables with the corresponding
173 * values from the register.
174 *
175 * @param[out] reserved - Will be populated with the current value of this field from the register.
176 * @param[out] agcrammode - Will be populated with the current value of this field from the register.
177 * @param[out] iqcomp - Will be populated with the current value of this field from the register.
178 * @param[out] dssscorr - Will be populated with the current value of this field from the register.
179 * @param[out] fiqcomp - Will be populated with the current value of this field from the register.
180 * @param[out] agcsnr - Will be populated with the current value of this field from the register.
181 * @param[out] radar - Will be populated with the current value of this field from the register.
182 * @param[out] dssscck - Will be populated with the current value of this field from the register.
183 * @param[out] chbw - Will be populated with the current value of this field from the register.
184 * @param[out] nss - Will be populated with the current value of this field from the register.
185 * @param[out] ntx - Will be populated with the current value of this field from the register.
186 * @param[out] nrx - Will be populated with the current value of this field from the register.
187 */
riu_rwnxversion_unpack(uint8_t * reserved,uint8_t * agcrammode,uint8_t * iqcomp,uint8_t * dssscorr,uint8_t * fiqcomp,uint8_t * agcsnr,uint8_t * radar,uint8_t * dssscck,uint8_t * chbw,uint8_t * nss,uint8_t * ntx,uint8_t * nrx)188 __INLINE void riu_rwnxversion_unpack(uint8_t* reserved, uint8_t* agcrammode, uint8_t* iqcomp, uint8_t* dssscorr, uint8_t* fiqcomp, uint8_t* agcsnr, uint8_t* radar, uint8_t* dssscck, uint8_t* chbw, uint8_t* nss, uint8_t* ntx, uint8_t* nrx)
189 {
190 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
191
192 *reserved = (localVal & ((uint32_t)0xFF000000)) >> 24;
193 *agcrammode = (localVal & ((uint32_t)0x00C00000)) >> 22;
194 *iqcomp = (localVal & ((uint32_t)0x00200000)) >> 21;
195 *dssscorr = (localVal & ((uint32_t)0x00100000)) >> 20;
196 *fiqcomp = (localVal & ((uint32_t)0x00080000)) >> 19;
197 *agcsnr = (localVal & ((uint32_t)0x00040000)) >> 18;
198 *radar = (localVal & ((uint32_t)0x00010000)) >> 16;
199 *dssscck = (localVal & ((uint32_t)0x00004000)) >> 14;
200 *chbw = (localVal & ((uint32_t)0x00003000)) >> 12;
201 *nss = (localVal & ((uint32_t)0x00000F00)) >> 8;
202 *ntx = (localVal & ((uint32_t)0x000000F0)) >> 4;
203 *nrx = (localVal & ((uint32_t)0x0000000F)) >> 0;
204 }
205
206 /**
207 * @brief Returns the current value of the RESERVED field in the RWNXVERSION register.
208 *
209 * The RWNXVERSION register will be read and the RESERVED field's value will be returned.
210 *
211 * @return The current value of the RESERVED field in the RWNXVERSION register.
212 */
riu_reserved_getf(void)213 __INLINE uint8_t riu_reserved_getf(void)
214 {
215 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
216 return ((localVal & ((uint32_t)0xFF000000)) >> 24);
217 }
218
219 /**
220 * @brief Returns the current value of the AGCRAMMODE field in the RWNXVERSION register.
221 *
222 * The RWNXVERSION register will be read and the AGCRAMMODE field's value will be returned.
223 *
224 * @return The current value of the AGCRAMMODE field in the RWNXVERSION register.
225 */
riu_agcrammode_getf(void)226 __INLINE uint8_t riu_agcrammode_getf(void)
227 {
228 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
229 return ((localVal & ((uint32_t)0x00C00000)) >> 22);
230 }
231
232 /**
233 * @brief Returns the current value of the IQCOMP field in the RWNXVERSION register.
234 *
235 * The RWNXVERSION register will be read and the IQCOMP field's value will be returned.
236 *
237 * @return The current value of the IQCOMP field in the RWNXVERSION register.
238 */
riu_iqcomp_getf(void)239 __INLINE uint8_t riu_iqcomp_getf(void)
240 {
241 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
242 return ((localVal & ((uint32_t)0x00200000)) >> 21);
243 }
244
245 /**
246 * @brief Returns the current value of the DSSSCORR field in the RWNXVERSION register.
247 *
248 * The RWNXVERSION register will be read and the DSSSCORR field's value will be returned.
249 *
250 * @return The current value of the DSSSCORR field in the RWNXVERSION register.
251 */
riu_dssscorr_getf(void)252 __INLINE uint8_t riu_dssscorr_getf(void)
253 {
254 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
255 return ((localVal & ((uint32_t)0x00100000)) >> 20);
256 }
257
258 /**
259 * @brief Returns the current value of the FIQCOMP field in the RWNXVERSION register.
260 *
261 * The RWNXVERSION register will be read and the FIQCOMP field's value will be returned.
262 *
263 * @return The current value of the FIQCOMP field in the RWNXVERSION register.
264 */
riu_fiqcomp_getf(void)265 __INLINE uint8_t riu_fiqcomp_getf(void)
266 {
267 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
268 return ((localVal & ((uint32_t)0x00080000)) >> 19);
269 }
270
271 /**
272 * @brief Returns the current value of the AGCSNR field in the RWNXVERSION register.
273 *
274 * The RWNXVERSION register will be read and the AGCSNR field's value will be returned.
275 *
276 * @return The current value of the AGCSNR field in the RWNXVERSION register.
277 */
riu_agcsnr_getf(void)278 __INLINE uint8_t riu_agcsnr_getf(void)
279 {
280 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
281 return ((localVal & ((uint32_t)0x00040000)) >> 18);
282 }
283
284 /**
285 * @brief Returns the current value of the RADAR field in the RWNXVERSION register.
286 *
287 * The RWNXVERSION register will be read and the RADAR field's value will be returned.
288 *
289 * @return The current value of the RADAR field in the RWNXVERSION register.
290 */
riu_radar_getf(void)291 __INLINE uint8_t riu_radar_getf(void)
292 {
293 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
294 return ((localVal & ((uint32_t)0x00010000)) >> 16);
295 }
296
297 /**
298 * @brief Returns the current value of the DSSSCCK field in the RWNXVERSION register.
299 *
300 * The RWNXVERSION register will be read and the DSSSCCK field's value will be returned.
301 *
302 * @return The current value of the DSSSCCK field in the RWNXVERSION register.
303 */
riu_dssscck_getf(void)304 __INLINE uint8_t riu_dssscck_getf(void)
305 {
306 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
307 return ((localVal & ((uint32_t)0x00004000)) >> 14);
308 }
309
310 /**
311 * @brief Returns the current value of the CHBW field in the RWNXVERSION register.
312 *
313 * The RWNXVERSION register will be read and the CHBW field's value will be returned.
314 *
315 * @return The current value of the CHBW field in the RWNXVERSION register.
316 */
riu_chbw_getf(void)317 __INLINE uint8_t riu_chbw_getf(void)
318 {
319 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
320 return ((localVal & ((uint32_t)0x00003000)) >> 12);
321 }
322
323 /**
324 * @brief Returns the current value of the NSS field in the RWNXVERSION register.
325 *
326 * The RWNXVERSION register will be read and the NSS field's value will be returned.
327 *
328 * @return The current value of the NSS field in the RWNXVERSION register.
329 */
riu_nss_getf(void)330 __INLINE uint8_t riu_nss_getf(void)
331 {
332 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
333 return ((localVal & ((uint32_t)0x00000F00)) >> 8);
334 }
335
336 /**
337 * @brief Returns the current value of the NTX field in the RWNXVERSION register.
338 *
339 * The RWNXVERSION register will be read and the NTX field's value will be returned.
340 *
341 * @return The current value of the NTX field in the RWNXVERSION register.
342 */
riu_ntx_getf(void)343 __INLINE uint8_t riu_ntx_getf(void)
344 {
345 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
346 return ((localVal & ((uint32_t)0x000000F0)) >> 4);
347 }
348
349 /**
350 * @brief Returns the current value of the NRX field in the RWNXVERSION register.
351 *
352 * The RWNXVERSION register will be read and the NRX field's value will be returned.
353 *
354 * @return The current value of the NRX field in the RWNXVERSION register.
355 */
riu_nrx_getf(void)356 __INLINE uint8_t riu_nrx_getf(void)
357 {
358 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXVERSION_ADDR);
359 return ((localVal & ((uint32_t)0x0000000F)) >> 0);
360 }
361
362 /// @}
363
364 /**
365 * @name RWNXSTATICCONFIG register definitions
366 * <table>
367 * <caption id="RWNXSTATICCONFIG_BF">RWNXSTATICCONFIG bitfields</caption>
368 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
369 * <tr><td>01:00 <td> ACTIVEANT <td>R <td>R/W <td>0x0
370 * </table>
371 *
372 * @{
373 */
374
375 /// Address of the RWNXSTATICCONFIG register
376 #define RIU_RWNXSTATICCONFIG_ADDR 0x4033B004
377 /// Offset of the RWNXSTATICCONFIG register from the base address
378 #define RIU_RWNXSTATICCONFIG_OFFSET 0x00000004
379 /// Index of the RWNXSTATICCONFIG register
380 #define RIU_RWNXSTATICCONFIG_INDEX 0x00000001
381 /// Reset value of the RWNXSTATICCONFIG register
382 #define RIU_RWNXSTATICCONFIG_RESET 0x00000000
383
384 /**
385 * @brief Returns the current value of the RWNXSTATICCONFIG register.
386 * The RWNXSTATICCONFIG register will be read and its value returned.
387 * @return The current value of the RWNXSTATICCONFIG register.
388 */
riu_rwnxstaticconfig_get(void)389 __INLINE uint32_t riu_rwnxstaticconfig_get(void)
390 {
391 return PLATFORM_REG_READ(RIU_RWNXSTATICCONFIG_ADDR);
392 }
393
394 /**
395 * @brief Sets the RWNXSTATICCONFIG register to a value.
396 * The RWNXSTATICCONFIG register will be written.
397 * @param value - The value to write.
398 */
riu_rwnxstaticconfig_set(uint32_t value)399 __INLINE void riu_rwnxstaticconfig_set(uint32_t value)
400 {
401 PLATFORM_REG_WRITE(RIU_RWNXSTATICCONFIG_ADDR, value);
402 }
403
404 // field definitions
405 /// ACTIVEANT field mask
406 #define RIU_ACTIVEANT_MASK ((uint32_t)0x00000003)
407 /// ACTIVEANT field LSB position
408 #define RIU_ACTIVEANT_LSB 0
409 /// ACTIVEANT field width
410 #define RIU_ACTIVEANT_WIDTH ((uint32_t)0x00000002)
411
412 /// ACTIVEANT field reset value
413 #define RIU_ACTIVEANT_RST 0x0
414
415 /**
416 * @brief Returns the current value of the ACTIVEANT field in the RWNXSTATICCONFIG register.
417 *
418 * The RWNXSTATICCONFIG register will be read and the ACTIVEANT field's value will be returned.
419 *
420 * @return The current value of the ACTIVEANT field in the RWNXSTATICCONFIG register.
421 */
riu_activeant_getf(void)422 __INLINE uint8_t riu_activeant_getf(void)
423 {
424 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXSTATICCONFIG_ADDR);
425 return (localVal >> 0);
426 }
427
428 /**
429 * @brief Sets the ACTIVEANT field of the RWNXSTATICCONFIG register.
430 *
431 * The RWNXSTATICCONFIG register will be read, modified to contain the new field value, and written.
432 *
433 * @param[in] activeant - The value to set the field to.
434 */
riu_activeant_setf(uint8_t activeant)435 __INLINE void riu_activeant_setf(uint8_t activeant)
436 {
437 PLATFORM_REG_WRITE(RIU_RWNXSTATICCONFIG_ADDR, (uint32_t)activeant << 0);
438 }
439
440 /// @}
441
442 /**
443 * @name RWNXDYNAMICCONFIG register definitions
444 * <table>
445 * <caption id="RWNXDYNAMICCONFIG_BF">RWNXDYNAMICCONFIG bitfields</caption>
446 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
447 * <tr><td>16 <td>AGCINBDPOWSTARTCAPTURE <td>R/W <td>R/W <td>0
448 * </table>
449 *
450 * @{
451 */
452
453 /// Address of the RWNXDYNAMICCONFIG register
454 #define RIU_RWNXDYNAMICCONFIG_ADDR 0x4033B008
455 /// Offset of the RWNXDYNAMICCONFIG register from the base address
456 #define RIU_RWNXDYNAMICCONFIG_OFFSET 0x00000008
457 /// Index of the RWNXDYNAMICCONFIG register
458 #define RIU_RWNXDYNAMICCONFIG_INDEX 0x00000002
459 /// Reset value of the RWNXDYNAMICCONFIG register
460 #define RIU_RWNXDYNAMICCONFIG_RESET 0x00000000
461
462 /**
463 * @brief Returns the current value of the RWNXDYNAMICCONFIG register.
464 * The RWNXDYNAMICCONFIG register will be read and its value returned.
465 * @return The current value of the RWNXDYNAMICCONFIG register.
466 */
riu_rwnxdynamicconfig_get(void)467 __INLINE uint32_t riu_rwnxdynamicconfig_get(void)
468 {
469 return PLATFORM_REG_READ(RIU_RWNXDYNAMICCONFIG_ADDR);
470 }
471
472 /**
473 * @brief Sets the RWNXDYNAMICCONFIG register to a value.
474 * The RWNXDYNAMICCONFIG register will be written.
475 * @param value - The value to write.
476 */
riu_rwnxdynamicconfig_set(uint32_t value)477 __INLINE void riu_rwnxdynamicconfig_set(uint32_t value)
478 {
479 PLATFORM_REG_WRITE(RIU_RWNXDYNAMICCONFIG_ADDR, value);
480 }
481
482 // field definitions
483 /// AGCINBDPOWSTARTCAPTURE field bit
484 #define RIU_AGCINBDPOWSTARTCAPTURE_BIT ((uint32_t)0x00010000)
485 /// AGCINBDPOWSTARTCAPTURE field position
486 #define RIU_AGCINBDPOWSTARTCAPTURE_POS 16
487
488 /// AGCINBDPOWSTARTCAPTURE field reset value
489 #define RIU_AGCINBDPOWSTARTCAPTURE_RST 0x0
490
491 /**
492 * @brief Returns the current value of the AGCINBDPOWSTARTCAPTURE field in the RWNXDYNAMICCONFIG register.
493 *
494 * The RWNXDYNAMICCONFIG register will be read and the AGCINBDPOWSTARTCAPTURE field's value will be returned.
495 *
496 * @return The current value of the AGCINBDPOWSTARTCAPTURE field in the RWNXDYNAMICCONFIG register.
497 */
riu_agcinbdpowstartcapture_getf(void)498 __INLINE uint8_t riu_agcinbdpowstartcapture_getf(void)
499 {
500 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXDYNAMICCONFIG_ADDR);
501 return (localVal >> 16);
502 }
503
504 /**
505 * @brief Sets the AGCINBDPOWSTARTCAPTURE field of the RWNXDYNAMICCONFIG register.
506 *
507 * The RWNXDYNAMICCONFIG register will be read, modified to contain the new field value, and written.
508 *
509 * @param[in] agcinbdpowstartcapture - The value to set the field to.
510 */
riu_agcinbdpowstartcapture_setf(uint8_t agcinbdpowstartcapture)511 __INLINE void riu_agcinbdpowstartcapture_setf(uint8_t agcinbdpowstartcapture)
512 {
513 PLATFORM_REG_WRITE(RIU_RWNXDYNAMICCONFIG_ADDR, (uint32_t)agcinbdpowstartcapture << 16);
514 }
515
516 /// @}
517
518 /**
519 * @name RWNXIQCTRL register definitions
520 * <table>
521 * <caption id="RWNXIQCTRL_BF">RWNXIQCTRL bitfields</caption>
522 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
523 * <tr><td>28 <td> TXIQSWAPPATH1 <td>R <td>R/W <td>0
524 * <tr><td>27 <td> TXIQSWAPPATH0 <td>R <td>R/W <td>0
525 * <tr><td>23 <td> RXIQSWAPPATH1 <td>R <td>R/W <td>0
526 * <tr><td>22 <td> RXIQSWAPPATH0 <td>R <td>R/W <td>0
527 * <tr><td>15 <td> TXIQDELPATHQ1 <td>R <td>R/W <td>0
528 * <tr><td>14 <td> TXIQDELPATHI1 <td>R <td>R/W <td>0
529 * <tr><td>13 <td> TXIQDELPATHQ0 <td>R <td>R/W <td>0
530 * <tr><td>12 <td> TXIQDELPATHI0 <td>R <td>R/W <td>0
531 * <tr><td>05 <td> RXIQDELPATHQ1 <td>R <td>R/W <td>0
532 * <tr><td>04 <td> RXIQDELPATHI1 <td>R <td>R/W <td>0
533 * <tr><td>03 <td> RXIQDELPATHQ0 <td>R <td>R/W <td>0
534 * <tr><td>02 <td> RXIQDELPATHI0 <td>R <td>R/W <td>0
535 * <tr><td>01 <td> TXC2SDISBCFG <td>R <td>R/W <td>0
536 * <tr><td>00 <td> RXC2SDISBCFG <td>R <td>R/W <td>0
537 * </table>
538 *
539 * @{
540 */
541
542 /// Address of the RWNXIQCTRL register
543 #define RIU_RWNXIQCTRL_ADDR 0x4033B01C
544 /// Offset of the RWNXIQCTRL register from the base address
545 #define RIU_RWNXIQCTRL_OFFSET 0x0000001C
546 /// Index of the RWNXIQCTRL register
547 #define RIU_RWNXIQCTRL_INDEX 0x00000007
548 /// Reset value of the RWNXIQCTRL register
549 #define RIU_RWNXIQCTRL_RESET 0x00000000
550
551 /**
552 * @brief Returns the current value of the RWNXIQCTRL register.
553 * The RWNXIQCTRL register will be read and its value returned.
554 * @return The current value of the RWNXIQCTRL register.
555 */
riu_rwnxiqctrl_get(void)556 __INLINE uint32_t riu_rwnxiqctrl_get(void)
557 {
558 return PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
559 }
560
561 /**
562 * @brief Sets the RWNXIQCTRL register to a value.
563 * The RWNXIQCTRL register will be written.
564 * @param value - The value to write.
565 */
riu_rwnxiqctrl_set(uint32_t value)566 __INLINE void riu_rwnxiqctrl_set(uint32_t value)
567 {
568 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, value);
569 }
570
571 // field definitions
572 /// TXIQSWAPPATH1 field bit
573 #define RIU_TXIQSWAPPATH1_BIT ((uint32_t)0x10000000)
574 /// TXIQSWAPPATH1 field position
575 #define RIU_TXIQSWAPPATH1_POS 28
576 /// TXIQSWAPPATH0 field bit
577 #define RIU_TXIQSWAPPATH0_BIT ((uint32_t)0x08000000)
578 /// TXIQSWAPPATH0 field position
579 #define RIU_TXIQSWAPPATH0_POS 27
580 /// RXIQSWAPPATH1 field bit
581 #define RIU_RXIQSWAPPATH1_BIT ((uint32_t)0x00800000)
582 /// RXIQSWAPPATH1 field position
583 #define RIU_RXIQSWAPPATH1_POS 23
584 /// RXIQSWAPPATH0 field bit
585 #define RIU_RXIQSWAPPATH0_BIT ((uint32_t)0x00400000)
586 /// RXIQSWAPPATH0 field position
587 #define RIU_RXIQSWAPPATH0_POS 22
588 /// TXIQDELPATHQ1 field bit
589 #define RIU_TXIQDELPATHQ1_BIT ((uint32_t)0x00008000)
590 /// TXIQDELPATHQ1 field position
591 #define RIU_TXIQDELPATHQ1_POS 15
592 /// TXIQDELPATHI1 field bit
593 #define RIU_TXIQDELPATHI1_BIT ((uint32_t)0x00004000)
594 /// TXIQDELPATHI1 field position
595 #define RIU_TXIQDELPATHI1_POS 14
596 /// TXIQDELPATHQ0 field bit
597 #define RIU_TXIQDELPATHQ0_BIT ((uint32_t)0x00002000)
598 /// TXIQDELPATHQ0 field position
599 #define RIU_TXIQDELPATHQ0_POS 13
600 /// TXIQDELPATHI0 field bit
601 #define RIU_TXIQDELPATHI0_BIT ((uint32_t)0x00001000)
602 /// TXIQDELPATHI0 field position
603 #define RIU_TXIQDELPATHI0_POS 12
604 /// RXIQDELPATHQ1 field bit
605 #define RIU_RXIQDELPATHQ1_BIT ((uint32_t)0x00000020)
606 /// RXIQDELPATHQ1 field position
607 #define RIU_RXIQDELPATHQ1_POS 5
608 /// RXIQDELPATHI1 field bit
609 #define RIU_RXIQDELPATHI1_BIT ((uint32_t)0x00000010)
610 /// RXIQDELPATHI1 field position
611 #define RIU_RXIQDELPATHI1_POS 4
612 /// RXIQDELPATHQ0 field bit
613 #define RIU_RXIQDELPATHQ0_BIT ((uint32_t)0x00000008)
614 /// RXIQDELPATHQ0 field position
615 #define RIU_RXIQDELPATHQ0_POS 3
616 /// RXIQDELPATHI0 field bit
617 #define RIU_RXIQDELPATHI0_BIT ((uint32_t)0x00000004)
618 /// RXIQDELPATHI0 field position
619 #define RIU_RXIQDELPATHI0_POS 2
620 /// TXC2SDISBCFG field bit
621 #define RIU_TXC2SDISBCFG_BIT ((uint32_t)0x00000002)
622 /// TXC2SDISBCFG field position
623 #define RIU_TXC2SDISBCFG_POS 1
624 /// RXC2SDISBCFG field bit
625 #define RIU_RXC2SDISBCFG_BIT ((uint32_t)0x00000001)
626 /// RXC2SDISBCFG field position
627 #define RIU_RXC2SDISBCFG_POS 0
628
629 /// TXIQSWAPPATH1 field reset value
630 #define RIU_TXIQSWAPPATH1_RST 0x0
631 /// TXIQSWAPPATH0 field reset value
632 #define RIU_TXIQSWAPPATH0_RST 0x0
633 /// RXIQSWAPPATH1 field reset value
634 #define RIU_RXIQSWAPPATH1_RST 0x0
635 /// RXIQSWAPPATH0 field reset value
636 #define RIU_RXIQSWAPPATH0_RST 0x0
637 /// TXIQDELPATHQ1 field reset value
638 #define RIU_TXIQDELPATHQ1_RST 0x0
639 /// TXIQDELPATHI1 field reset value
640 #define RIU_TXIQDELPATHI1_RST 0x0
641 /// TXIQDELPATHQ0 field reset value
642 #define RIU_TXIQDELPATHQ0_RST 0x0
643 /// TXIQDELPATHI0 field reset value
644 #define RIU_TXIQDELPATHI0_RST 0x0
645 /// RXIQDELPATHQ1 field reset value
646 #define RIU_RXIQDELPATHQ1_RST 0x0
647 /// RXIQDELPATHI1 field reset value
648 #define RIU_RXIQDELPATHI1_RST 0x0
649 /// RXIQDELPATHQ0 field reset value
650 #define RIU_RXIQDELPATHQ0_RST 0x0
651 /// RXIQDELPATHI0 field reset value
652 #define RIU_RXIQDELPATHI0_RST 0x0
653 /// TXC2SDISBCFG field reset value
654 #define RIU_TXC2SDISBCFG_RST 0x0
655 /// RXC2SDISBCFG field reset value
656 #define RIU_RXC2SDISBCFG_RST 0x0
657
658 /**
659 * @brief Constructs a value for the RWNXIQCTRL register given values for its fields
660 * and writes the value to the register.
661 *
662 * @param[in] txiqswappath1 - The value to use for the TXIQSWAPPATH1 field.
663 * @param[in] txiqswappath0 - The value to use for the TXIQSWAPPATH0 field.
664 * @param[in] rxiqswappath1 - The value to use for the RXIQSWAPPATH1 field.
665 * @param[in] rxiqswappath0 - The value to use for the RXIQSWAPPATH0 field.
666 * @param[in] txiqdelpathq1 - The value to use for the TXIQDELPATHQ1 field.
667 * @param[in] txiqdelpathi1 - The value to use for the TXIQDELPATHI1 field.
668 * @param[in] txiqdelpathq0 - The value to use for the TXIQDELPATHQ0 field.
669 * @param[in] txiqdelpathi0 - The value to use for the TXIQDELPATHI0 field.
670 * @param[in] rxiqdelpathq1 - The value to use for the RXIQDELPATHQ1 field.
671 * @param[in] rxiqdelpathi1 - The value to use for the RXIQDELPATHI1 field.
672 * @param[in] rxiqdelpathq0 - The value to use for the RXIQDELPATHQ0 field.
673 * @param[in] rxiqdelpathi0 - The value to use for the RXIQDELPATHI0 field.
674 * @param[in] txc2sdisbcfg - The value to use for the TXC2SDISBCFG field.
675 * @param[in] rxc2sdisbcfg - The value to use for the RXC2SDISBCFG field.
676 */
riu_rwnxiqctrl_pack(uint8_t txiqswappath1,uint8_t txiqswappath0,uint8_t rxiqswappath1,uint8_t rxiqswappath0,uint8_t txiqdelpathq1,uint8_t txiqdelpathi1,uint8_t txiqdelpathq0,uint8_t txiqdelpathi0,uint8_t rxiqdelpathq1,uint8_t rxiqdelpathi1,uint8_t rxiqdelpathq0,uint8_t rxiqdelpathi0,uint8_t txc2sdisbcfg,uint8_t rxc2sdisbcfg)677 __INLINE void riu_rwnxiqctrl_pack(uint8_t txiqswappath1, uint8_t txiqswappath0, uint8_t rxiqswappath1, uint8_t rxiqswappath0, uint8_t txiqdelpathq1, uint8_t txiqdelpathi1, uint8_t txiqdelpathq0, uint8_t txiqdelpathi0, uint8_t rxiqdelpathq1, uint8_t rxiqdelpathi1, uint8_t rxiqdelpathq0, uint8_t rxiqdelpathi0, uint8_t txc2sdisbcfg, uint8_t rxc2sdisbcfg)
678 {
679 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, ((uint32_t)txiqswappath1 << 28) | ((uint32_t)txiqswappath0 << 27) | ((uint32_t)rxiqswappath1 << 23) | ((uint32_t)rxiqswappath0 << 22) | ((uint32_t)txiqdelpathq1 << 15) | ((uint32_t)txiqdelpathi1 << 14) | ((uint32_t)txiqdelpathq0 << 13) | ((uint32_t)txiqdelpathi0 << 12) | ((uint32_t)rxiqdelpathq1 << 5) | ((uint32_t)rxiqdelpathi1 << 4) | ((uint32_t)rxiqdelpathq0 << 3) | ((uint32_t)rxiqdelpathi0 << 2) | ((uint32_t)txc2sdisbcfg << 1) | ((uint32_t)rxc2sdisbcfg << 0));
680 }
681
682 /**
683 * @brief Unpacks RWNXIQCTRL's fields from current value of the RWNXIQCTRL register.
684 *
685 * Reads the RWNXIQCTRL register and populates all the _field variables with the corresponding
686 * values from the register.
687 *
688 * @param[out] txiqswappath1 - Will be populated with the current value of this field from the register.
689 * @param[out] txiqswappath0 - Will be populated with the current value of this field from the register.
690 * @param[out] rxiqswappath1 - Will be populated with the current value of this field from the register.
691 * @param[out] rxiqswappath0 - Will be populated with the current value of this field from the register.
692 * @param[out] txiqdelpathq1 - Will be populated with the current value of this field from the register.
693 * @param[out] txiqdelpathi1 - Will be populated with the current value of this field from the register.
694 * @param[out] txiqdelpathq0 - Will be populated with the current value of this field from the register.
695 * @param[out] txiqdelpathi0 - Will be populated with the current value of this field from the register.
696 * @param[out] rxiqdelpathq1 - Will be populated with the current value of this field from the register.
697 * @param[out] rxiqdelpathi1 - Will be populated with the current value of this field from the register.
698 * @param[out] rxiqdelpathq0 - Will be populated with the current value of this field from the register.
699 * @param[out] rxiqdelpathi0 - Will be populated with the current value of this field from the register.
700 * @param[out] txc2sdisbcfg - Will be populated with the current value of this field from the register.
701 * @param[out] rxc2sdisbcfg - Will be populated with the current value of this field from the register.
702 */
riu_rwnxiqctrl_unpack(uint8_t * txiqswappath1,uint8_t * txiqswappath0,uint8_t * rxiqswappath1,uint8_t * rxiqswappath0,uint8_t * txiqdelpathq1,uint8_t * txiqdelpathi1,uint8_t * txiqdelpathq0,uint8_t * txiqdelpathi0,uint8_t * rxiqdelpathq1,uint8_t * rxiqdelpathi1,uint8_t * rxiqdelpathq0,uint8_t * rxiqdelpathi0,uint8_t * txc2sdisbcfg,uint8_t * rxc2sdisbcfg)703 __INLINE void riu_rwnxiqctrl_unpack(uint8_t* txiqswappath1, uint8_t* txiqswappath0, uint8_t* rxiqswappath1, uint8_t* rxiqswappath0, uint8_t* txiqdelpathq1, uint8_t* txiqdelpathi1, uint8_t* txiqdelpathq0, uint8_t* txiqdelpathi0, uint8_t* rxiqdelpathq1, uint8_t* rxiqdelpathi1, uint8_t* rxiqdelpathq0, uint8_t* rxiqdelpathi0, uint8_t* txc2sdisbcfg, uint8_t* rxc2sdisbcfg)
704 {
705 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
706
707 *txiqswappath1 = (localVal & ((uint32_t)0x10000000)) >> 28;
708 *txiqswappath0 = (localVal & ((uint32_t)0x08000000)) >> 27;
709 *rxiqswappath1 = (localVal & ((uint32_t)0x00800000)) >> 23;
710 *rxiqswappath0 = (localVal & ((uint32_t)0x00400000)) >> 22;
711 *txiqdelpathq1 = (localVal & ((uint32_t)0x00008000)) >> 15;
712 *txiqdelpathi1 = (localVal & ((uint32_t)0x00004000)) >> 14;
713 *txiqdelpathq0 = (localVal & ((uint32_t)0x00002000)) >> 13;
714 *txiqdelpathi0 = (localVal & ((uint32_t)0x00001000)) >> 12;
715 *rxiqdelpathq1 = (localVal & ((uint32_t)0x00000020)) >> 5;
716 *rxiqdelpathi1 = (localVal & ((uint32_t)0x00000010)) >> 4;
717 *rxiqdelpathq0 = (localVal & ((uint32_t)0x00000008)) >> 3;
718 *rxiqdelpathi0 = (localVal & ((uint32_t)0x00000004)) >> 2;
719 *txc2sdisbcfg = (localVal & ((uint32_t)0x00000002)) >> 1;
720 *rxc2sdisbcfg = (localVal & ((uint32_t)0x00000001)) >> 0;
721 }
722
723 /**
724 * @brief Returns the current value of the TXIQSWAPPATH1 field in the RWNXIQCTRL register.
725 *
726 * The RWNXIQCTRL register will be read and the TXIQSWAPPATH1 field's value will be returned.
727 *
728 * @return The current value of the TXIQSWAPPATH1 field in the RWNXIQCTRL register.
729 */
riu_txiqswappath1_getf(void)730 __INLINE uint8_t riu_txiqswappath1_getf(void)
731 {
732 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
733 return ((localVal & ((uint32_t)0x10000000)) >> 28);
734 }
735
736 /**
737 * @brief Sets the TXIQSWAPPATH1 field of the RWNXIQCTRL register.
738 *
739 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
740 *
741 * @param[in] txiqswappath1 - The value to set the field to.
742 */
riu_txiqswappath1_setf(uint8_t txiqswappath1)743 __INLINE void riu_txiqswappath1_setf(uint8_t txiqswappath1)
744 {
745 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x10000000)) | ((uint32_t)txiqswappath1 << 28));
746 }
747
748 /**
749 * @brief Returns the current value of the TXIQSWAPPATH0 field in the RWNXIQCTRL register.
750 *
751 * The RWNXIQCTRL register will be read and the TXIQSWAPPATH0 field's value will be returned.
752 *
753 * @return The current value of the TXIQSWAPPATH0 field in the RWNXIQCTRL register.
754 */
riu_txiqswappath0_getf(void)755 __INLINE uint8_t riu_txiqswappath0_getf(void)
756 {
757 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
758 return ((localVal & ((uint32_t)0x08000000)) >> 27);
759 }
760
761 /**
762 * @brief Sets the TXIQSWAPPATH0 field of the RWNXIQCTRL register.
763 *
764 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
765 *
766 * @param[in] txiqswappath0 - The value to set the field to.
767 */
riu_txiqswappath0_setf(uint8_t txiqswappath0)768 __INLINE void riu_txiqswappath0_setf(uint8_t txiqswappath0)
769 {
770 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x08000000)) | ((uint32_t)txiqswappath0 << 27));
771 }
772
773 /**
774 * @brief Returns the current value of the RXIQSWAPPATH1 field in the RWNXIQCTRL register.
775 *
776 * The RWNXIQCTRL register will be read and the RXIQSWAPPATH1 field's value will be returned.
777 *
778 * @return The current value of the RXIQSWAPPATH1 field in the RWNXIQCTRL register.
779 */
riu_rxiqswappath1_getf(void)780 __INLINE uint8_t riu_rxiqswappath1_getf(void)
781 {
782 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
783 return ((localVal & ((uint32_t)0x00800000)) >> 23);
784 }
785
786 /**
787 * @brief Sets the RXIQSWAPPATH1 field of the RWNXIQCTRL register.
788 *
789 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
790 *
791 * @param[in] rxiqswappath1 - The value to set the field to.
792 */
riu_rxiqswappath1_setf(uint8_t rxiqswappath1)793 __INLINE void riu_rxiqswappath1_setf(uint8_t rxiqswappath1)
794 {
795 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x00800000)) | ((uint32_t)rxiqswappath1 << 23));
796 }
797
798 /**
799 * @brief Returns the current value of the RXIQSWAPPATH0 field in the RWNXIQCTRL register.
800 *
801 * The RWNXIQCTRL register will be read and the RXIQSWAPPATH0 field's value will be returned.
802 *
803 * @return The current value of the RXIQSWAPPATH0 field in the RWNXIQCTRL register.
804 */
riu_rxiqswappath0_getf(void)805 __INLINE uint8_t riu_rxiqswappath0_getf(void)
806 {
807 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
808 return ((localVal & ((uint32_t)0x00400000)) >> 22);
809 }
810
811 /**
812 * @brief Sets the RXIQSWAPPATH0 field of the RWNXIQCTRL register.
813 *
814 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
815 *
816 * @param[in] rxiqswappath0 - The value to set the field to.
817 */
riu_rxiqswappath0_setf(uint8_t rxiqswappath0)818 __INLINE void riu_rxiqswappath0_setf(uint8_t rxiqswappath0)
819 {
820 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x00400000)) | ((uint32_t)rxiqswappath0 << 22));
821 }
822
823 /**
824 * @brief Returns the current value of the TXIQDELPATHQ1 field in the RWNXIQCTRL register.
825 *
826 * The RWNXIQCTRL register will be read and the TXIQDELPATHQ1 field's value will be returned.
827 *
828 * @return The current value of the TXIQDELPATHQ1 field in the RWNXIQCTRL register.
829 */
riu_txiqdelpathq1_getf(void)830 __INLINE uint8_t riu_txiqdelpathq1_getf(void)
831 {
832 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
833 return ((localVal & ((uint32_t)0x00008000)) >> 15);
834 }
835
836 /**
837 * @brief Sets the TXIQDELPATHQ1 field of the RWNXIQCTRL register.
838 *
839 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
840 *
841 * @param[in] txiqdelpathq1 - The value to set the field to.
842 */
riu_txiqdelpathq1_setf(uint8_t txiqdelpathq1)843 __INLINE void riu_txiqdelpathq1_setf(uint8_t txiqdelpathq1)
844 {
845 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x00008000)) | ((uint32_t)txiqdelpathq1 << 15));
846 }
847
848 /**
849 * @brief Returns the current value of the TXIQDELPATHI1 field in the RWNXIQCTRL register.
850 *
851 * The RWNXIQCTRL register will be read and the TXIQDELPATHI1 field's value will be returned.
852 *
853 * @return The current value of the TXIQDELPATHI1 field in the RWNXIQCTRL register.
854 */
riu_txiqdelpathi1_getf(void)855 __INLINE uint8_t riu_txiqdelpathi1_getf(void)
856 {
857 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
858 return ((localVal & ((uint32_t)0x00004000)) >> 14);
859 }
860
861 /**
862 * @brief Sets the TXIQDELPATHI1 field of the RWNXIQCTRL register.
863 *
864 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
865 *
866 * @param[in] txiqdelpathi1 - The value to set the field to.
867 */
riu_txiqdelpathi1_setf(uint8_t txiqdelpathi1)868 __INLINE void riu_txiqdelpathi1_setf(uint8_t txiqdelpathi1)
869 {
870 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x00004000)) | ((uint32_t)txiqdelpathi1 << 14));
871 }
872
873 /**
874 * @brief Returns the current value of the TXIQDELPATHQ0 field in the RWNXIQCTRL register.
875 *
876 * The RWNXIQCTRL register will be read and the TXIQDELPATHQ0 field's value will be returned.
877 *
878 * @return The current value of the TXIQDELPATHQ0 field in the RWNXIQCTRL register.
879 */
riu_txiqdelpathq0_getf(void)880 __INLINE uint8_t riu_txiqdelpathq0_getf(void)
881 {
882 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
883 return ((localVal & ((uint32_t)0x00002000)) >> 13);
884 }
885
886 /**
887 * @brief Sets the TXIQDELPATHQ0 field of the RWNXIQCTRL register.
888 *
889 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
890 *
891 * @param[in] txiqdelpathq0 - The value to set the field to.
892 */
riu_txiqdelpathq0_setf(uint8_t txiqdelpathq0)893 __INLINE void riu_txiqdelpathq0_setf(uint8_t txiqdelpathq0)
894 {
895 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x00002000)) | ((uint32_t)txiqdelpathq0 << 13));
896 }
897
898 /**
899 * @brief Returns the current value of the TXIQDELPATHI0 field in the RWNXIQCTRL register.
900 *
901 * The RWNXIQCTRL register will be read and the TXIQDELPATHI0 field's value will be returned.
902 *
903 * @return The current value of the TXIQDELPATHI0 field in the RWNXIQCTRL register.
904 */
riu_txiqdelpathi0_getf(void)905 __INLINE uint8_t riu_txiqdelpathi0_getf(void)
906 {
907 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
908 return ((localVal & ((uint32_t)0x00001000)) >> 12);
909 }
910
911 /**
912 * @brief Sets the TXIQDELPATHI0 field of the RWNXIQCTRL register.
913 *
914 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
915 *
916 * @param[in] txiqdelpathi0 - The value to set the field to.
917 */
riu_txiqdelpathi0_setf(uint8_t txiqdelpathi0)918 __INLINE void riu_txiqdelpathi0_setf(uint8_t txiqdelpathi0)
919 {
920 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x00001000)) | ((uint32_t)txiqdelpathi0 << 12));
921 }
922
923 /**
924 * @brief Returns the current value of the RXIQDELPATHQ1 field in the RWNXIQCTRL register.
925 *
926 * The RWNXIQCTRL register will be read and the RXIQDELPATHQ1 field's value will be returned.
927 *
928 * @return The current value of the RXIQDELPATHQ1 field in the RWNXIQCTRL register.
929 */
riu_rxiqdelpathq1_getf(void)930 __INLINE uint8_t riu_rxiqdelpathq1_getf(void)
931 {
932 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
933 return ((localVal & ((uint32_t)0x00000020)) >> 5);
934 }
935
936 /**
937 * @brief Sets the RXIQDELPATHQ1 field of the RWNXIQCTRL register.
938 *
939 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
940 *
941 * @param[in] rxiqdelpathq1 - The value to set the field to.
942 */
riu_rxiqdelpathq1_setf(uint8_t rxiqdelpathq1)943 __INLINE void riu_rxiqdelpathq1_setf(uint8_t rxiqdelpathq1)
944 {
945 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x00000020)) | ((uint32_t)rxiqdelpathq1 << 5));
946 }
947
948 /**
949 * @brief Returns the current value of the RXIQDELPATHI1 field in the RWNXIQCTRL register.
950 *
951 * The RWNXIQCTRL register will be read and the RXIQDELPATHI1 field's value will be returned.
952 *
953 * @return The current value of the RXIQDELPATHI1 field in the RWNXIQCTRL register.
954 */
riu_rxiqdelpathi1_getf(void)955 __INLINE uint8_t riu_rxiqdelpathi1_getf(void)
956 {
957 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
958 return ((localVal & ((uint32_t)0x00000010)) >> 4);
959 }
960
961 /**
962 * @brief Sets the RXIQDELPATHI1 field of the RWNXIQCTRL register.
963 *
964 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
965 *
966 * @param[in] rxiqdelpathi1 - The value to set the field to.
967 */
riu_rxiqdelpathi1_setf(uint8_t rxiqdelpathi1)968 __INLINE void riu_rxiqdelpathi1_setf(uint8_t rxiqdelpathi1)
969 {
970 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x00000010)) | ((uint32_t)rxiqdelpathi1 << 4));
971 }
972
973 /**
974 * @brief Returns the current value of the RXIQDELPATHQ0 field in the RWNXIQCTRL register.
975 *
976 * The RWNXIQCTRL register will be read and the RXIQDELPATHQ0 field's value will be returned.
977 *
978 * @return The current value of the RXIQDELPATHQ0 field in the RWNXIQCTRL register.
979 */
riu_rxiqdelpathq0_getf(void)980 __INLINE uint8_t riu_rxiqdelpathq0_getf(void)
981 {
982 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
983 return ((localVal & ((uint32_t)0x00000008)) >> 3);
984 }
985
986 /**
987 * @brief Sets the RXIQDELPATHQ0 field of the RWNXIQCTRL register.
988 *
989 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
990 *
991 * @param[in] rxiqdelpathq0 - The value to set the field to.
992 */
riu_rxiqdelpathq0_setf(uint8_t rxiqdelpathq0)993 __INLINE void riu_rxiqdelpathq0_setf(uint8_t rxiqdelpathq0)
994 {
995 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x00000008)) | ((uint32_t)rxiqdelpathq0 << 3));
996 }
997
998 /**
999 * @brief Returns the current value of the RXIQDELPATHI0 field in the RWNXIQCTRL register.
1000 *
1001 * The RWNXIQCTRL register will be read and the RXIQDELPATHI0 field's value will be returned.
1002 *
1003 * @return The current value of the RXIQDELPATHI0 field in the RWNXIQCTRL register.
1004 */
riu_rxiqdelpathi0_getf(void)1005 __INLINE uint8_t riu_rxiqdelpathi0_getf(void)
1006 {
1007 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
1008 return ((localVal & ((uint32_t)0x00000004)) >> 2);
1009 }
1010
1011 /**
1012 * @brief Sets the RXIQDELPATHI0 field of the RWNXIQCTRL register.
1013 *
1014 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
1015 *
1016 * @param[in] rxiqdelpathi0 - The value to set the field to.
1017 */
riu_rxiqdelpathi0_setf(uint8_t rxiqdelpathi0)1018 __INLINE void riu_rxiqdelpathi0_setf(uint8_t rxiqdelpathi0)
1019 {
1020 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x00000004)) | ((uint32_t)rxiqdelpathi0 << 2));
1021 }
1022
1023 /**
1024 * @brief Returns the current value of the TXC2SDISBCFG field in the RWNXIQCTRL register.
1025 *
1026 * The RWNXIQCTRL register will be read and the TXC2SDISBCFG field's value will be returned.
1027 *
1028 * @return The current value of the TXC2SDISBCFG field in the RWNXIQCTRL register.
1029 */
riu_txc2sdisbcfg_getf(void)1030 __INLINE uint8_t riu_txc2sdisbcfg_getf(void)
1031 {
1032 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
1033 return ((localVal & ((uint32_t)0x00000002)) >> 1);
1034 }
1035
1036 /**
1037 * @brief Sets the TXC2SDISBCFG field of the RWNXIQCTRL register.
1038 *
1039 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
1040 *
1041 * @param[in] txc2sdisbcfg - The value to set the field to.
1042 */
riu_txc2sdisbcfg_setf(uint8_t txc2sdisbcfg)1043 __INLINE void riu_txc2sdisbcfg_setf(uint8_t txc2sdisbcfg)
1044 {
1045 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x00000002)) | ((uint32_t)txc2sdisbcfg << 1));
1046 }
1047
1048 /**
1049 * @brief Returns the current value of the RXC2SDISBCFG field in the RWNXIQCTRL register.
1050 *
1051 * The RWNXIQCTRL register will be read and the RXC2SDISBCFG field's value will be returned.
1052 *
1053 * @return The current value of the RXC2SDISBCFG field in the RWNXIQCTRL register.
1054 */
riu_rxc2sdisbcfg_getf(void)1055 __INLINE uint8_t riu_rxc2sdisbcfg_getf(void)
1056 {
1057 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR);
1058 return ((localVal & ((uint32_t)0x00000001)) >> 0);
1059 }
1060
1061 /**
1062 * @brief Sets the RXC2SDISBCFG field of the RWNXIQCTRL register.
1063 *
1064 * The RWNXIQCTRL register will be read, modified to contain the new field value, and written.
1065 *
1066 * @param[in] rxc2sdisbcfg - The value to set the field to.
1067 */
riu_rxc2sdisbcfg_setf(uint8_t rxc2sdisbcfg)1068 __INLINE void riu_rxc2sdisbcfg_setf(uint8_t rxc2sdisbcfg)
1069 {
1070 PLATFORM_REG_WRITE(RIU_RWNXIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXIQCTRL_ADDR) & ~((uint32_t)0x00000001)) | ((uint32_t)rxc2sdisbcfg << 0));
1071 }
1072
1073 /// @}
1074
1075 /**
1076 * @name RWNXMACSTATICCONFIG register definitions
1077 * <table>
1078 * <caption id="RWNXMACSTATICCONFIG_BF">RWNXMACSTATICCONFIG bitfields</caption>
1079 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
1080 * <tr><td>30 <td> CRX <td>R <td>R/W <td>1
1081 * <tr><td>29 <td> LNA_EN <td>R <td>R/W <td>1
1082 * <tr><td>27 <td> PA_EN <td>R <td>R/W <td>0
1083 * <tr><td>01:00 <td> PSSELECT <td>R <td>R/W <td>0x0
1084 * </table>
1085 *
1086 * @{
1087 */
1088
1089 /// Address of the RWNXMACSTATICCONFIG register
1090 #define RIU_RWNXMACSTATICCONFIG_ADDR 0x4033B080
1091 /// Offset of the RWNXMACSTATICCONFIG register from the base address
1092 #define RIU_RWNXMACSTATICCONFIG_OFFSET 0x00000080
1093 /// Index of the RWNXMACSTATICCONFIG register
1094 #define RIU_RWNXMACSTATICCONFIG_INDEX 0x00000020
1095 /// Reset value of the RWNXMACSTATICCONFIG register
1096 #define RIU_RWNXMACSTATICCONFIG_RESET 0x60000000
1097
1098 /**
1099 * @brief Returns the current value of the RWNXMACSTATICCONFIG register.
1100 * The RWNXMACSTATICCONFIG register will be read and its value returned.
1101 * @return The current value of the RWNXMACSTATICCONFIG register.
1102 */
riu_rwnxmacstaticconfig_get(void)1103 __INLINE uint32_t riu_rwnxmacstaticconfig_get(void)
1104 {
1105 return PLATFORM_REG_READ(RIU_RWNXMACSTATICCONFIG_ADDR);
1106 }
1107
1108 /**
1109 * @brief Sets the RWNXMACSTATICCONFIG register to a value.
1110 * The RWNXMACSTATICCONFIG register will be written.
1111 * @param value - The value to write.
1112 */
riu_rwnxmacstaticconfig_set(uint32_t value)1113 __INLINE void riu_rwnxmacstaticconfig_set(uint32_t value)
1114 {
1115 PLATFORM_REG_WRITE(RIU_RWNXMACSTATICCONFIG_ADDR, value);
1116 }
1117
1118 // field definitions
1119 /// CRX field bit
1120 #define RIU_CRX_BIT ((uint32_t)0x40000000)
1121 /// CRX field position
1122 #define RIU_CRX_POS 30
1123 /// LNA_EN field bit
1124 #define RIU_LNA_EN_BIT ((uint32_t)0x20000000)
1125 /// LNA_EN field position
1126 #define RIU_LNA_EN_POS 29
1127 /// PA_EN field bit
1128 #define RIU_PA_EN_BIT ((uint32_t)0x08000000)
1129 /// PA_EN field position
1130 #define RIU_PA_EN_POS 27
1131 /// PSSELECT field mask
1132 #define RIU_PSSELECT_MASK ((uint32_t)0x00000003)
1133 /// PSSELECT field LSB position
1134 #define RIU_PSSELECT_LSB 0
1135 /// PSSELECT field width
1136 #define RIU_PSSELECT_WIDTH ((uint32_t)0x00000002)
1137
1138 /// CRX field reset value
1139 #define RIU_CRX_RST 0x1
1140 /// LNA_EN field reset value
1141 #define RIU_LNA_EN_RST 0x1
1142 /// PA_EN field reset value
1143 #define RIU_PA_EN_RST 0x0
1144 /// PSSELECT field reset value
1145 #define RIU_PSSELECT_RST 0x0
1146
1147 /**
1148 * @brief Constructs a value for the RWNXMACSTATICCONFIG register given values for its fields
1149 * and writes the value to the register.
1150 *
1151 * @param[in] crx - The value to use for the CRX field.
1152 * @param[in] lnaen - The value to use for the LNA_EN field.
1153 * @param[in] paen - The value to use for the PA_EN field.
1154 * @param[in] psselect - The value to use for the PSSELECT field.
1155 */
riu_rwnxmacstaticconfig_pack(uint8_t crx,uint8_t lnaen,uint8_t paen,uint8_t psselect)1156 __INLINE void riu_rwnxmacstaticconfig_pack(uint8_t crx, uint8_t lnaen, uint8_t paen, uint8_t psselect)
1157 {
1158 PLATFORM_REG_WRITE(RIU_RWNXMACSTATICCONFIG_ADDR, ((uint32_t)crx << 30) | ((uint32_t)lnaen << 29) | ((uint32_t)paen << 27) | ((uint32_t)psselect << 0));
1159 }
1160
1161 /**
1162 * @brief Unpacks RWNXMACSTATICCONFIG's fields from current value of the RWNXMACSTATICCONFIG register.
1163 *
1164 * Reads the RWNXMACSTATICCONFIG register and populates all the _field variables with the corresponding
1165 * values from the register.
1166 *
1167 * @param[out] crx - Will be populated with the current value of this field from the register.
1168 * @param[out] lnaen - Will be populated with the current value of this field from the register.
1169 * @param[out] paen - Will be populated with the current value of this field from the register.
1170 * @param[out] psselect - Will be populated with the current value of this field from the register.
1171 */
riu_rwnxmacstaticconfig_unpack(uint8_t * crx,uint8_t * lnaen,uint8_t * paen,uint8_t * psselect)1172 __INLINE void riu_rwnxmacstaticconfig_unpack(uint8_t* crx, uint8_t* lnaen, uint8_t* paen, uint8_t* psselect)
1173 {
1174 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACSTATICCONFIG_ADDR);
1175
1176 *crx = (localVal & ((uint32_t)0x40000000)) >> 30;
1177 *lnaen = (localVal & ((uint32_t)0x20000000)) >> 29;
1178 *paen = (localVal & ((uint32_t)0x08000000)) >> 27;
1179 *psselect = (localVal & ((uint32_t)0x00000003)) >> 0;
1180 }
1181
1182 /**
1183 * @brief Returns the current value of the CRX field in the RWNXMACSTATICCONFIG register.
1184 *
1185 * The RWNXMACSTATICCONFIG register will be read and the CRX field's value will be returned.
1186 *
1187 * @return The current value of the CRX field in the RWNXMACSTATICCONFIG register.
1188 */
riu_crx_getf(void)1189 __INLINE uint8_t riu_crx_getf(void)
1190 {
1191 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACSTATICCONFIG_ADDR);
1192 return ((localVal & ((uint32_t)0x40000000)) >> 30);
1193 }
1194
1195 /**
1196 * @brief Sets the CRX field of the RWNXMACSTATICCONFIG register.
1197 *
1198 * The RWNXMACSTATICCONFIG register will be read, modified to contain the new field value, and written.
1199 *
1200 * @param[in] crx - The value to set the field to.
1201 */
riu_crx_setf(uint8_t crx)1202 __INLINE void riu_crx_setf(uint8_t crx)
1203 {
1204 PLATFORM_REG_WRITE(RIU_RWNXMACSTATICCONFIG_ADDR, (PLATFORM_REG_READ(RIU_RWNXMACSTATICCONFIG_ADDR) & ~((uint32_t)0x40000000)) | ((uint32_t)crx << 30));
1205 }
1206
1207 /**
1208 * @brief Returns the current value of the LNA_EN field in the RWNXMACSTATICCONFIG register.
1209 *
1210 * The RWNXMACSTATICCONFIG register will be read and the LNA_EN field's value will be returned.
1211 *
1212 * @return The current value of the LNA_EN field in the RWNXMACSTATICCONFIG register.
1213 */
riu_lna_en_getf(void)1214 __INLINE uint8_t riu_lna_en_getf(void)
1215 {
1216 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACSTATICCONFIG_ADDR);
1217 return ((localVal & ((uint32_t)0x20000000)) >> 29);
1218 }
1219
1220 /**
1221 * @brief Sets the LNA_EN field of the RWNXMACSTATICCONFIG register.
1222 *
1223 * The RWNXMACSTATICCONFIG register will be read, modified to contain the new field value, and written.
1224 *
1225 * @param[in] lnaen - The value to set the field to.
1226 */
riu_lna_en_setf(uint8_t lnaen)1227 __INLINE void riu_lna_en_setf(uint8_t lnaen)
1228 {
1229 PLATFORM_REG_WRITE(RIU_RWNXMACSTATICCONFIG_ADDR, (PLATFORM_REG_READ(RIU_RWNXMACSTATICCONFIG_ADDR) & ~((uint32_t)0x20000000)) | ((uint32_t)lnaen << 29));
1230 }
1231
1232 /**
1233 * @brief Returns the current value of the PA_EN field in the RWNXMACSTATICCONFIG register.
1234 *
1235 * The RWNXMACSTATICCONFIG register will be read and the PA_EN field's value will be returned.
1236 *
1237 * @return The current value of the PA_EN field in the RWNXMACSTATICCONFIG register.
1238 */
riu_pa_en_getf(void)1239 __INLINE uint8_t riu_pa_en_getf(void)
1240 {
1241 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACSTATICCONFIG_ADDR);
1242 return ((localVal & ((uint32_t)0x08000000)) >> 27);
1243 }
1244
1245 /**
1246 * @brief Sets the PA_EN field of the RWNXMACSTATICCONFIG register.
1247 *
1248 * The RWNXMACSTATICCONFIG register will be read, modified to contain the new field value, and written.
1249 *
1250 * @param[in] paen - The value to set the field to.
1251 */
riu_pa_en_setf(uint8_t paen)1252 __INLINE void riu_pa_en_setf(uint8_t paen)
1253 {
1254 PLATFORM_REG_WRITE(RIU_RWNXMACSTATICCONFIG_ADDR, (PLATFORM_REG_READ(RIU_RWNXMACSTATICCONFIG_ADDR) & ~((uint32_t)0x08000000)) | ((uint32_t)paen << 27));
1255 }
1256
1257 /**
1258 * @brief Returns the current value of the PSSELECT field in the RWNXMACSTATICCONFIG register.
1259 *
1260 * The RWNXMACSTATICCONFIG register will be read and the PSSELECT field's value will be returned.
1261 *
1262 * @return The current value of the PSSELECT field in the RWNXMACSTATICCONFIG register.
1263 */
riu_psselect_getf(void)1264 __INLINE uint8_t riu_psselect_getf(void)
1265 {
1266 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACSTATICCONFIG_ADDR);
1267 return ((localVal & ((uint32_t)0x00000003)) >> 0);
1268 }
1269
1270 /**
1271 * @brief Sets the PSSELECT field of the RWNXMACSTATICCONFIG register.
1272 *
1273 * The RWNXMACSTATICCONFIG register will be read, modified to contain the new field value, and written.
1274 *
1275 * @param[in] psselect - The value to set the field to.
1276 */
riu_psselect_setf(uint8_t psselect)1277 __INLINE void riu_psselect_setf(uint8_t psselect)
1278 {
1279 PLATFORM_REG_WRITE(RIU_RWNXMACSTATICCONFIG_ADDR, (PLATFORM_REG_READ(RIU_RWNXMACSTATICCONFIG_ADDR) & ~((uint32_t)0x00000003)) | ((uint32_t)psselect << 0));
1280 }
1281
1282 /// @}
1283
1284 /**
1285 * @name RWNXFECTRL0 register definitions
1286 * <table>
1287 * <caption id="RWNXFECTRL0_BF">RWNXFECTRL0 bitfields</caption>
1288 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
1289 * <tr><td>22:16 <td> TX80DIGGAINLIN0 <td>R <td>R/W <td>0x20
1290 * <tr><td>14:08 <td> TX40DIGGAINLIN0 <td>R <td>R/W <td>0x20
1291 * <tr><td>06:00 <td> TX20DIGGAINLIN0 <td>R <td>R/W <td>0x40
1292 * </table>
1293 *
1294 * @{
1295 */
1296
1297 /// Address of the RWNXFECTRL0 register
1298 #define RIU_RWNXFECTRL0_ADDR 0x4033B100
1299 /// Offset of the RWNXFECTRL0 register from the base address
1300 #define RIU_RWNXFECTRL0_OFFSET 0x00000100
1301 /// Index of the RWNXFECTRL0 register
1302 #define RIU_RWNXFECTRL0_INDEX 0x00000040
1303 /// Reset value of the RWNXFECTRL0 register
1304 #define RIU_RWNXFECTRL0_RESET 0x00202040
1305
1306 /**
1307 * @brief Returns the current value of the RWNXFECTRL0 register.
1308 * The RWNXFECTRL0 register will be read and its value returned.
1309 * @return The current value of the RWNXFECTRL0 register.
1310 */
riu_rwnxfectrl0_get(void)1311 __INLINE uint32_t riu_rwnxfectrl0_get(void)
1312 {
1313 return PLATFORM_REG_READ(RIU_RWNXFECTRL0_ADDR);
1314 }
1315
1316 /**
1317 * @brief Sets the RWNXFECTRL0 register to a value.
1318 * The RWNXFECTRL0 register will be written.
1319 * @param value - The value to write.
1320 */
riu_rwnxfectrl0_set(uint32_t value)1321 __INLINE void riu_rwnxfectrl0_set(uint32_t value)
1322 {
1323 PLATFORM_REG_WRITE(RIU_RWNXFECTRL0_ADDR, value);
1324 }
1325
1326 // field definitions
1327 /// TX80DIGGAINLIN0 field mask
1328 #define RIU_TX80DIGGAINLIN0_MASK ((uint32_t)0x007F0000)
1329 /// TX80DIGGAINLIN0 field LSB position
1330 #define RIU_TX80DIGGAINLIN0_LSB 16
1331 /// TX80DIGGAINLIN0 field width
1332 #define RIU_TX80DIGGAINLIN0_WIDTH ((uint32_t)0x00000007)
1333 /// TX40DIGGAINLIN0 field mask
1334 #define RIU_TX40DIGGAINLIN0_MASK ((uint32_t)0x00007F00)
1335 /// TX40DIGGAINLIN0 field LSB position
1336 #define RIU_TX40DIGGAINLIN0_LSB 8
1337 /// TX40DIGGAINLIN0 field width
1338 #define RIU_TX40DIGGAINLIN0_WIDTH ((uint32_t)0x00000007)
1339 /// TX20DIGGAINLIN0 field mask
1340 #define RIU_TX20DIGGAINLIN0_MASK ((uint32_t)0x0000007F)
1341 /// TX20DIGGAINLIN0 field LSB position
1342 #define RIU_TX20DIGGAINLIN0_LSB 0
1343 /// TX20DIGGAINLIN0 field width
1344 #define RIU_TX20DIGGAINLIN0_WIDTH ((uint32_t)0x00000007)
1345
1346 /// TX80DIGGAINLIN0 field reset value
1347 #define RIU_TX80DIGGAINLIN0_RST 0x20
1348 /// TX40DIGGAINLIN0 field reset value
1349 #define RIU_TX40DIGGAINLIN0_RST 0x20
1350 /// TX20DIGGAINLIN0 field reset value
1351 #define RIU_TX20DIGGAINLIN0_RST 0x40
1352
1353 /**
1354 * @brief Constructs a value for the RWNXFECTRL0 register given values for its fields
1355 * and writes the value to the register.
1356 *
1357 * @param[in] tx80diggainlin0 - The value to use for the TX80DIGGAINLIN0 field.
1358 * @param[in] tx40diggainlin0 - The value to use for the TX40DIGGAINLIN0 field.
1359 * @param[in] tx20diggainlin0 - The value to use for the TX20DIGGAINLIN0 field.
1360 */
riu_rwnxfectrl0_pack(uint8_t tx80diggainlin0,uint8_t tx40diggainlin0,uint8_t tx20diggainlin0)1361 __INLINE void riu_rwnxfectrl0_pack(uint8_t tx80diggainlin0, uint8_t tx40diggainlin0, uint8_t tx20diggainlin0)
1362 {
1363 PLATFORM_REG_WRITE(RIU_RWNXFECTRL0_ADDR, ((uint32_t)tx80diggainlin0 << 16) | ((uint32_t)tx40diggainlin0 << 8) | ((uint32_t)tx20diggainlin0 << 0));
1364 }
1365
1366 /**
1367 * @brief Unpacks RWNXFECTRL0's fields from current value of the RWNXFECTRL0 register.
1368 *
1369 * Reads the RWNXFECTRL0 register and populates all the _field variables with the corresponding
1370 * values from the register.
1371 *
1372 * @param[out] tx80diggainlin0 - Will be populated with the current value of this field from the register.
1373 * @param[out] tx40diggainlin0 - Will be populated with the current value of this field from the register.
1374 * @param[out] tx20diggainlin0 - Will be populated with the current value of this field from the register.
1375 */
riu_rwnxfectrl0_unpack(uint8_t * tx80diggainlin0,uint8_t * tx40diggainlin0,uint8_t * tx20diggainlin0)1376 __INLINE void riu_rwnxfectrl0_unpack(uint8_t* tx80diggainlin0, uint8_t* tx40diggainlin0, uint8_t* tx20diggainlin0)
1377 {
1378 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFECTRL0_ADDR);
1379
1380 *tx80diggainlin0 = (localVal & ((uint32_t)0x007F0000)) >> 16;
1381 *tx40diggainlin0 = (localVal & ((uint32_t)0x00007F00)) >> 8;
1382 *tx20diggainlin0 = (localVal & ((uint32_t)0x0000007F)) >> 0;
1383 }
1384
1385 /**
1386 * @brief Returns the current value of the TX80DIGGAINLIN0 field in the RWNXFECTRL0 register.
1387 *
1388 * The RWNXFECTRL0 register will be read and the TX80DIGGAINLIN0 field's value will be returned.
1389 *
1390 * @return The current value of the TX80DIGGAINLIN0 field in the RWNXFECTRL0 register.
1391 */
riu_tx80diggainlin0_getf(void)1392 __INLINE uint8_t riu_tx80diggainlin0_getf(void)
1393 {
1394 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFECTRL0_ADDR);
1395 return ((localVal & ((uint32_t)0x007F0000)) >> 16);
1396 }
1397
1398 /**
1399 * @brief Sets the TX80DIGGAINLIN0 field of the RWNXFECTRL0 register.
1400 *
1401 * The RWNXFECTRL0 register will be read, modified to contain the new field value, and written.
1402 *
1403 * @param[in] tx80diggainlin0 - The value to set the field to.
1404 */
riu_tx80diggainlin0_setf(uint8_t tx80diggainlin0)1405 __INLINE void riu_tx80diggainlin0_setf(uint8_t tx80diggainlin0)
1406 {
1407 PLATFORM_REG_WRITE(RIU_RWNXFECTRL0_ADDR, (PLATFORM_REG_READ(RIU_RWNXFECTRL0_ADDR) & ~((uint32_t)0x007F0000)) | ((uint32_t)tx80diggainlin0 << 16));
1408 }
1409
1410 /**
1411 * @brief Returns the current value of the TX40DIGGAINLIN0 field in the RWNXFECTRL0 register.
1412 *
1413 * The RWNXFECTRL0 register will be read and the TX40DIGGAINLIN0 field's value will be returned.
1414 *
1415 * @return The current value of the TX40DIGGAINLIN0 field in the RWNXFECTRL0 register.
1416 */
riu_tx40diggainlin0_getf(void)1417 __INLINE uint8_t riu_tx40diggainlin0_getf(void)
1418 {
1419 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFECTRL0_ADDR);
1420 return ((localVal & ((uint32_t)0x00007F00)) >> 8);
1421 }
1422
1423 /**
1424 * @brief Sets the TX40DIGGAINLIN0 field of the RWNXFECTRL0 register.
1425 *
1426 * The RWNXFECTRL0 register will be read, modified to contain the new field value, and written.
1427 *
1428 * @param[in] tx40diggainlin0 - The value to set the field to.
1429 */
riu_tx40diggainlin0_setf(uint8_t tx40diggainlin0)1430 __INLINE void riu_tx40diggainlin0_setf(uint8_t tx40diggainlin0)
1431 {
1432 PLATFORM_REG_WRITE(RIU_RWNXFECTRL0_ADDR, (PLATFORM_REG_READ(RIU_RWNXFECTRL0_ADDR) & ~((uint32_t)0x00007F00)) | ((uint32_t)tx40diggainlin0 << 8));
1433 }
1434
1435 /**
1436 * @brief Returns the current value of the TX20DIGGAINLIN0 field in the RWNXFECTRL0 register.
1437 *
1438 * The RWNXFECTRL0 register will be read and the TX20DIGGAINLIN0 field's value will be returned.
1439 *
1440 * @return The current value of the TX20DIGGAINLIN0 field in the RWNXFECTRL0 register.
1441 */
riu_tx20diggainlin0_getf(void)1442 __INLINE uint8_t riu_tx20diggainlin0_getf(void)
1443 {
1444 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFECTRL0_ADDR);
1445 return ((localVal & ((uint32_t)0x0000007F)) >> 0);
1446 }
1447
1448 /**
1449 * @brief Sets the TX20DIGGAINLIN0 field of the RWNXFECTRL0 register.
1450 *
1451 * The RWNXFECTRL0 register will be read, modified to contain the new field value, and written.
1452 *
1453 * @param[in] tx20diggainlin0 - The value to set the field to.
1454 */
riu_tx20diggainlin0_setf(uint8_t tx20diggainlin0)1455 __INLINE void riu_tx20diggainlin0_setf(uint8_t tx20diggainlin0)
1456 {
1457 PLATFORM_REG_WRITE(RIU_RWNXFECTRL0_ADDR, (PLATFORM_REG_READ(RIU_RWNXFECTRL0_ADDR) & ~((uint32_t)0x0000007F)) | ((uint32_t)tx20diggainlin0 << 0));
1458 }
1459
1460 /// @}
1461
1462 /**
1463 * @name RWNXFECTRL1 register definitions
1464 * <table>
1465 * <caption id="RWNXFECTRL1_BF">RWNXFECTRL1 bitfields</caption>
1466 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
1467 * <tr><td>22:16 <td> TX80DIGGAINLIN1 <td>R <td>R/W <td>0x20
1468 * <tr><td>14:08 <td> TX40DIGGAINLIN1 <td>R <td>R/W <td>0x20
1469 * <tr><td>06:00 <td> TX20DIGGAINLIN1 <td>R <td>R/W <td>0x40
1470 * </table>
1471 *
1472 * @{
1473 */
1474
1475 /// Address of the RWNXFECTRL1 register
1476 #define RIU_RWNXFECTRL1_ADDR 0x4033B104
1477 /// Offset of the RWNXFECTRL1 register from the base address
1478 #define RIU_RWNXFECTRL1_OFFSET 0x00000104
1479 /// Index of the RWNXFECTRL1 register
1480 #define RIU_RWNXFECTRL1_INDEX 0x00000041
1481 /// Reset value of the RWNXFECTRL1 register
1482 #define RIU_RWNXFECTRL1_RESET 0x00202040
1483
1484 /**
1485 * @brief Returns the current value of the RWNXFECTRL1 register.
1486 * The RWNXFECTRL1 register will be read and its value returned.
1487 * @return The current value of the RWNXFECTRL1 register.
1488 */
riu_rwnxfectrl1_get(void)1489 __INLINE uint32_t riu_rwnxfectrl1_get(void)
1490 {
1491 return PLATFORM_REG_READ(RIU_RWNXFECTRL1_ADDR);
1492 }
1493
1494 /**
1495 * @brief Sets the RWNXFECTRL1 register to a value.
1496 * The RWNXFECTRL1 register will be written.
1497 * @param value - The value to write.
1498 */
riu_rwnxfectrl1_set(uint32_t value)1499 __INLINE void riu_rwnxfectrl1_set(uint32_t value)
1500 {
1501 PLATFORM_REG_WRITE(RIU_RWNXFECTRL1_ADDR, value);
1502 }
1503
1504 // field definitions
1505 /// TX80DIGGAINLIN1 field mask
1506 #define RIU_TX80DIGGAINLIN1_MASK ((uint32_t)0x007F0000)
1507 /// TX80DIGGAINLIN1 field LSB position
1508 #define RIU_TX80DIGGAINLIN1_LSB 16
1509 /// TX80DIGGAINLIN1 field width
1510 #define RIU_TX80DIGGAINLIN1_WIDTH ((uint32_t)0x00000007)
1511 /// TX40DIGGAINLIN1 field mask
1512 #define RIU_TX40DIGGAINLIN1_MASK ((uint32_t)0x00007F00)
1513 /// TX40DIGGAINLIN1 field LSB position
1514 #define RIU_TX40DIGGAINLIN1_LSB 8
1515 /// TX40DIGGAINLIN1 field width
1516 #define RIU_TX40DIGGAINLIN1_WIDTH ((uint32_t)0x00000007)
1517 /// TX20DIGGAINLIN1 field mask
1518 #define RIU_TX20DIGGAINLIN1_MASK ((uint32_t)0x0000007F)
1519 /// TX20DIGGAINLIN1 field LSB position
1520 #define RIU_TX20DIGGAINLIN1_LSB 0
1521 /// TX20DIGGAINLIN1 field width
1522 #define RIU_TX20DIGGAINLIN1_WIDTH ((uint32_t)0x00000007)
1523
1524 /// TX80DIGGAINLIN1 field reset value
1525 #define RIU_TX80DIGGAINLIN1_RST 0x20
1526 /// TX40DIGGAINLIN1 field reset value
1527 #define RIU_TX40DIGGAINLIN1_RST 0x20
1528 /// TX20DIGGAINLIN1 field reset value
1529 #define RIU_TX20DIGGAINLIN1_RST 0x40
1530
1531 /**
1532 * @brief Constructs a value for the RWNXFECTRL1 register given values for its fields
1533 * and writes the value to the register.
1534 *
1535 * @param[in] tx80diggainlin1 - The value to use for the TX80DIGGAINLIN1 field.
1536 * @param[in] tx40diggainlin1 - The value to use for the TX40DIGGAINLIN1 field.
1537 * @param[in] tx20diggainlin1 - The value to use for the TX20DIGGAINLIN1 field.
1538 */
riu_rwnxfectrl1_pack(uint8_t tx80diggainlin1,uint8_t tx40diggainlin1,uint8_t tx20diggainlin1)1539 __INLINE void riu_rwnxfectrl1_pack(uint8_t tx80diggainlin1, uint8_t tx40diggainlin1, uint8_t tx20diggainlin1)
1540 {
1541 PLATFORM_REG_WRITE(RIU_RWNXFECTRL1_ADDR, ((uint32_t)tx80diggainlin1 << 16) | ((uint32_t)tx40diggainlin1 << 8) | ((uint32_t)tx20diggainlin1 << 0));
1542 }
1543
1544 /**
1545 * @brief Unpacks RWNXFECTRL1's fields from current value of the RWNXFECTRL1 register.
1546 *
1547 * Reads the RWNXFECTRL1 register and populates all the _field variables with the corresponding
1548 * values from the register.
1549 *
1550 * @param[out] tx80diggainlin1 - Will be populated with the current value of this field from the register.
1551 * @param[out] tx40diggainlin1 - Will be populated with the current value of this field from the register.
1552 * @param[out] tx20diggainlin1 - Will be populated with the current value of this field from the register.
1553 */
riu_rwnxfectrl1_unpack(uint8_t * tx80diggainlin1,uint8_t * tx40diggainlin1,uint8_t * tx20diggainlin1)1554 __INLINE void riu_rwnxfectrl1_unpack(uint8_t* tx80diggainlin1, uint8_t* tx40diggainlin1, uint8_t* tx20diggainlin1)
1555 {
1556 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFECTRL1_ADDR);
1557
1558 *tx80diggainlin1 = (localVal & ((uint32_t)0x007F0000)) >> 16;
1559 *tx40diggainlin1 = (localVal & ((uint32_t)0x00007F00)) >> 8;
1560 *tx20diggainlin1 = (localVal & ((uint32_t)0x0000007F)) >> 0;
1561 }
1562
1563 /**
1564 * @brief Returns the current value of the TX80DIGGAINLIN1 field in the RWNXFECTRL1 register.
1565 *
1566 * The RWNXFECTRL1 register will be read and the TX80DIGGAINLIN1 field's value will be returned.
1567 *
1568 * @return The current value of the TX80DIGGAINLIN1 field in the RWNXFECTRL1 register.
1569 */
riu_tx80diggainlin1_getf(void)1570 __INLINE uint8_t riu_tx80diggainlin1_getf(void)
1571 {
1572 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFECTRL1_ADDR);
1573 return ((localVal & ((uint32_t)0x007F0000)) >> 16);
1574 }
1575
1576 /**
1577 * @brief Sets the TX80DIGGAINLIN1 field of the RWNXFECTRL1 register.
1578 *
1579 * The RWNXFECTRL1 register will be read, modified to contain the new field value, and written.
1580 *
1581 * @param[in] tx80diggainlin1 - The value to set the field to.
1582 */
riu_tx80diggainlin1_setf(uint8_t tx80diggainlin1)1583 __INLINE void riu_tx80diggainlin1_setf(uint8_t tx80diggainlin1)
1584 {
1585 PLATFORM_REG_WRITE(RIU_RWNXFECTRL1_ADDR, (PLATFORM_REG_READ(RIU_RWNXFECTRL1_ADDR) & ~((uint32_t)0x007F0000)) | ((uint32_t)tx80diggainlin1 << 16));
1586 }
1587
1588 /**
1589 * @brief Returns the current value of the TX40DIGGAINLIN1 field in the RWNXFECTRL1 register.
1590 *
1591 * The RWNXFECTRL1 register will be read and the TX40DIGGAINLIN1 field's value will be returned.
1592 *
1593 * @return The current value of the TX40DIGGAINLIN1 field in the RWNXFECTRL1 register.
1594 */
riu_tx40diggainlin1_getf(void)1595 __INLINE uint8_t riu_tx40diggainlin1_getf(void)
1596 {
1597 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFECTRL1_ADDR);
1598 return ((localVal & ((uint32_t)0x00007F00)) >> 8);
1599 }
1600
1601 /**
1602 * @brief Sets the TX40DIGGAINLIN1 field of the RWNXFECTRL1 register.
1603 *
1604 * The RWNXFECTRL1 register will be read, modified to contain the new field value, and written.
1605 *
1606 * @param[in] tx40diggainlin1 - The value to set the field to.
1607 */
riu_tx40diggainlin1_setf(uint8_t tx40diggainlin1)1608 __INLINE void riu_tx40diggainlin1_setf(uint8_t tx40diggainlin1)
1609 {
1610 PLATFORM_REG_WRITE(RIU_RWNXFECTRL1_ADDR, (PLATFORM_REG_READ(RIU_RWNXFECTRL1_ADDR) & ~((uint32_t)0x00007F00)) | ((uint32_t)tx40diggainlin1 << 8));
1611 }
1612
1613 /**
1614 * @brief Returns the current value of the TX20DIGGAINLIN1 field in the RWNXFECTRL1 register.
1615 *
1616 * The RWNXFECTRL1 register will be read and the TX20DIGGAINLIN1 field's value will be returned.
1617 *
1618 * @return The current value of the TX20DIGGAINLIN1 field in the RWNXFECTRL1 register.
1619 */
riu_tx20diggainlin1_getf(void)1620 __INLINE uint8_t riu_tx20diggainlin1_getf(void)
1621 {
1622 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFECTRL1_ADDR);
1623 return ((localVal & ((uint32_t)0x0000007F)) >> 0);
1624 }
1625
1626 /**
1627 * @brief Sets the TX20DIGGAINLIN1 field of the RWNXFECTRL1 register.
1628 *
1629 * The RWNXFECTRL1 register will be read, modified to contain the new field value, and written.
1630 *
1631 * @param[in] tx20diggainlin1 - The value to set the field to.
1632 */
riu_tx20diggainlin1_setf(uint8_t tx20diggainlin1)1633 __INLINE void riu_tx20diggainlin1_setf(uint8_t tx20diggainlin1)
1634 {
1635 PLATFORM_REG_WRITE(RIU_RWNXFECTRL1_ADDR, (PLATFORM_REG_READ(RIU_RWNXFECTRL1_ADDR) & ~((uint32_t)0x0000007F)) | ((uint32_t)tx20diggainlin1 << 0));
1636 }
1637
1638 /// @}
1639
1640 #if RW_NX_IQ_COMP_EN
1641 /**
1642 * @name RWNXFETXIQCOMP0 register definitions
1643 * <table>
1644 * <caption id="RWNXFETXIQCOMP0_BF">RWNXFETXIQCOMP0 bitfields</caption>
1645 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
1646 * <tr><td>29 <td> TXIQPHASECOMPEN0 <td>R <td>R/W <td>0
1647 * <tr><td>28 <td> TXIQGAINCOMPEN0 <td>R <td>R/W <td>0
1648 * <tr><td>24:16 <td> TXIQPHASE0 <td>R <td>R/W <td>0x0
1649 * <tr><td>10:00 <td> TXIQGAIN0 <td>R <td>R/W <td>0x400
1650 * </table>
1651 *
1652 * @{
1653 */
1654
1655 /// Address of the RWNXFETXIQCOMP0 register
1656 #define RIU_RWNXFETXIQCOMP0_ADDR 0x4033B108
1657 /// Offset of the RWNXFETXIQCOMP0 register from the base address
1658 #define RIU_RWNXFETXIQCOMP0_OFFSET 0x00000108
1659 /// Index of the RWNXFETXIQCOMP0 register
1660 #define RIU_RWNXFETXIQCOMP0_INDEX 0x00000042
1661 /// Reset value of the RWNXFETXIQCOMP0 register
1662 #define RIU_RWNXFETXIQCOMP0_RESET 0x00000400
1663
1664 /**
1665 * @brief Returns the current value of the RWNXFETXIQCOMP0 register.
1666 * The RWNXFETXIQCOMP0 register will be read and its value returned.
1667 * @return The current value of the RWNXFETXIQCOMP0 register.
1668 */
riu_rwnxfetxiqcomp0_get(void)1669 __INLINE uint32_t riu_rwnxfetxiqcomp0_get(void)
1670 {
1671 return PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP0_ADDR);
1672 }
1673
1674 /**
1675 * @brief Sets the RWNXFETXIQCOMP0 register to a value.
1676 * The RWNXFETXIQCOMP0 register will be written.
1677 * @param value - The value to write.
1678 */
riu_rwnxfetxiqcomp0_set(uint32_t value)1679 __INLINE void riu_rwnxfetxiqcomp0_set(uint32_t value)
1680 {
1681 PLATFORM_REG_WRITE(RIU_RWNXFETXIQCOMP0_ADDR, value);
1682 }
1683
1684 // field definitions
1685 /// TXIQPHASECOMPEN0 field bit
1686 #define RIU_TXIQPHASECOMPEN0_BIT ((uint32_t)0x20000000)
1687 /// TXIQPHASECOMPEN0 field position
1688 #define RIU_TXIQPHASECOMPEN0_POS 29
1689 /// TXIQGAINCOMPEN0 field bit
1690 #define RIU_TXIQGAINCOMPEN0_BIT ((uint32_t)0x10000000)
1691 /// TXIQGAINCOMPEN0 field position
1692 #define RIU_TXIQGAINCOMPEN0_POS 28
1693 /// TXIQPHASE0 field mask
1694 #define RIU_TXIQPHASE0_MASK ((uint32_t)0x01FF0000)
1695 /// TXIQPHASE0 field LSB position
1696 #define RIU_TXIQPHASE0_LSB 16
1697 /// TXIQPHASE0 field width
1698 #define RIU_TXIQPHASE0_WIDTH ((uint32_t)0x00000009)
1699 /// TXIQGAIN0 field mask
1700 #define RIU_TXIQGAIN0_MASK ((uint32_t)0x000007FF)
1701 /// TXIQGAIN0 field LSB position
1702 #define RIU_TXIQGAIN0_LSB 0
1703 /// TXIQGAIN0 field width
1704 #define RIU_TXIQGAIN0_WIDTH ((uint32_t)0x0000000B)
1705
1706 /// TXIQPHASECOMPEN0 field reset value
1707 #define RIU_TXIQPHASECOMPEN0_RST 0x0
1708 /// TXIQGAINCOMPEN0 field reset value
1709 #define RIU_TXIQGAINCOMPEN0_RST 0x0
1710 /// TXIQPHASE0 field reset value
1711 #define RIU_TXIQPHASE0_RST 0x0
1712 /// TXIQGAIN0 field reset value
1713 #define RIU_TXIQGAIN0_RST 0x400
1714
1715 /**
1716 * @brief Constructs a value for the RWNXFETXIQCOMP0 register given values for its fields
1717 * and writes the value to the register.
1718 *
1719 * @param[in] txiqphasecompen0 - The value to use for the TXIQPHASECOMPEN0 field.
1720 * @param[in] txiqgaincompen0 - The value to use for the TXIQGAINCOMPEN0 field.
1721 * @param[in] txiqphase0 - The value to use for the TXIQPHASE0 field.
1722 * @param[in] txiqgain0 - The value to use for the TXIQGAIN0 field.
1723 */
riu_rwnxfetxiqcomp0_pack(uint8_t txiqphasecompen0,uint8_t txiqgaincompen0,uint16_t txiqphase0,uint16_t txiqgain0)1724 __INLINE void riu_rwnxfetxiqcomp0_pack(uint8_t txiqphasecompen0, uint8_t txiqgaincompen0, uint16_t txiqphase0, uint16_t txiqgain0)
1725 {
1726 PLATFORM_REG_WRITE(RIU_RWNXFETXIQCOMP0_ADDR, ((uint32_t)txiqphasecompen0 << 29) | ((uint32_t)txiqgaincompen0 << 28) | ((uint32_t)txiqphase0 << 16) | ((uint32_t)txiqgain0 << 0));
1727 }
1728
1729 /**
1730 * @brief Unpacks RWNXFETXIQCOMP0's fields from current value of the RWNXFETXIQCOMP0 register.
1731 *
1732 * Reads the RWNXFETXIQCOMP0 register and populates all the _field variables with the corresponding
1733 * values from the register.
1734 *
1735 * @param[out] txiqphasecompen0 - Will be populated with the current value of this field from the register.
1736 * @param[out] txiqgaincompen0 - Will be populated with the current value of this field from the register.
1737 * @param[out] txiqphase0 - Will be populated with the current value of this field from the register.
1738 * @param[out] txiqgain0 - Will be populated with the current value of this field from the register.
1739 */
riu_rwnxfetxiqcomp0_unpack(uint8_t * txiqphasecompen0,uint8_t * txiqgaincompen0,uint16_t * txiqphase0,uint16_t * txiqgain0)1740 __INLINE void riu_rwnxfetxiqcomp0_unpack(uint8_t* txiqphasecompen0, uint8_t* txiqgaincompen0, uint16_t* txiqphase0, uint16_t* txiqgain0)
1741 {
1742 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP0_ADDR);
1743
1744 *txiqphasecompen0 = (localVal & ((uint32_t)0x20000000)) >> 29;
1745 *txiqgaincompen0 = (localVal & ((uint32_t)0x10000000)) >> 28;
1746 *txiqphase0 = (localVal & ((uint32_t)0x01FF0000)) >> 16;
1747 *txiqgain0 = (localVal & ((uint32_t)0x000007FF)) >> 0;
1748 }
1749
1750 /**
1751 * @brief Returns the current value of the TXIQPHASECOMPEN0 field in the RWNXFETXIQCOMP0 register.
1752 *
1753 * The RWNXFETXIQCOMP0 register will be read and the TXIQPHASECOMPEN0 field's value will be returned.
1754 *
1755 * @return The current value of the TXIQPHASECOMPEN0 field in the RWNXFETXIQCOMP0 register.
1756 */
riu_txiqphasecompen0_getf(void)1757 __INLINE uint8_t riu_txiqphasecompen0_getf(void)
1758 {
1759 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP0_ADDR);
1760 return ((localVal & ((uint32_t)0x20000000)) >> 29);
1761 }
1762
1763 /**
1764 * @brief Sets the TXIQPHASECOMPEN0 field of the RWNXFETXIQCOMP0 register.
1765 *
1766 * The RWNXFETXIQCOMP0 register will be read, modified to contain the new field value, and written.
1767 *
1768 * @param[in] txiqphasecompen0 - The value to set the field to.
1769 */
riu_txiqphasecompen0_setf(uint8_t txiqphasecompen0)1770 __INLINE void riu_txiqphasecompen0_setf(uint8_t txiqphasecompen0)
1771 {
1772 PLATFORM_REG_WRITE(RIU_RWNXFETXIQCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP0_ADDR) & ~((uint32_t)0x20000000)) | ((uint32_t)txiqphasecompen0 << 29));
1773 }
1774
1775 /**
1776 * @brief Returns the current value of the TXIQGAINCOMPEN0 field in the RWNXFETXIQCOMP0 register.
1777 *
1778 * The RWNXFETXIQCOMP0 register will be read and the TXIQGAINCOMPEN0 field's value will be returned.
1779 *
1780 * @return The current value of the TXIQGAINCOMPEN0 field in the RWNXFETXIQCOMP0 register.
1781 */
riu_txiqgaincompen0_getf(void)1782 __INLINE uint8_t riu_txiqgaincompen0_getf(void)
1783 {
1784 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP0_ADDR);
1785 return ((localVal & ((uint32_t)0x10000000)) >> 28);
1786 }
1787
1788 /**
1789 * @brief Sets the TXIQGAINCOMPEN0 field of the RWNXFETXIQCOMP0 register.
1790 *
1791 * The RWNXFETXIQCOMP0 register will be read, modified to contain the new field value, and written.
1792 *
1793 * @param[in] txiqgaincompen0 - The value to set the field to.
1794 */
riu_txiqgaincompen0_setf(uint8_t txiqgaincompen0)1795 __INLINE void riu_txiqgaincompen0_setf(uint8_t txiqgaincompen0)
1796 {
1797 PLATFORM_REG_WRITE(RIU_RWNXFETXIQCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP0_ADDR) & ~((uint32_t)0x10000000)) | ((uint32_t)txiqgaincompen0 << 28));
1798 }
1799
1800 /**
1801 * @brief Returns the current value of the TXIQPHASE0 field in the RWNXFETXIQCOMP0 register.
1802 *
1803 * The RWNXFETXIQCOMP0 register will be read and the TXIQPHASE0 field's value will be returned.
1804 *
1805 * @return The current value of the TXIQPHASE0 field in the RWNXFETXIQCOMP0 register.
1806 */
riu_txiqphase0_getf(void)1807 __INLINE uint16_t riu_txiqphase0_getf(void)
1808 {
1809 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP0_ADDR);
1810 return ((localVal & ((uint32_t)0x01FF0000)) >> 16);
1811 }
1812
1813 /**
1814 * @brief Sets the TXIQPHASE0 field of the RWNXFETXIQCOMP0 register.
1815 *
1816 * The RWNXFETXIQCOMP0 register will be read, modified to contain the new field value, and written.
1817 *
1818 * @param[in] txiqphase0 - The value to set the field to.
1819 */
riu_txiqphase0_setf(uint16_t txiqphase0)1820 __INLINE void riu_txiqphase0_setf(uint16_t txiqphase0)
1821 {
1822 PLATFORM_REG_WRITE(RIU_RWNXFETXIQCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP0_ADDR) & ~((uint32_t)0x01FF0000)) | ((uint32_t)txiqphase0 << 16));
1823 }
1824
1825 /**
1826 * @brief Returns the current value of the TXIQGAIN0 field in the RWNXFETXIQCOMP0 register.
1827 *
1828 * The RWNXFETXIQCOMP0 register will be read and the TXIQGAIN0 field's value will be returned.
1829 *
1830 * @return The current value of the TXIQGAIN0 field in the RWNXFETXIQCOMP0 register.
1831 */
riu_txiqgain0_getf(void)1832 __INLINE uint16_t riu_txiqgain0_getf(void)
1833 {
1834 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP0_ADDR);
1835 return ((localVal & ((uint32_t)0x000007FF)) >> 0);
1836 }
1837
1838 /**
1839 * @brief Sets the TXIQGAIN0 field of the RWNXFETXIQCOMP0 register.
1840 *
1841 * The RWNXFETXIQCOMP0 register will be read, modified to contain the new field value, and written.
1842 *
1843 * @param[in] txiqgain0 - The value to set the field to.
1844 */
riu_txiqgain0_setf(uint16_t txiqgain0)1845 __INLINE void riu_txiqgain0_setf(uint16_t txiqgain0)
1846 {
1847 PLATFORM_REG_WRITE(RIU_RWNXFETXIQCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP0_ADDR) & ~((uint32_t)0x000007FF)) | ((uint32_t)txiqgain0 << 0));
1848 }
1849
1850 #endif // RW_NX_IQ_COMP_EN
1851 /// @}
1852
1853 #if RW_NX_IQ_COMP_EN
1854 /**
1855 * @name RWNXFETXIQCOMP1 register definitions
1856 * <table>
1857 * <caption id="RWNXFETXIQCOMP1_BF">RWNXFETXIQCOMP1 bitfields</caption>
1858 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
1859 * <tr><td>29 <td> TXIQPHASECOMPEN1 <td>R <td>R/W <td>0
1860 * <tr><td>28 <td> TXIQGAINCOMPEN1 <td>R <td>R/W <td>0
1861 * <tr><td>24:16 <td> TXIQPHASE1 <td>R <td>R/W <td>0x0
1862 * <tr><td>10:00 <td> TXIQGAIN1 <td>R <td>R/W <td>0x400
1863 * </table>
1864 *
1865 * @{
1866 */
1867
1868 /// Address of the RWNXFETXIQCOMP1 register
1869 #define RIU_RWNXFETXIQCOMP1_ADDR 0x4033B10C
1870 /// Offset of the RWNXFETXIQCOMP1 register from the base address
1871 #define RIU_RWNXFETXIQCOMP1_OFFSET 0x0000010C
1872 /// Index of the RWNXFETXIQCOMP1 register
1873 #define RIU_RWNXFETXIQCOMP1_INDEX 0x00000043
1874 /// Reset value of the RWNXFETXIQCOMP1 register
1875 #define RIU_RWNXFETXIQCOMP1_RESET 0x00000400
1876
1877 /**
1878 * @brief Returns the current value of the RWNXFETXIQCOMP1 register.
1879 * The RWNXFETXIQCOMP1 register will be read and its value returned.
1880 * @return The current value of the RWNXFETXIQCOMP1 register.
1881 */
riu_rwnxfetxiqcomp1_get(void)1882 __INLINE uint32_t riu_rwnxfetxiqcomp1_get(void)
1883 {
1884 return PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP1_ADDR);
1885 }
1886
1887 /**
1888 * @brief Sets the RWNXFETXIQCOMP1 register to a value.
1889 * The RWNXFETXIQCOMP1 register will be written.
1890 * @param value - The value to write.
1891 */
riu_rwnxfetxiqcomp1_set(uint32_t value)1892 __INLINE void riu_rwnxfetxiqcomp1_set(uint32_t value)
1893 {
1894 PLATFORM_REG_WRITE(RIU_RWNXFETXIQCOMP1_ADDR, value);
1895 }
1896
1897 // field definitions
1898 /// TXIQPHASECOMPEN1 field bit
1899 #define RIU_TXIQPHASECOMPEN1_BIT ((uint32_t)0x20000000)
1900 /// TXIQPHASECOMPEN1 field position
1901 #define RIU_TXIQPHASECOMPEN1_POS 29
1902 /// TXIQGAINCOMPEN1 field bit
1903 #define RIU_TXIQGAINCOMPEN1_BIT ((uint32_t)0x10000000)
1904 /// TXIQGAINCOMPEN1 field position
1905 #define RIU_TXIQGAINCOMPEN1_POS 28
1906 /// TXIQPHASE1 field mask
1907 #define RIU_TXIQPHASE1_MASK ((uint32_t)0x01FF0000)
1908 /// TXIQPHASE1 field LSB position
1909 #define RIU_TXIQPHASE1_LSB 16
1910 /// TXIQPHASE1 field width
1911 #define RIU_TXIQPHASE1_WIDTH ((uint32_t)0x00000009)
1912 /// TXIQGAIN1 field mask
1913 #define RIU_TXIQGAIN1_MASK ((uint32_t)0x000007FF)
1914 /// TXIQGAIN1 field LSB position
1915 #define RIU_TXIQGAIN1_LSB 0
1916 /// TXIQGAIN1 field width
1917 #define RIU_TXIQGAIN1_WIDTH ((uint32_t)0x0000000B)
1918
1919 /// TXIQPHASECOMPEN1 field reset value
1920 #define RIU_TXIQPHASECOMPEN1_RST 0x0
1921 /// TXIQGAINCOMPEN1 field reset value
1922 #define RIU_TXIQGAINCOMPEN1_RST 0x0
1923 /// TXIQPHASE1 field reset value
1924 #define RIU_TXIQPHASE1_RST 0x0
1925 /// TXIQGAIN1 field reset value
1926 #define RIU_TXIQGAIN1_RST 0x400
1927
1928 /**
1929 * @brief Constructs a value for the RWNXFETXIQCOMP1 register given values for its fields
1930 * and writes the value to the register.
1931 *
1932 * @param[in] txiqphasecompen1 - The value to use for the TXIQPHASECOMPEN1 field.
1933 * @param[in] txiqgaincompen1 - The value to use for the TXIQGAINCOMPEN1 field.
1934 * @param[in] txiqphase1 - The value to use for the TXIQPHASE1 field.
1935 * @param[in] txiqgain1 - The value to use for the TXIQGAIN1 field.
1936 */
riu_rwnxfetxiqcomp1_pack(uint8_t txiqphasecompen1,uint8_t txiqgaincompen1,uint16_t txiqphase1,uint16_t txiqgain1)1937 __INLINE void riu_rwnxfetxiqcomp1_pack(uint8_t txiqphasecompen1, uint8_t txiqgaincompen1, uint16_t txiqphase1, uint16_t txiqgain1)
1938 {
1939 PLATFORM_REG_WRITE(RIU_RWNXFETXIQCOMP1_ADDR, ((uint32_t)txiqphasecompen1 << 29) | ((uint32_t)txiqgaincompen1 << 28) | ((uint32_t)txiqphase1 << 16) | ((uint32_t)txiqgain1 << 0));
1940 }
1941
1942 /**
1943 * @brief Unpacks RWNXFETXIQCOMP1's fields from current value of the RWNXFETXIQCOMP1 register.
1944 *
1945 * Reads the RWNXFETXIQCOMP1 register and populates all the _field variables with the corresponding
1946 * values from the register.
1947 *
1948 * @param[out] txiqphasecompen1 - Will be populated with the current value of this field from the register.
1949 * @param[out] txiqgaincompen1 - Will be populated with the current value of this field from the register.
1950 * @param[out] txiqphase1 - Will be populated with the current value of this field from the register.
1951 * @param[out] txiqgain1 - Will be populated with the current value of this field from the register.
1952 */
riu_rwnxfetxiqcomp1_unpack(uint8_t * txiqphasecompen1,uint8_t * txiqgaincompen1,uint16_t * txiqphase1,uint16_t * txiqgain1)1953 __INLINE void riu_rwnxfetxiqcomp1_unpack(uint8_t* txiqphasecompen1, uint8_t* txiqgaincompen1, uint16_t* txiqphase1, uint16_t* txiqgain1)
1954 {
1955 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP1_ADDR);
1956
1957 *txiqphasecompen1 = (localVal & ((uint32_t)0x20000000)) >> 29;
1958 *txiqgaincompen1 = (localVal & ((uint32_t)0x10000000)) >> 28;
1959 *txiqphase1 = (localVal & ((uint32_t)0x01FF0000)) >> 16;
1960 *txiqgain1 = (localVal & ((uint32_t)0x000007FF)) >> 0;
1961 }
1962
1963 /**
1964 * @brief Returns the current value of the TXIQPHASECOMPEN1 field in the RWNXFETXIQCOMP1 register.
1965 *
1966 * The RWNXFETXIQCOMP1 register will be read and the TXIQPHASECOMPEN1 field's value will be returned.
1967 *
1968 * @return The current value of the TXIQPHASECOMPEN1 field in the RWNXFETXIQCOMP1 register.
1969 */
riu_txiqphasecompen1_getf(void)1970 __INLINE uint8_t riu_txiqphasecompen1_getf(void)
1971 {
1972 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP1_ADDR);
1973 return ((localVal & ((uint32_t)0x20000000)) >> 29);
1974 }
1975
1976 /**
1977 * @brief Sets the TXIQPHASECOMPEN1 field of the RWNXFETXIQCOMP1 register.
1978 *
1979 * The RWNXFETXIQCOMP1 register will be read, modified to contain the new field value, and written.
1980 *
1981 * @param[in] txiqphasecompen1 - The value to set the field to.
1982 */
riu_txiqphasecompen1_setf(uint8_t txiqphasecompen1)1983 __INLINE void riu_txiqphasecompen1_setf(uint8_t txiqphasecompen1)
1984 {
1985 PLATFORM_REG_WRITE(RIU_RWNXFETXIQCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP1_ADDR) & ~((uint32_t)0x20000000)) | ((uint32_t)txiqphasecompen1 << 29));
1986 }
1987
1988 /**
1989 * @brief Returns the current value of the TXIQGAINCOMPEN1 field in the RWNXFETXIQCOMP1 register.
1990 *
1991 * The RWNXFETXIQCOMP1 register will be read and the TXIQGAINCOMPEN1 field's value will be returned.
1992 *
1993 * @return The current value of the TXIQGAINCOMPEN1 field in the RWNXFETXIQCOMP1 register.
1994 */
riu_txiqgaincompen1_getf(void)1995 __INLINE uint8_t riu_txiqgaincompen1_getf(void)
1996 {
1997 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP1_ADDR);
1998 return ((localVal & ((uint32_t)0x10000000)) >> 28);
1999 }
2000
2001 /**
2002 * @brief Sets the TXIQGAINCOMPEN1 field of the RWNXFETXIQCOMP1 register.
2003 *
2004 * The RWNXFETXIQCOMP1 register will be read, modified to contain the new field value, and written.
2005 *
2006 * @param[in] txiqgaincompen1 - The value to set the field to.
2007 */
riu_txiqgaincompen1_setf(uint8_t txiqgaincompen1)2008 __INLINE void riu_txiqgaincompen1_setf(uint8_t txiqgaincompen1)
2009 {
2010 PLATFORM_REG_WRITE(RIU_RWNXFETXIQCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP1_ADDR) & ~((uint32_t)0x10000000)) | ((uint32_t)txiqgaincompen1 << 28));
2011 }
2012
2013 /**
2014 * @brief Returns the current value of the TXIQPHASE1 field in the RWNXFETXIQCOMP1 register.
2015 *
2016 * The RWNXFETXIQCOMP1 register will be read and the TXIQPHASE1 field's value will be returned.
2017 *
2018 * @return The current value of the TXIQPHASE1 field in the RWNXFETXIQCOMP1 register.
2019 */
riu_txiqphase1_getf(void)2020 __INLINE uint16_t riu_txiqphase1_getf(void)
2021 {
2022 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP1_ADDR);
2023 return ((localVal & ((uint32_t)0x01FF0000)) >> 16);
2024 }
2025
2026 /**
2027 * @brief Sets the TXIQPHASE1 field of the RWNXFETXIQCOMP1 register.
2028 *
2029 * The RWNXFETXIQCOMP1 register will be read, modified to contain the new field value, and written.
2030 *
2031 * @param[in] txiqphase1 - The value to set the field to.
2032 */
riu_txiqphase1_setf(uint16_t txiqphase1)2033 __INLINE void riu_txiqphase1_setf(uint16_t txiqphase1)
2034 {
2035 PLATFORM_REG_WRITE(RIU_RWNXFETXIQCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP1_ADDR) & ~((uint32_t)0x01FF0000)) | ((uint32_t)txiqphase1 << 16));
2036 }
2037
2038 /**
2039 * @brief Returns the current value of the TXIQGAIN1 field in the RWNXFETXIQCOMP1 register.
2040 *
2041 * The RWNXFETXIQCOMP1 register will be read and the TXIQGAIN1 field's value will be returned.
2042 *
2043 * @return The current value of the TXIQGAIN1 field in the RWNXFETXIQCOMP1 register.
2044 */
riu_txiqgain1_getf(void)2045 __INLINE uint16_t riu_txiqgain1_getf(void)
2046 {
2047 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP1_ADDR);
2048 return ((localVal & ((uint32_t)0x000007FF)) >> 0);
2049 }
2050
2051 /**
2052 * @brief Sets the TXIQGAIN1 field of the RWNXFETXIQCOMP1 register.
2053 *
2054 * The RWNXFETXIQCOMP1 register will be read, modified to contain the new field value, and written.
2055 *
2056 * @param[in] txiqgain1 - The value to set the field to.
2057 */
riu_txiqgain1_setf(uint16_t txiqgain1)2058 __INLINE void riu_txiqgain1_setf(uint16_t txiqgain1)
2059 {
2060 PLATFORM_REG_WRITE(RIU_RWNXFETXIQCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXFETXIQCOMP1_ADDR) & ~((uint32_t)0x000007FF)) | ((uint32_t)txiqgain1 << 0));
2061 }
2062
2063 #endif // RW_NX_IQ_COMP_EN
2064 /// @}
2065
2066 #if RW_NX_IQ_COMP_EN
2067 /**
2068 * @name RWNXFERXIQESTCTRL register definitions
2069 * <table>
2070 * <caption id="RWNXFERXIQESTCTRL_BF">RWNXFERXIQESTCTRL bitfields</caption>
2071 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
2072 * <tr><td>31:24 <td> IQESTFOMIN <td>R <td>R/W <td>0x0
2073 * <tr><td>22:20 <td> IQESTBWLIST <td>R <td>R/W <td>0x7
2074 * <tr><td>15:12 <td> IQESTMCSMIN <td>R <td>R/W <td>0x0
2075 * <tr><td>11:04 <td> IQESTSNRMIN <td>R <td>R/W <td>0x0
2076 * <tr><td>03 <td> RXIQPHASEESTEN <td>R <td>R/W <td>0
2077 * <tr><td>02 <td> RXIQGAINESTEN <td>R <td>R/W <td>0
2078 * <tr><td>01 <td> RXIQPHASECOMPEN <td>R <td>R/W <td>0
2079 * <tr><td>00 <td> RXIQGAINCOMPEN <td>R <td>R/W <td>0
2080 * </table>
2081 *
2082 * @{
2083 */
2084
2085 /// Address of the RWNXFERXIQESTCTRL register
2086 #define RIU_RWNXFERXIQESTCTRL_ADDR 0x4033B110
2087 /// Offset of the RWNXFERXIQESTCTRL register from the base address
2088 #define RIU_RWNXFERXIQESTCTRL_OFFSET 0x00000110
2089 /// Index of the RWNXFERXIQESTCTRL register
2090 #define RIU_RWNXFERXIQESTCTRL_INDEX 0x00000044
2091 /// Reset value of the RWNXFERXIQESTCTRL register
2092 #define RIU_RWNXFERXIQESTCTRL_RESET 0x00700000
2093
2094 /**
2095 * @brief Returns the current value of the RWNXFERXIQESTCTRL register.
2096 * The RWNXFERXIQESTCTRL register will be read and its value returned.
2097 * @return The current value of the RWNXFERXIQESTCTRL register.
2098 */
riu_rwnxferxiqestctrl_get(void)2099 __INLINE uint32_t riu_rwnxferxiqestctrl_get(void)
2100 {
2101 return PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR);
2102 }
2103
2104 /**
2105 * @brief Sets the RWNXFERXIQESTCTRL register to a value.
2106 * The RWNXFERXIQESTCTRL register will be written.
2107 * @param value - The value to write.
2108 */
riu_rwnxferxiqestctrl_set(uint32_t value)2109 __INLINE void riu_rwnxferxiqestctrl_set(uint32_t value)
2110 {
2111 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTCTRL_ADDR, value);
2112 }
2113
2114 // field definitions
2115 /// IQESTFOMIN field mask
2116 #define RIU_IQESTFOMIN_MASK ((uint32_t)0xFF000000)
2117 /// IQESTFOMIN field LSB position
2118 #define RIU_IQESTFOMIN_LSB 24
2119 /// IQESTFOMIN field width
2120 #define RIU_IQESTFOMIN_WIDTH ((uint32_t)0x00000008)
2121 /// IQESTBWLIST field mask
2122 #define RIU_IQESTBWLIST_MASK ((uint32_t)0x00700000)
2123 /// IQESTBWLIST field LSB position
2124 #define RIU_IQESTBWLIST_LSB 20
2125 /// IQESTBWLIST field width
2126 #define RIU_IQESTBWLIST_WIDTH ((uint32_t)0x00000003)
2127 /// IQESTMCSMIN field mask
2128 #define RIU_IQESTMCSMIN_MASK ((uint32_t)0x0000F000)
2129 /// IQESTMCSMIN field LSB position
2130 #define RIU_IQESTMCSMIN_LSB 12
2131 /// IQESTMCSMIN field width
2132 #define RIU_IQESTMCSMIN_WIDTH ((uint32_t)0x00000004)
2133 /// IQESTSNRMIN field mask
2134 #define RIU_IQESTSNRMIN_MASK ((uint32_t)0x00000FF0)
2135 /// IQESTSNRMIN field LSB position
2136 #define RIU_IQESTSNRMIN_LSB 4
2137 /// IQESTSNRMIN field width
2138 #define RIU_IQESTSNRMIN_WIDTH ((uint32_t)0x00000008)
2139 /// RXIQPHASEESTEN field bit
2140 #define RIU_RXIQPHASEESTEN_BIT ((uint32_t)0x00000008)
2141 /// RXIQPHASEESTEN field position
2142 #define RIU_RXIQPHASEESTEN_POS 3
2143 /// RXIQGAINESTEN field bit
2144 #define RIU_RXIQGAINESTEN_BIT ((uint32_t)0x00000004)
2145 /// RXIQGAINESTEN field position
2146 #define RIU_RXIQGAINESTEN_POS 2
2147 /// RXIQPHASECOMPEN field bit
2148 #define RIU_RXIQPHASECOMPEN_BIT ((uint32_t)0x00000002)
2149 /// RXIQPHASECOMPEN field position
2150 #define RIU_RXIQPHASECOMPEN_POS 1
2151 /// RXIQGAINCOMPEN field bit
2152 #define RIU_RXIQGAINCOMPEN_BIT ((uint32_t)0x00000001)
2153 /// RXIQGAINCOMPEN field position
2154 #define RIU_RXIQGAINCOMPEN_POS 0
2155
2156 /// IQESTFOMIN field reset value
2157 #define RIU_IQESTFOMIN_RST 0x0
2158 /// IQESTBWLIST field reset value
2159 #define RIU_IQESTBWLIST_RST 0x7
2160 /// IQESTMCSMIN field reset value
2161 #define RIU_IQESTMCSMIN_RST 0x0
2162 /// IQESTSNRMIN field reset value
2163 #define RIU_IQESTSNRMIN_RST 0x0
2164 /// RXIQPHASEESTEN field reset value
2165 #define RIU_RXIQPHASEESTEN_RST 0x0
2166 /// RXIQGAINESTEN field reset value
2167 #define RIU_RXIQGAINESTEN_RST 0x0
2168 /// RXIQPHASECOMPEN field reset value
2169 #define RIU_RXIQPHASECOMPEN_RST 0x0
2170 /// RXIQGAINCOMPEN field reset value
2171 #define RIU_RXIQGAINCOMPEN_RST 0x0
2172
2173 /**
2174 * @brief Constructs a value for the RWNXFERXIQESTCTRL register given values for its fields
2175 * and writes the value to the register.
2176 *
2177 * @param[in] iqestfomin - The value to use for the IQESTFOMIN field.
2178 * @param[in] iqestbwlist - The value to use for the IQESTBWLIST field.
2179 * @param[in] iqestmcsmin - The value to use for the IQESTMCSMIN field.
2180 * @param[in] iqestsnrmin - The value to use for the IQESTSNRMIN field.
2181 * @param[in] rxiqphaseesten - The value to use for the RXIQPHASEESTEN field.
2182 * @param[in] rxiqgainesten - The value to use for the RXIQGAINESTEN field.
2183 * @param[in] rxiqphasecompen - The value to use for the RXIQPHASECOMPEN field.
2184 * @param[in] rxiqgaincompen - The value to use for the RXIQGAINCOMPEN field.
2185 */
riu_rwnxferxiqestctrl_pack(uint8_t iqestfomin,uint8_t iqestbwlist,uint8_t iqestmcsmin,uint8_t iqestsnrmin,uint8_t rxiqphaseesten,uint8_t rxiqgainesten,uint8_t rxiqphasecompen,uint8_t rxiqgaincompen)2186 __INLINE void riu_rwnxferxiqestctrl_pack(uint8_t iqestfomin, uint8_t iqestbwlist, uint8_t iqestmcsmin, uint8_t iqestsnrmin, uint8_t rxiqphaseesten, uint8_t rxiqgainesten, uint8_t rxiqphasecompen, uint8_t rxiqgaincompen)
2187 {
2188 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTCTRL_ADDR, ((uint32_t)iqestfomin << 24) | ((uint32_t)iqestbwlist << 20) | ((uint32_t)iqestmcsmin << 12) | ((uint32_t)iqestsnrmin << 4) | ((uint32_t)rxiqphaseesten << 3) | ((uint32_t)rxiqgainesten << 2) | ((uint32_t)rxiqphasecompen << 1) | ((uint32_t)rxiqgaincompen << 0));
2189 }
2190
2191 /**
2192 * @brief Unpacks RWNXFERXIQESTCTRL's fields from current value of the RWNXFERXIQESTCTRL register.
2193 *
2194 * Reads the RWNXFERXIQESTCTRL register and populates all the _field variables with the corresponding
2195 * values from the register.
2196 *
2197 * @param[out] iqestfomin - Will be populated with the current value of this field from the register.
2198 * @param[out] iqestbwlist - Will be populated with the current value of this field from the register.
2199 * @param[out] iqestmcsmin - Will be populated with the current value of this field from the register.
2200 * @param[out] iqestsnrmin - Will be populated with the current value of this field from the register.
2201 * @param[out] rxiqphaseesten - Will be populated with the current value of this field from the register.
2202 * @param[out] rxiqgainesten - Will be populated with the current value of this field from the register.
2203 * @param[out] rxiqphasecompen - Will be populated with the current value of this field from the register.
2204 * @param[out] rxiqgaincompen - Will be populated with the current value of this field from the register.
2205 */
riu_rwnxferxiqestctrl_unpack(uint8_t * iqestfomin,uint8_t * iqestbwlist,uint8_t * iqestmcsmin,uint8_t * iqestsnrmin,uint8_t * rxiqphaseesten,uint8_t * rxiqgainesten,uint8_t * rxiqphasecompen,uint8_t * rxiqgaincompen)2206 __INLINE void riu_rwnxferxiqestctrl_unpack(uint8_t* iqestfomin, uint8_t* iqestbwlist, uint8_t* iqestmcsmin, uint8_t* iqestsnrmin, uint8_t* rxiqphaseesten, uint8_t* rxiqgainesten, uint8_t* rxiqphasecompen, uint8_t* rxiqgaincompen)
2207 {
2208 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR);
2209
2210 *iqestfomin = (localVal & ((uint32_t)0xFF000000)) >> 24;
2211 *iqestbwlist = (localVal & ((uint32_t)0x00700000)) >> 20;
2212 *iqestmcsmin = (localVal & ((uint32_t)0x0000F000)) >> 12;
2213 *iqestsnrmin = (localVal & ((uint32_t)0x00000FF0)) >> 4;
2214 *rxiqphaseesten = (localVal & ((uint32_t)0x00000008)) >> 3;
2215 *rxiqgainesten = (localVal & ((uint32_t)0x00000004)) >> 2;
2216 *rxiqphasecompen = (localVal & ((uint32_t)0x00000002)) >> 1;
2217 *rxiqgaincompen = (localVal & ((uint32_t)0x00000001)) >> 0;
2218 }
2219
2220 /**
2221 * @brief Returns the current value of the IQESTFOMIN field in the RWNXFERXIQESTCTRL register.
2222 *
2223 * The RWNXFERXIQESTCTRL register will be read and the IQESTFOMIN field's value will be returned.
2224 *
2225 * @return The current value of the IQESTFOMIN field in the RWNXFERXIQESTCTRL register.
2226 */
riu_iqestfomin_getf(void)2227 __INLINE uint8_t riu_iqestfomin_getf(void)
2228 {
2229 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR);
2230 return ((localVal & ((uint32_t)0xFF000000)) >> 24);
2231 }
2232
2233 /**
2234 * @brief Sets the IQESTFOMIN field of the RWNXFERXIQESTCTRL register.
2235 *
2236 * The RWNXFERXIQESTCTRL register will be read, modified to contain the new field value, and written.
2237 *
2238 * @param[in] iqestfomin - The value to set the field to.
2239 */
riu_iqestfomin_setf(uint8_t iqestfomin)2240 __INLINE void riu_iqestfomin_setf(uint8_t iqestfomin)
2241 {
2242 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR) & ~((uint32_t)0xFF000000)) | ((uint32_t)iqestfomin << 24));
2243 }
2244
2245 /**
2246 * @brief Returns the current value of the IQESTBWLIST field in the RWNXFERXIQESTCTRL register.
2247 *
2248 * The RWNXFERXIQESTCTRL register will be read and the IQESTBWLIST field's value will be returned.
2249 *
2250 * @return The current value of the IQESTBWLIST field in the RWNXFERXIQESTCTRL register.
2251 */
riu_iqestbwlist_getf(void)2252 __INLINE uint8_t riu_iqestbwlist_getf(void)
2253 {
2254 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR);
2255 return ((localVal & ((uint32_t)0x00700000)) >> 20);
2256 }
2257
2258 /**
2259 * @brief Sets the IQESTBWLIST field of the RWNXFERXIQESTCTRL register.
2260 *
2261 * The RWNXFERXIQESTCTRL register will be read, modified to contain the new field value, and written.
2262 *
2263 * @param[in] iqestbwlist - The value to set the field to.
2264 */
riu_iqestbwlist_setf(uint8_t iqestbwlist)2265 __INLINE void riu_iqestbwlist_setf(uint8_t iqestbwlist)
2266 {
2267 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR) & ~((uint32_t)0x00700000)) | ((uint32_t)iqestbwlist << 20));
2268 }
2269
2270 /**
2271 * @brief Returns the current value of the IQESTMCSMIN field in the RWNXFERXIQESTCTRL register.
2272 *
2273 * The RWNXFERXIQESTCTRL register will be read and the IQESTMCSMIN field's value will be returned.
2274 *
2275 * @return The current value of the IQESTMCSMIN field in the RWNXFERXIQESTCTRL register.
2276 */
riu_iqestmcsmin_getf(void)2277 __INLINE uint8_t riu_iqestmcsmin_getf(void)
2278 {
2279 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR);
2280 return ((localVal & ((uint32_t)0x0000F000)) >> 12);
2281 }
2282
2283 /**
2284 * @brief Sets the IQESTMCSMIN field of the RWNXFERXIQESTCTRL register.
2285 *
2286 * The RWNXFERXIQESTCTRL register will be read, modified to contain the new field value, and written.
2287 *
2288 * @param[in] iqestmcsmin - The value to set the field to.
2289 */
riu_iqestmcsmin_setf(uint8_t iqestmcsmin)2290 __INLINE void riu_iqestmcsmin_setf(uint8_t iqestmcsmin)
2291 {
2292 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR) & ~((uint32_t)0x0000F000)) | ((uint32_t)iqestmcsmin << 12));
2293 }
2294
2295 /**
2296 * @brief Returns the current value of the IQESTSNRMIN field in the RWNXFERXIQESTCTRL register.
2297 *
2298 * The RWNXFERXIQESTCTRL register will be read and the IQESTSNRMIN field's value will be returned.
2299 *
2300 * @return The current value of the IQESTSNRMIN field in the RWNXFERXIQESTCTRL register.
2301 */
riu_iqestsnrmin_getf(void)2302 __INLINE uint8_t riu_iqestsnrmin_getf(void)
2303 {
2304 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR);
2305 return ((localVal & ((uint32_t)0x00000FF0)) >> 4);
2306 }
2307
2308 /**
2309 * @brief Sets the IQESTSNRMIN field of the RWNXFERXIQESTCTRL register.
2310 *
2311 * The RWNXFERXIQESTCTRL register will be read, modified to contain the new field value, and written.
2312 *
2313 * @param[in] iqestsnrmin - The value to set the field to.
2314 */
riu_iqestsnrmin_setf(uint8_t iqestsnrmin)2315 __INLINE void riu_iqestsnrmin_setf(uint8_t iqestsnrmin)
2316 {
2317 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR) & ~((uint32_t)0x00000FF0)) | ((uint32_t)iqestsnrmin << 4));
2318 }
2319
2320 /**
2321 * @brief Returns the current value of the RXIQPHASEESTEN field in the RWNXFERXIQESTCTRL register.
2322 *
2323 * The RWNXFERXIQESTCTRL register will be read and the RXIQPHASEESTEN field's value will be returned.
2324 *
2325 * @return The current value of the RXIQPHASEESTEN field in the RWNXFERXIQESTCTRL register.
2326 */
riu_rxiqphaseesten_getf(void)2327 __INLINE uint8_t riu_rxiqphaseesten_getf(void)
2328 {
2329 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR);
2330 return ((localVal & ((uint32_t)0x00000008)) >> 3);
2331 }
2332
2333 /**
2334 * @brief Sets the RXIQPHASEESTEN field of the RWNXFERXIQESTCTRL register.
2335 *
2336 * The RWNXFERXIQESTCTRL register will be read, modified to contain the new field value, and written.
2337 *
2338 * @param[in] rxiqphaseesten - The value to set the field to.
2339 */
riu_rxiqphaseesten_setf(uint8_t rxiqphaseesten)2340 __INLINE void riu_rxiqphaseesten_setf(uint8_t rxiqphaseesten)
2341 {
2342 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR) & ~((uint32_t)0x00000008)) | ((uint32_t)rxiqphaseesten << 3));
2343 }
2344
2345 /**
2346 * @brief Returns the current value of the RXIQGAINESTEN field in the RWNXFERXIQESTCTRL register.
2347 *
2348 * The RWNXFERXIQESTCTRL register will be read and the RXIQGAINESTEN field's value will be returned.
2349 *
2350 * @return The current value of the RXIQGAINESTEN field in the RWNXFERXIQESTCTRL register.
2351 */
riu_rxiqgainesten_getf(void)2352 __INLINE uint8_t riu_rxiqgainesten_getf(void)
2353 {
2354 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR);
2355 return ((localVal & ((uint32_t)0x00000004)) >> 2);
2356 }
2357
2358 /**
2359 * @brief Sets the RXIQGAINESTEN field of the RWNXFERXIQESTCTRL register.
2360 *
2361 * The RWNXFERXIQESTCTRL register will be read, modified to contain the new field value, and written.
2362 *
2363 * @param[in] rxiqgainesten - The value to set the field to.
2364 */
riu_rxiqgainesten_setf(uint8_t rxiqgainesten)2365 __INLINE void riu_rxiqgainesten_setf(uint8_t rxiqgainesten)
2366 {
2367 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR) & ~((uint32_t)0x00000004)) | ((uint32_t)rxiqgainesten << 2));
2368 }
2369
2370 /**
2371 * @brief Returns the current value of the RXIQPHASECOMPEN field in the RWNXFERXIQESTCTRL register.
2372 *
2373 * The RWNXFERXIQESTCTRL register will be read and the RXIQPHASECOMPEN field's value will be returned.
2374 *
2375 * @return The current value of the RXIQPHASECOMPEN field in the RWNXFERXIQESTCTRL register.
2376 */
riu_rxiqphasecompen_getf(void)2377 __INLINE uint8_t riu_rxiqphasecompen_getf(void)
2378 {
2379 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR);
2380 return ((localVal & ((uint32_t)0x00000002)) >> 1);
2381 }
2382
2383 /**
2384 * @brief Sets the RXIQPHASECOMPEN field of the RWNXFERXIQESTCTRL register.
2385 *
2386 * The RWNXFERXIQESTCTRL register will be read, modified to contain the new field value, and written.
2387 *
2388 * @param[in] rxiqphasecompen - The value to set the field to.
2389 */
riu_rxiqphasecompen_setf(uint8_t rxiqphasecompen)2390 __INLINE void riu_rxiqphasecompen_setf(uint8_t rxiqphasecompen)
2391 {
2392 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR) & ~((uint32_t)0x00000002)) | ((uint32_t)rxiqphasecompen << 1));
2393 }
2394
2395 /**
2396 * @brief Returns the current value of the RXIQGAINCOMPEN field in the RWNXFERXIQESTCTRL register.
2397 *
2398 * The RWNXFERXIQESTCTRL register will be read and the RXIQGAINCOMPEN field's value will be returned.
2399 *
2400 * @return The current value of the RXIQGAINCOMPEN field in the RWNXFERXIQESTCTRL register.
2401 */
riu_rxiqgaincompen_getf(void)2402 __INLINE uint8_t riu_rxiqgaincompen_getf(void)
2403 {
2404 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR);
2405 return ((localVal & ((uint32_t)0x00000001)) >> 0);
2406 }
2407
2408 /**
2409 * @brief Sets the RXIQGAINCOMPEN field of the RWNXFERXIQESTCTRL register.
2410 *
2411 * The RWNXFERXIQESTCTRL register will be read, modified to contain the new field value, and written.
2412 *
2413 * @param[in] rxiqgaincompen - The value to set the field to.
2414 */
riu_rxiqgaincompen_setf(uint8_t rxiqgaincompen)2415 __INLINE void riu_rxiqgaincompen_setf(uint8_t rxiqgaincompen)
2416 {
2417 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTCTRL_ADDR) & ~((uint32_t)0x00000001)) | ((uint32_t)rxiqgaincompen << 0));
2418 }
2419
2420 #endif // RW_NX_IQ_COMP_EN
2421 /// @}
2422
2423 #if RW_NX_IQ_COMP_EN
2424 /**
2425 * @name RWNXFERXIQESTLOOP register definitions
2426 * <table>
2427 * <caption id="RWNXFERXIQESTLOOP_BF">RWNXFERXIQESTLOOP bitfields</caption>
2428 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
2429 * <tr><td>30:28 <td> RXIQESTSTEP4 <td>R <td>R/W <td>0x2
2430 * <tr><td>27:25 <td> RXIQESTSTEP3 <td>R <td>R/W <td>0x2
2431 * <tr><td>24:22 <td> RXIQESTSTEP2 <td>R <td>R/W <td>0x2
2432 * <tr><td>21:19 <td> RXIQESTSTEP1 <td>R <td>R/W <td>0x2
2433 * <tr><td>18:16 <td> RXIQESTSTEP0 <td>R <td>R/W <td>0x2
2434 * <tr><td>15:13 <td>RXIQESTPHASESTEPSTOP <td>R <td>R/W <td>0x1
2435 * <tr><td>12:10 <td>RXIQESTPHASESTEPINIT <td>R <td>R/W <td>0x5
2436 * <tr><td>09:07 <td>RXIQESTGAINSTEPSTOP <td>R <td>R/W <td>0x1
2437 * <tr><td>06:04 <td>RXIQESTGAINSTEPINIT <td>R <td>R/W <td>0x6
2438 * <tr><td>02:00 <td> RXIQESTDEL <td>R <td>R/W <td>0x2
2439 * </table>
2440 *
2441 * @{
2442 */
2443
2444 /// Address of the RWNXFERXIQESTLOOP register
2445 #define RIU_RWNXFERXIQESTLOOP_ADDR 0x4033B114
2446 /// Offset of the RWNXFERXIQESTLOOP register from the base address
2447 #define RIU_RWNXFERXIQESTLOOP_OFFSET 0x00000114
2448 /// Index of the RWNXFERXIQESTLOOP register
2449 #define RIU_RWNXFERXIQESTLOOP_INDEX 0x00000045
2450 /// Reset value of the RWNXFERXIQESTLOOP register
2451 #define RIU_RWNXFERXIQESTLOOP_RESET 0x249234E2
2452
2453 /**
2454 * @brief Returns the current value of the RWNXFERXIQESTLOOP register.
2455 * The RWNXFERXIQESTLOOP register will be read and its value returned.
2456 * @return The current value of the RWNXFERXIQESTLOOP register.
2457 */
riu_rwnxferxiqestloop_get(void)2458 __INLINE uint32_t riu_rwnxferxiqestloop_get(void)
2459 {
2460 return PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR);
2461 }
2462
2463 /**
2464 * @brief Sets the RWNXFERXIQESTLOOP register to a value.
2465 * The RWNXFERXIQESTLOOP register will be written.
2466 * @param value - The value to write.
2467 */
riu_rwnxferxiqestloop_set(uint32_t value)2468 __INLINE void riu_rwnxferxiqestloop_set(uint32_t value)
2469 {
2470 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTLOOP_ADDR, value);
2471 }
2472
2473 // field definitions
2474 /// RXIQESTSTEP4 field mask
2475 #define RIU_RXIQESTSTEP4_MASK ((uint32_t)0x70000000)
2476 /// RXIQESTSTEP4 field LSB position
2477 #define RIU_RXIQESTSTEP4_LSB 28
2478 /// RXIQESTSTEP4 field width
2479 #define RIU_RXIQESTSTEP4_WIDTH ((uint32_t)0x00000003)
2480 /// RXIQESTSTEP3 field mask
2481 #define RIU_RXIQESTSTEP3_MASK ((uint32_t)0x0E000000)
2482 /// RXIQESTSTEP3 field LSB position
2483 #define RIU_RXIQESTSTEP3_LSB 25
2484 /// RXIQESTSTEP3 field width
2485 #define RIU_RXIQESTSTEP3_WIDTH ((uint32_t)0x00000003)
2486 /// RXIQESTSTEP2 field mask
2487 #define RIU_RXIQESTSTEP2_MASK ((uint32_t)0x01C00000)
2488 /// RXIQESTSTEP2 field LSB position
2489 #define RIU_RXIQESTSTEP2_LSB 22
2490 /// RXIQESTSTEP2 field width
2491 #define RIU_RXIQESTSTEP2_WIDTH ((uint32_t)0x00000003)
2492 /// RXIQESTSTEP1 field mask
2493 #define RIU_RXIQESTSTEP1_MASK ((uint32_t)0x00380000)
2494 /// RXIQESTSTEP1 field LSB position
2495 #define RIU_RXIQESTSTEP1_LSB 19
2496 /// RXIQESTSTEP1 field width
2497 #define RIU_RXIQESTSTEP1_WIDTH ((uint32_t)0x00000003)
2498 /// RXIQESTSTEP0 field mask
2499 #define RIU_RXIQESTSTEP0_MASK ((uint32_t)0x00070000)
2500 /// RXIQESTSTEP0 field LSB position
2501 #define RIU_RXIQESTSTEP0_LSB 16
2502 /// RXIQESTSTEP0 field width
2503 #define RIU_RXIQESTSTEP0_WIDTH ((uint32_t)0x00000003)
2504 /// RXIQESTPHASESTEPSTOP field mask
2505 #define RIU_RXIQESTPHASESTEPSTOP_MASK ((uint32_t)0x0000E000)
2506 /// RXIQESTPHASESTEPSTOP field LSB position
2507 #define RIU_RXIQESTPHASESTEPSTOP_LSB 13
2508 /// RXIQESTPHASESTEPSTOP field width
2509 #define RIU_RXIQESTPHASESTEPSTOP_WIDTH ((uint32_t)0x00000003)
2510 /// RXIQESTPHASESTEPINIT field mask
2511 #define RIU_RXIQESTPHASESTEPINIT_MASK ((uint32_t)0x00001C00)
2512 /// RXIQESTPHASESTEPINIT field LSB position
2513 #define RIU_RXIQESTPHASESTEPINIT_LSB 10
2514 /// RXIQESTPHASESTEPINIT field width
2515 #define RIU_RXIQESTPHASESTEPINIT_WIDTH ((uint32_t)0x00000003)
2516 /// RXIQESTGAINSTEPSTOP field mask
2517 #define RIU_RXIQESTGAINSTEPSTOP_MASK ((uint32_t)0x00000380)
2518 /// RXIQESTGAINSTEPSTOP field LSB position
2519 #define RIU_RXIQESTGAINSTEPSTOP_LSB 7
2520 /// RXIQESTGAINSTEPSTOP field width
2521 #define RIU_RXIQESTGAINSTEPSTOP_WIDTH ((uint32_t)0x00000003)
2522 /// RXIQESTGAINSTEPINIT field mask
2523 #define RIU_RXIQESTGAINSTEPINIT_MASK ((uint32_t)0x00000070)
2524 /// RXIQESTGAINSTEPINIT field LSB position
2525 #define RIU_RXIQESTGAINSTEPINIT_LSB 4
2526 /// RXIQESTGAINSTEPINIT field width
2527 #define RIU_RXIQESTGAINSTEPINIT_WIDTH ((uint32_t)0x00000003)
2528 /// RXIQESTDEL field mask
2529 #define RIU_RXIQESTDEL_MASK ((uint32_t)0x00000007)
2530 /// RXIQESTDEL field LSB position
2531 #define RIU_RXIQESTDEL_LSB 0
2532 /// RXIQESTDEL field width
2533 #define RIU_RXIQESTDEL_WIDTH ((uint32_t)0x00000003)
2534
2535 /// RXIQESTSTEP4 field reset value
2536 #define RIU_RXIQESTSTEP4_RST 0x2
2537 /// RXIQESTSTEP3 field reset value
2538 #define RIU_RXIQESTSTEP3_RST 0x2
2539 /// RXIQESTSTEP2 field reset value
2540 #define RIU_RXIQESTSTEP2_RST 0x2
2541 /// RXIQESTSTEP1 field reset value
2542 #define RIU_RXIQESTSTEP1_RST 0x2
2543 /// RXIQESTSTEP0 field reset value
2544 #define RIU_RXIQESTSTEP0_RST 0x2
2545 /// RXIQESTPHASESTEPSTOP field reset value
2546 #define RIU_RXIQESTPHASESTEPSTOP_RST 0x1
2547 /// RXIQESTPHASESTEPINIT field reset value
2548 #define RIU_RXIQESTPHASESTEPINIT_RST 0x5
2549 /// RXIQESTGAINSTEPSTOP field reset value
2550 #define RIU_RXIQESTGAINSTEPSTOP_RST 0x1
2551 /// RXIQESTGAINSTEPINIT field reset value
2552 #define RIU_RXIQESTGAINSTEPINIT_RST 0x6
2553 /// RXIQESTDEL field reset value
2554 #define RIU_RXIQESTDEL_RST 0x2
2555
2556 /**
2557 * @brief Constructs a value for the RWNXFERXIQESTLOOP register given values for its fields
2558 * and writes the value to the register.
2559 *
2560 * @param[in] rxiqeststep4 - The value to use for the RXIQESTSTEP4 field.
2561 * @param[in] rxiqeststep3 - The value to use for the RXIQESTSTEP3 field.
2562 * @param[in] rxiqeststep2 - The value to use for the RXIQESTSTEP2 field.
2563 * @param[in] rxiqeststep1 - The value to use for the RXIQESTSTEP1 field.
2564 * @param[in] rxiqeststep0 - The value to use for the RXIQESTSTEP0 field.
2565 * @param[in] rxiqestphasestepstop - The value to use for the RXIQESTPHASESTEPSTOP field.
2566 * @param[in] rxiqestphasestepinit - The value to use for the RXIQESTPHASESTEPINIT field.
2567 * @param[in] rxiqestgainstepstop - The value to use for the RXIQESTGAINSTEPSTOP field.
2568 * @param[in] rxiqestgainstepinit - The value to use for the RXIQESTGAINSTEPINIT field.
2569 * @param[in] rxiqestdel - The value to use for the RXIQESTDEL field.
2570 */
riu_rwnxferxiqestloop_pack(uint8_t rxiqeststep4,uint8_t rxiqeststep3,uint8_t rxiqeststep2,uint8_t rxiqeststep1,uint8_t rxiqeststep0,uint8_t rxiqestphasestepstop,uint8_t rxiqestphasestepinit,uint8_t rxiqestgainstepstop,uint8_t rxiqestgainstepinit,uint8_t rxiqestdel)2571 __INLINE void riu_rwnxferxiqestloop_pack(uint8_t rxiqeststep4, uint8_t rxiqeststep3, uint8_t rxiqeststep2, uint8_t rxiqeststep1, uint8_t rxiqeststep0, uint8_t rxiqestphasestepstop, uint8_t rxiqestphasestepinit, uint8_t rxiqestgainstepstop, uint8_t rxiqestgainstepinit, uint8_t rxiqestdel)
2572 {
2573 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTLOOP_ADDR, ((uint32_t)rxiqeststep4 << 28) | ((uint32_t)rxiqeststep3 << 25) | ((uint32_t)rxiqeststep2 << 22) | ((uint32_t)rxiqeststep1 << 19) | ((uint32_t)rxiqeststep0 << 16) | ((uint32_t)rxiqestphasestepstop << 13) | ((uint32_t)rxiqestphasestepinit << 10) | ((uint32_t)rxiqestgainstepstop << 7) | ((uint32_t)rxiqestgainstepinit << 4) | ((uint32_t)rxiqestdel << 0));
2574 }
2575
2576 /**
2577 * @brief Unpacks RWNXFERXIQESTLOOP's fields from current value of the RWNXFERXIQESTLOOP register.
2578 *
2579 * Reads the RWNXFERXIQESTLOOP register and populates all the _field variables with the corresponding
2580 * values from the register.
2581 *
2582 * @param[out] rxiqeststep4 - Will be populated with the current value of this field from the register.
2583 * @param[out] rxiqeststep3 - Will be populated with the current value of this field from the register.
2584 * @param[out] rxiqeststep2 - Will be populated with the current value of this field from the register.
2585 * @param[out] rxiqeststep1 - Will be populated with the current value of this field from the register.
2586 * @param[out] rxiqeststep0 - Will be populated with the current value of this field from the register.
2587 * @param[out] rxiqestphasestepstop - Will be populated with the current value of this field from the register.
2588 * @param[out] rxiqestphasestepinit - Will be populated with the current value of this field from the register.
2589 * @param[out] rxiqestgainstepstop - Will be populated with the current value of this field from the register.
2590 * @param[out] rxiqestgainstepinit - Will be populated with the current value of this field from the register.
2591 * @param[out] rxiqestdel - Will be populated with the current value of this field from the register.
2592 */
riu_rwnxferxiqestloop_unpack(uint8_t * rxiqeststep4,uint8_t * rxiqeststep3,uint8_t * rxiqeststep2,uint8_t * rxiqeststep1,uint8_t * rxiqeststep0,uint8_t * rxiqestphasestepstop,uint8_t * rxiqestphasestepinit,uint8_t * rxiqestgainstepstop,uint8_t * rxiqestgainstepinit,uint8_t * rxiqestdel)2593 __INLINE void riu_rwnxferxiqestloop_unpack(uint8_t* rxiqeststep4, uint8_t* rxiqeststep3, uint8_t* rxiqeststep2, uint8_t* rxiqeststep1, uint8_t* rxiqeststep0, uint8_t* rxiqestphasestepstop, uint8_t* rxiqestphasestepinit, uint8_t* rxiqestgainstepstop, uint8_t* rxiqestgainstepinit, uint8_t* rxiqestdel)
2594 {
2595 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR);
2596
2597 *rxiqeststep4 = (localVal & ((uint32_t)0x70000000)) >> 28;
2598 *rxiqeststep3 = (localVal & ((uint32_t)0x0E000000)) >> 25;
2599 *rxiqeststep2 = (localVal & ((uint32_t)0x01C00000)) >> 22;
2600 *rxiqeststep1 = (localVal & ((uint32_t)0x00380000)) >> 19;
2601 *rxiqeststep0 = (localVal & ((uint32_t)0x00070000)) >> 16;
2602 *rxiqestphasestepstop = (localVal & ((uint32_t)0x0000E000)) >> 13;
2603 *rxiqestphasestepinit = (localVal & ((uint32_t)0x00001C00)) >> 10;
2604 *rxiqestgainstepstop = (localVal & ((uint32_t)0x00000380)) >> 7;
2605 *rxiqestgainstepinit = (localVal & ((uint32_t)0x00000070)) >> 4;
2606 *rxiqestdel = (localVal & ((uint32_t)0x00000007)) >> 0;
2607 }
2608
2609 /**
2610 * @brief Returns the current value of the RXIQESTSTEP4 field in the RWNXFERXIQESTLOOP register.
2611 *
2612 * The RWNXFERXIQESTLOOP register will be read and the RXIQESTSTEP4 field's value will be returned.
2613 *
2614 * @return The current value of the RXIQESTSTEP4 field in the RWNXFERXIQESTLOOP register.
2615 */
riu_rxiqeststep4_getf(void)2616 __INLINE uint8_t riu_rxiqeststep4_getf(void)
2617 {
2618 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR);
2619 return ((localVal & ((uint32_t)0x70000000)) >> 28);
2620 }
2621
2622 /**
2623 * @brief Sets the RXIQESTSTEP4 field of the RWNXFERXIQESTLOOP register.
2624 *
2625 * The RWNXFERXIQESTLOOP register will be read, modified to contain the new field value, and written.
2626 *
2627 * @param[in] rxiqeststep4 - The value to set the field to.
2628 */
riu_rxiqeststep4_setf(uint8_t rxiqeststep4)2629 __INLINE void riu_rxiqeststep4_setf(uint8_t rxiqeststep4)
2630 {
2631 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTLOOP_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR) & ~((uint32_t)0x70000000)) | ((uint32_t)rxiqeststep4 << 28));
2632 }
2633
2634 /**
2635 * @brief Returns the current value of the RXIQESTSTEP3 field in the RWNXFERXIQESTLOOP register.
2636 *
2637 * The RWNXFERXIQESTLOOP register will be read and the RXIQESTSTEP3 field's value will be returned.
2638 *
2639 * @return The current value of the RXIQESTSTEP3 field in the RWNXFERXIQESTLOOP register.
2640 */
riu_rxiqeststep3_getf(void)2641 __INLINE uint8_t riu_rxiqeststep3_getf(void)
2642 {
2643 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR);
2644 return ((localVal & ((uint32_t)0x0E000000)) >> 25);
2645 }
2646
2647 /**
2648 * @brief Sets the RXIQESTSTEP3 field of the RWNXFERXIQESTLOOP register.
2649 *
2650 * The RWNXFERXIQESTLOOP register will be read, modified to contain the new field value, and written.
2651 *
2652 * @param[in] rxiqeststep3 - The value to set the field to.
2653 */
riu_rxiqeststep3_setf(uint8_t rxiqeststep3)2654 __INLINE void riu_rxiqeststep3_setf(uint8_t rxiqeststep3)
2655 {
2656 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTLOOP_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR) & ~((uint32_t)0x0E000000)) | ((uint32_t)rxiqeststep3 << 25));
2657 }
2658
2659 /**
2660 * @brief Returns the current value of the RXIQESTSTEP2 field in the RWNXFERXIQESTLOOP register.
2661 *
2662 * The RWNXFERXIQESTLOOP register will be read and the RXIQESTSTEP2 field's value will be returned.
2663 *
2664 * @return The current value of the RXIQESTSTEP2 field in the RWNXFERXIQESTLOOP register.
2665 */
riu_rxiqeststep2_getf(void)2666 __INLINE uint8_t riu_rxiqeststep2_getf(void)
2667 {
2668 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR);
2669 return ((localVal & ((uint32_t)0x01C00000)) >> 22);
2670 }
2671
2672 /**
2673 * @brief Sets the RXIQESTSTEP2 field of the RWNXFERXIQESTLOOP register.
2674 *
2675 * The RWNXFERXIQESTLOOP register will be read, modified to contain the new field value, and written.
2676 *
2677 * @param[in] rxiqeststep2 - The value to set the field to.
2678 */
riu_rxiqeststep2_setf(uint8_t rxiqeststep2)2679 __INLINE void riu_rxiqeststep2_setf(uint8_t rxiqeststep2)
2680 {
2681 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTLOOP_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR) & ~((uint32_t)0x01C00000)) | ((uint32_t)rxiqeststep2 << 22));
2682 }
2683
2684 /**
2685 * @brief Returns the current value of the RXIQESTSTEP1 field in the RWNXFERXIQESTLOOP register.
2686 *
2687 * The RWNXFERXIQESTLOOP register will be read and the RXIQESTSTEP1 field's value will be returned.
2688 *
2689 * @return The current value of the RXIQESTSTEP1 field in the RWNXFERXIQESTLOOP register.
2690 */
riu_rxiqeststep1_getf(void)2691 __INLINE uint8_t riu_rxiqeststep1_getf(void)
2692 {
2693 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR);
2694 return ((localVal & ((uint32_t)0x00380000)) >> 19);
2695 }
2696
2697 /**
2698 * @brief Sets the RXIQESTSTEP1 field of the RWNXFERXIQESTLOOP register.
2699 *
2700 * The RWNXFERXIQESTLOOP register will be read, modified to contain the new field value, and written.
2701 *
2702 * @param[in] rxiqeststep1 - The value to set the field to.
2703 */
riu_rxiqeststep1_setf(uint8_t rxiqeststep1)2704 __INLINE void riu_rxiqeststep1_setf(uint8_t rxiqeststep1)
2705 {
2706 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTLOOP_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR) & ~((uint32_t)0x00380000)) | ((uint32_t)rxiqeststep1 << 19));
2707 }
2708
2709 /**
2710 * @brief Returns the current value of the RXIQESTSTEP0 field in the RWNXFERXIQESTLOOP register.
2711 *
2712 * The RWNXFERXIQESTLOOP register will be read and the RXIQESTSTEP0 field's value will be returned.
2713 *
2714 * @return The current value of the RXIQESTSTEP0 field in the RWNXFERXIQESTLOOP register.
2715 */
riu_rxiqeststep0_getf(void)2716 __INLINE uint8_t riu_rxiqeststep0_getf(void)
2717 {
2718 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR);
2719 return ((localVal & ((uint32_t)0x00070000)) >> 16);
2720 }
2721
2722 /**
2723 * @brief Sets the RXIQESTSTEP0 field of the RWNXFERXIQESTLOOP register.
2724 *
2725 * The RWNXFERXIQESTLOOP register will be read, modified to contain the new field value, and written.
2726 *
2727 * @param[in] rxiqeststep0 - The value to set the field to.
2728 */
riu_rxiqeststep0_setf(uint8_t rxiqeststep0)2729 __INLINE void riu_rxiqeststep0_setf(uint8_t rxiqeststep0)
2730 {
2731 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTLOOP_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR) & ~((uint32_t)0x00070000)) | ((uint32_t)rxiqeststep0 << 16));
2732 }
2733
2734 /**
2735 * @brief Returns the current value of the RXIQESTPHASESTEPSTOP field in the RWNXFERXIQESTLOOP register.
2736 *
2737 * The RWNXFERXIQESTLOOP register will be read and the RXIQESTPHASESTEPSTOP field's value will be returned.
2738 *
2739 * @return The current value of the RXIQESTPHASESTEPSTOP field in the RWNXFERXIQESTLOOP register.
2740 */
riu_rxiqestphasestepstop_getf(void)2741 __INLINE uint8_t riu_rxiqestphasestepstop_getf(void)
2742 {
2743 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR);
2744 return ((localVal & ((uint32_t)0x0000E000)) >> 13);
2745 }
2746
2747 /**
2748 * @brief Sets the RXIQESTPHASESTEPSTOP field of the RWNXFERXIQESTLOOP register.
2749 *
2750 * The RWNXFERXIQESTLOOP register will be read, modified to contain the new field value, and written.
2751 *
2752 * @param[in] rxiqestphasestepstop - The value to set the field to.
2753 */
riu_rxiqestphasestepstop_setf(uint8_t rxiqestphasestepstop)2754 __INLINE void riu_rxiqestphasestepstop_setf(uint8_t rxiqestphasestepstop)
2755 {
2756 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTLOOP_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR) & ~((uint32_t)0x0000E000)) | ((uint32_t)rxiqestphasestepstop << 13));
2757 }
2758
2759 /**
2760 * @brief Returns the current value of the RXIQESTPHASESTEPINIT field in the RWNXFERXIQESTLOOP register.
2761 *
2762 * The RWNXFERXIQESTLOOP register will be read and the RXIQESTPHASESTEPINIT field's value will be returned.
2763 *
2764 * @return The current value of the RXIQESTPHASESTEPINIT field in the RWNXFERXIQESTLOOP register.
2765 */
riu_rxiqestphasestepinit_getf(void)2766 __INLINE uint8_t riu_rxiqestphasestepinit_getf(void)
2767 {
2768 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR);
2769 return ((localVal & ((uint32_t)0x00001C00)) >> 10);
2770 }
2771
2772 /**
2773 * @brief Sets the RXIQESTPHASESTEPINIT field of the RWNXFERXIQESTLOOP register.
2774 *
2775 * The RWNXFERXIQESTLOOP register will be read, modified to contain the new field value, and written.
2776 *
2777 * @param[in] rxiqestphasestepinit - The value to set the field to.
2778 */
riu_rxiqestphasestepinit_setf(uint8_t rxiqestphasestepinit)2779 __INLINE void riu_rxiqestphasestepinit_setf(uint8_t rxiqestphasestepinit)
2780 {
2781 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTLOOP_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR) & ~((uint32_t)0x00001C00)) | ((uint32_t)rxiqestphasestepinit << 10));
2782 }
2783
2784 /**
2785 * @brief Returns the current value of the RXIQESTGAINSTEPSTOP field in the RWNXFERXIQESTLOOP register.
2786 *
2787 * The RWNXFERXIQESTLOOP register will be read and the RXIQESTGAINSTEPSTOP field's value will be returned.
2788 *
2789 * @return The current value of the RXIQESTGAINSTEPSTOP field in the RWNXFERXIQESTLOOP register.
2790 */
riu_rxiqestgainstepstop_getf(void)2791 __INLINE uint8_t riu_rxiqestgainstepstop_getf(void)
2792 {
2793 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR);
2794 return ((localVal & ((uint32_t)0x00000380)) >> 7);
2795 }
2796
2797 /**
2798 * @brief Sets the RXIQESTGAINSTEPSTOP field of the RWNXFERXIQESTLOOP register.
2799 *
2800 * The RWNXFERXIQESTLOOP register will be read, modified to contain the new field value, and written.
2801 *
2802 * @param[in] rxiqestgainstepstop - The value to set the field to.
2803 */
riu_rxiqestgainstepstop_setf(uint8_t rxiqestgainstepstop)2804 __INLINE void riu_rxiqestgainstepstop_setf(uint8_t rxiqestgainstepstop)
2805 {
2806 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTLOOP_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR) & ~((uint32_t)0x00000380)) | ((uint32_t)rxiqestgainstepstop << 7));
2807 }
2808
2809 /**
2810 * @brief Returns the current value of the RXIQESTGAINSTEPINIT field in the RWNXFERXIQESTLOOP register.
2811 *
2812 * The RWNXFERXIQESTLOOP register will be read and the RXIQESTGAINSTEPINIT field's value will be returned.
2813 *
2814 * @return The current value of the RXIQESTGAINSTEPINIT field in the RWNXFERXIQESTLOOP register.
2815 */
riu_rxiqestgainstepinit_getf(void)2816 __INLINE uint8_t riu_rxiqestgainstepinit_getf(void)
2817 {
2818 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR);
2819 return ((localVal & ((uint32_t)0x00000070)) >> 4);
2820 }
2821
2822 /**
2823 * @brief Sets the RXIQESTGAINSTEPINIT field of the RWNXFERXIQESTLOOP register.
2824 *
2825 * The RWNXFERXIQESTLOOP register will be read, modified to contain the new field value, and written.
2826 *
2827 * @param[in] rxiqestgainstepinit - The value to set the field to.
2828 */
riu_rxiqestgainstepinit_setf(uint8_t rxiqestgainstepinit)2829 __INLINE void riu_rxiqestgainstepinit_setf(uint8_t rxiqestgainstepinit)
2830 {
2831 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTLOOP_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR) & ~((uint32_t)0x00000070)) | ((uint32_t)rxiqestgainstepinit << 4));
2832 }
2833
2834 /**
2835 * @brief Returns the current value of the RXIQESTDEL field in the RWNXFERXIQESTLOOP register.
2836 *
2837 * The RWNXFERXIQESTLOOP register will be read and the RXIQESTDEL field's value will be returned.
2838 *
2839 * @return The current value of the RXIQESTDEL field in the RWNXFERXIQESTLOOP register.
2840 */
riu_rxiqestdel_getf(void)2841 __INLINE uint8_t riu_rxiqestdel_getf(void)
2842 {
2843 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR);
2844 return ((localVal & ((uint32_t)0x00000007)) >> 0);
2845 }
2846
2847 /**
2848 * @brief Sets the RXIQESTDEL field of the RWNXFERXIQESTLOOP register.
2849 *
2850 * The RWNXFERXIQESTLOOP register will be read, modified to contain the new field value, and written.
2851 *
2852 * @param[in] rxiqestdel - The value to set the field to.
2853 */
riu_rxiqestdel_setf(uint8_t rxiqestdel)2854 __INLINE void riu_rxiqestdel_setf(uint8_t rxiqestdel)
2855 {
2856 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTLOOP_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQESTLOOP_ADDR) & ~((uint32_t)0x00000007)) | ((uint32_t)rxiqestdel << 0));
2857 }
2858
2859 #endif // RW_NX_IQ_COMP_EN
2860 /// @}
2861
2862 #if RW_NX_IQ_COMP_EN
2863 /**
2864 * @name RWNXFERXIQESTCLR register definitions
2865 * <table>
2866 * <caption id="RWNXFERXIQESTCLR_BF">RWNXFERXIQESTCLR bitfields</caption>
2867 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
2868 * <tr><td>00 <td> IQESTITERCLR <td>R <td>S <td>0
2869 * </table>
2870 *
2871 * @{
2872 */
2873
2874 /// Address of the RWNXFERXIQESTCLR register
2875 #define RIU_RWNXFERXIQESTCLR_ADDR 0x4033B118
2876 /// Offset of the RWNXFERXIQESTCLR register from the base address
2877 #define RIU_RWNXFERXIQESTCLR_OFFSET 0x00000118
2878 /// Index of the RWNXFERXIQESTCLR register
2879 #define RIU_RWNXFERXIQESTCLR_INDEX 0x00000046
2880 /// Reset value of the RWNXFERXIQESTCLR register
2881 #define RIU_RWNXFERXIQESTCLR_RESET 0x00000000
2882
2883 /**
2884 * @brief Returns the current value of the RWNXFERXIQESTCLR register.
2885 * The RWNXFERXIQESTCLR register will be read and its value returned.
2886 * @return The current value of the RWNXFERXIQESTCLR register.
2887 */
riu_rwnxferxiqestclr_get(void)2888 __INLINE uint32_t riu_rwnxferxiqestclr_get(void)
2889 {
2890 return PLATFORM_REG_READ(RIU_RWNXFERXIQESTCLR_ADDR);
2891 }
2892
2893 /**
2894 * @brief Sets the RWNXFERXIQESTCLR register to a value.
2895 * The RWNXFERXIQESTCLR register will be written.
2896 * @param value - The value to write.
2897 */
riu_rwnxferxiqestclr_set(uint32_t value)2898 __INLINE void riu_rwnxferxiqestclr_set(uint32_t value)
2899 {
2900 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTCLR_ADDR, value);
2901 }
2902
2903 // field definitions
2904 /// IQESTITERCLR field bit
2905 #define RIU_IQESTITERCLR_BIT ((uint32_t)0x00000001)
2906 /// IQESTITERCLR field position
2907 #define RIU_IQESTITERCLR_POS 0
2908
2909 /// IQESTITERCLR field reset value
2910 #define RIU_IQESTITERCLR_RST 0x0
2911
2912 /**
2913 * @brief Returns the current value of the IQESTITERCLR field in the RWNXFERXIQESTCLR register.
2914 *
2915 * The RWNXFERXIQESTCLR register will be read and the IQESTITERCLR field's value will be returned.
2916 *
2917 * @return The current value of the IQESTITERCLR field in the RWNXFERXIQESTCLR register.
2918 */
riu_iqestiterclr_getf(void)2919 __INLINE uint8_t riu_iqestiterclr_getf(void)
2920 {
2921 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQESTCLR_ADDR);
2922 return (localVal >> 0);
2923 }
2924
2925 /**
2926 * @brief Sets the IQESTITERCLR field of the RWNXFERXIQESTCLR register.
2927 *
2928 * The RWNXFERXIQESTCLR register will be read, modified to contain the new field value, and written.
2929 *
2930 * @param[in] iqestiterclr - The value to set the field to.
2931 */
riu_iqestiterclr_setf(uint8_t iqestiterclr)2932 __INLINE void riu_iqestiterclr_setf(uint8_t iqestiterclr)
2933 {
2934 PLATFORM_REG_WRITE(RIU_RWNXFERXIQESTCLR_ADDR, (uint32_t)iqestiterclr << 0);
2935 }
2936
2937 #endif // RW_NX_IQ_COMP_EN
2938 /// @}
2939
2940 #if RW_NX_IQ_COMP_EN
2941 /**
2942 * @name RWNXFERXIQCOMP0 register definitions
2943 * <table>
2944 * <caption id="RWNXFERXIQCOMP0_BF">RWNXFERXIQCOMP0 bitfields</caption>
2945 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
2946 * <tr><td>24:16 <td> RXIQPHASE0 <td>R <td>R/W <td>0x0
2947 * <tr><td>10:00 <td> RXIQGAIN0 <td>R <td>R/W <td>0x400
2948 * </table>
2949 *
2950 * @{
2951 */
2952
2953 /// Address of the RWNXFERXIQCOMP0 register
2954 #define RIU_RWNXFERXIQCOMP0_ADDR 0x4033B11C
2955 /// Offset of the RWNXFERXIQCOMP0 register from the base address
2956 #define RIU_RWNXFERXIQCOMP0_OFFSET 0x0000011C
2957 /// Index of the RWNXFERXIQCOMP0 register
2958 #define RIU_RWNXFERXIQCOMP0_INDEX 0x00000047
2959 /// Reset value of the RWNXFERXIQCOMP0 register
2960 #define RIU_RWNXFERXIQCOMP0_RESET 0x00000400
2961
2962 /**
2963 * @brief Returns the current value of the RWNXFERXIQCOMP0 register.
2964 * The RWNXFERXIQCOMP0 register will be read and its value returned.
2965 * @return The current value of the RWNXFERXIQCOMP0 register.
2966 */
riu_rwnxferxiqcomp0_get(void)2967 __INLINE uint32_t riu_rwnxferxiqcomp0_get(void)
2968 {
2969 return PLATFORM_REG_READ(RIU_RWNXFERXIQCOMP0_ADDR);
2970 }
2971
2972 /**
2973 * @brief Sets the RWNXFERXIQCOMP0 register to a value.
2974 * The RWNXFERXIQCOMP0 register will be written.
2975 * @param value - The value to write.
2976 */
riu_rwnxferxiqcomp0_set(uint32_t value)2977 __INLINE void riu_rwnxferxiqcomp0_set(uint32_t value)
2978 {
2979 PLATFORM_REG_WRITE(RIU_RWNXFERXIQCOMP0_ADDR, value);
2980 }
2981
2982 // field definitions
2983 /// RXIQPHASE0 field mask
2984 #define RIU_RXIQPHASE0_MASK ((uint32_t)0x01FF0000)
2985 /// RXIQPHASE0 field LSB position
2986 #define RIU_RXIQPHASE0_LSB 16
2987 /// RXIQPHASE0 field width
2988 #define RIU_RXIQPHASE0_WIDTH ((uint32_t)0x00000009)
2989 /// RXIQGAIN0 field mask
2990 #define RIU_RXIQGAIN0_MASK ((uint32_t)0x000007FF)
2991 /// RXIQGAIN0 field LSB position
2992 #define RIU_RXIQGAIN0_LSB 0
2993 /// RXIQGAIN0 field width
2994 #define RIU_RXIQGAIN0_WIDTH ((uint32_t)0x0000000B)
2995
2996 /// RXIQPHASE0 field reset value
2997 #define RIU_RXIQPHASE0_RST 0x0
2998 /// RXIQGAIN0 field reset value
2999 #define RIU_RXIQGAIN0_RST 0x400
3000
3001 /**
3002 * @brief Constructs a value for the RWNXFERXIQCOMP0 register given values for its fields
3003 * and writes the value to the register.
3004 *
3005 * @param[in] rxiqphase0 - The value to use for the RXIQPHASE0 field.
3006 * @param[in] rxiqgain0 - The value to use for the RXIQGAIN0 field.
3007 */
riu_rwnxferxiqcomp0_pack(uint16_t rxiqphase0,uint16_t rxiqgain0)3008 __INLINE void riu_rwnxferxiqcomp0_pack(uint16_t rxiqphase0, uint16_t rxiqgain0)
3009 {
3010 PLATFORM_REG_WRITE(RIU_RWNXFERXIQCOMP0_ADDR, ((uint32_t)rxiqphase0 << 16) | ((uint32_t)rxiqgain0 << 0));
3011 }
3012
3013 /**
3014 * @brief Unpacks RWNXFERXIQCOMP0's fields from current value of the RWNXFERXIQCOMP0 register.
3015 *
3016 * Reads the RWNXFERXIQCOMP0 register and populates all the _field variables with the corresponding
3017 * values from the register.
3018 *
3019 * @param[out] rxiqphase0 - Will be populated with the current value of this field from the register.
3020 * @param[out] rxiqgain0 - Will be populated with the current value of this field from the register.
3021 */
riu_rwnxferxiqcomp0_unpack(uint16_t * rxiqphase0,uint16_t * rxiqgain0)3022 __INLINE void riu_rwnxferxiqcomp0_unpack(uint16_t* rxiqphase0, uint16_t* rxiqgain0)
3023 {
3024 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQCOMP0_ADDR);
3025
3026 *rxiqphase0 = (localVal & ((uint32_t)0x01FF0000)) >> 16;
3027 *rxiqgain0 = (localVal & ((uint32_t)0x000007FF)) >> 0;
3028 }
3029
3030 /**
3031 * @brief Returns the current value of the RXIQPHASE0 field in the RWNXFERXIQCOMP0 register.
3032 *
3033 * The RWNXFERXIQCOMP0 register will be read and the RXIQPHASE0 field's value will be returned.
3034 *
3035 * @return The current value of the RXIQPHASE0 field in the RWNXFERXIQCOMP0 register.
3036 */
riu_rxiqphase0_getf(void)3037 __INLINE uint16_t riu_rxiqphase0_getf(void)
3038 {
3039 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQCOMP0_ADDR);
3040 return ((localVal & ((uint32_t)0x01FF0000)) >> 16);
3041 }
3042
3043 /**
3044 * @brief Sets the RXIQPHASE0 field of the RWNXFERXIQCOMP0 register.
3045 *
3046 * The RWNXFERXIQCOMP0 register will be read, modified to contain the new field value, and written.
3047 *
3048 * @param[in] rxiqphase0 - The value to set the field to.
3049 */
riu_rxiqphase0_setf(uint16_t rxiqphase0)3050 __INLINE void riu_rxiqphase0_setf(uint16_t rxiqphase0)
3051 {
3052 PLATFORM_REG_WRITE(RIU_RWNXFERXIQCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQCOMP0_ADDR) & ~((uint32_t)0x01FF0000)) | ((uint32_t)rxiqphase0 << 16));
3053 }
3054
3055 /**
3056 * @brief Returns the current value of the RXIQGAIN0 field in the RWNXFERXIQCOMP0 register.
3057 *
3058 * The RWNXFERXIQCOMP0 register will be read and the RXIQGAIN0 field's value will be returned.
3059 *
3060 * @return The current value of the RXIQGAIN0 field in the RWNXFERXIQCOMP0 register.
3061 */
riu_rxiqgain0_getf(void)3062 __INLINE uint16_t riu_rxiqgain0_getf(void)
3063 {
3064 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQCOMP0_ADDR);
3065 return ((localVal & ((uint32_t)0x000007FF)) >> 0);
3066 }
3067
3068 /**
3069 * @brief Sets the RXIQGAIN0 field of the RWNXFERXIQCOMP0 register.
3070 *
3071 * The RWNXFERXIQCOMP0 register will be read, modified to contain the new field value, and written.
3072 *
3073 * @param[in] rxiqgain0 - The value to set the field to.
3074 */
riu_rxiqgain0_setf(uint16_t rxiqgain0)3075 __INLINE void riu_rxiqgain0_setf(uint16_t rxiqgain0)
3076 {
3077 PLATFORM_REG_WRITE(RIU_RWNXFERXIQCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQCOMP0_ADDR) & ~((uint32_t)0x000007FF)) | ((uint32_t)rxiqgain0 << 0));
3078 }
3079
3080 #endif // RW_NX_IQ_COMP_EN
3081 /// @}
3082
3083 #if RW_NX_IQ_COMP_EN
3084 /**
3085 * @name RWNXFERXIQCOMP1 register definitions
3086 * <table>
3087 * <caption id="RWNXFERXIQCOMP1_BF">RWNXFERXIQCOMP1 bitfields</caption>
3088 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
3089 * <tr><td>24:16 <td> RXIQPHASE1 <td>R <td>R/W <td>0x0
3090 * <tr><td>10:00 <td> RXIQGAIN1 <td>R <td>R/W <td>0x400
3091 * </table>
3092 *
3093 * @{
3094 */
3095
3096 /// Address of the RWNXFERXIQCOMP1 register
3097 #define RIU_RWNXFERXIQCOMP1_ADDR 0x4033B120
3098 /// Offset of the RWNXFERXIQCOMP1 register from the base address
3099 #define RIU_RWNXFERXIQCOMP1_OFFSET 0x00000120
3100 /// Index of the RWNXFERXIQCOMP1 register
3101 #define RIU_RWNXFERXIQCOMP1_INDEX 0x00000048
3102 /// Reset value of the RWNXFERXIQCOMP1 register
3103 #define RIU_RWNXFERXIQCOMP1_RESET 0x00000400
3104
3105 /**
3106 * @brief Returns the current value of the RWNXFERXIQCOMP1 register.
3107 * The RWNXFERXIQCOMP1 register will be read and its value returned.
3108 * @return The current value of the RWNXFERXIQCOMP1 register.
3109 */
riu_rwnxferxiqcomp1_get(void)3110 __INLINE uint32_t riu_rwnxferxiqcomp1_get(void)
3111 {
3112 return PLATFORM_REG_READ(RIU_RWNXFERXIQCOMP1_ADDR);
3113 }
3114
3115 /**
3116 * @brief Sets the RWNXFERXIQCOMP1 register to a value.
3117 * The RWNXFERXIQCOMP1 register will be written.
3118 * @param value - The value to write.
3119 */
riu_rwnxferxiqcomp1_set(uint32_t value)3120 __INLINE void riu_rwnxferxiqcomp1_set(uint32_t value)
3121 {
3122 PLATFORM_REG_WRITE(RIU_RWNXFERXIQCOMP1_ADDR, value);
3123 }
3124
3125 // field definitions
3126 /// RXIQPHASE1 field mask
3127 #define RIU_RXIQPHASE1_MASK ((uint32_t)0x01FF0000)
3128 /// RXIQPHASE1 field LSB position
3129 #define RIU_RXIQPHASE1_LSB 16
3130 /// RXIQPHASE1 field width
3131 #define RIU_RXIQPHASE1_WIDTH ((uint32_t)0x00000009)
3132 /// RXIQGAIN1 field mask
3133 #define RIU_RXIQGAIN1_MASK ((uint32_t)0x000007FF)
3134 /// RXIQGAIN1 field LSB position
3135 #define RIU_RXIQGAIN1_LSB 0
3136 /// RXIQGAIN1 field width
3137 #define RIU_RXIQGAIN1_WIDTH ((uint32_t)0x0000000B)
3138
3139 /// RXIQPHASE1 field reset value
3140 #define RIU_RXIQPHASE1_RST 0x0
3141 /// RXIQGAIN1 field reset value
3142 #define RIU_RXIQGAIN1_RST 0x400
3143
3144 /**
3145 * @brief Constructs a value for the RWNXFERXIQCOMP1 register given values for its fields
3146 * and writes the value to the register.
3147 *
3148 * @param[in] rxiqphase1 - The value to use for the RXIQPHASE1 field.
3149 * @param[in] rxiqgain1 - The value to use for the RXIQGAIN1 field.
3150 */
riu_rwnxferxiqcomp1_pack(uint16_t rxiqphase1,uint16_t rxiqgain1)3151 __INLINE void riu_rwnxferxiqcomp1_pack(uint16_t rxiqphase1, uint16_t rxiqgain1)
3152 {
3153 PLATFORM_REG_WRITE(RIU_RWNXFERXIQCOMP1_ADDR, ((uint32_t)rxiqphase1 << 16) | ((uint32_t)rxiqgain1 << 0));
3154 }
3155
3156 /**
3157 * @brief Unpacks RWNXFERXIQCOMP1's fields from current value of the RWNXFERXIQCOMP1 register.
3158 *
3159 * Reads the RWNXFERXIQCOMP1 register and populates all the _field variables with the corresponding
3160 * values from the register.
3161 *
3162 * @param[out] rxiqphase1 - Will be populated with the current value of this field from the register.
3163 * @param[out] rxiqgain1 - Will be populated with the current value of this field from the register.
3164 */
riu_rwnxferxiqcomp1_unpack(uint16_t * rxiqphase1,uint16_t * rxiqgain1)3165 __INLINE void riu_rwnxferxiqcomp1_unpack(uint16_t* rxiqphase1, uint16_t* rxiqgain1)
3166 {
3167 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQCOMP1_ADDR);
3168
3169 *rxiqphase1 = (localVal & ((uint32_t)0x01FF0000)) >> 16;
3170 *rxiqgain1 = (localVal & ((uint32_t)0x000007FF)) >> 0;
3171 }
3172
3173 /**
3174 * @brief Returns the current value of the RXIQPHASE1 field in the RWNXFERXIQCOMP1 register.
3175 *
3176 * The RWNXFERXIQCOMP1 register will be read and the RXIQPHASE1 field's value will be returned.
3177 *
3178 * @return The current value of the RXIQPHASE1 field in the RWNXFERXIQCOMP1 register.
3179 */
riu_rxiqphase1_getf(void)3180 __INLINE uint16_t riu_rxiqphase1_getf(void)
3181 {
3182 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQCOMP1_ADDR);
3183 return ((localVal & ((uint32_t)0x01FF0000)) >> 16);
3184 }
3185
3186 /**
3187 * @brief Sets the RXIQPHASE1 field of the RWNXFERXIQCOMP1 register.
3188 *
3189 * The RWNXFERXIQCOMP1 register will be read, modified to contain the new field value, and written.
3190 *
3191 * @param[in] rxiqphase1 - The value to set the field to.
3192 */
riu_rxiqphase1_setf(uint16_t rxiqphase1)3193 __INLINE void riu_rxiqphase1_setf(uint16_t rxiqphase1)
3194 {
3195 PLATFORM_REG_WRITE(RIU_RWNXFERXIQCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQCOMP1_ADDR) & ~((uint32_t)0x01FF0000)) | ((uint32_t)rxiqphase1 << 16));
3196 }
3197
3198 /**
3199 * @brief Returns the current value of the RXIQGAIN1 field in the RWNXFERXIQCOMP1 register.
3200 *
3201 * The RWNXFERXIQCOMP1 register will be read and the RXIQGAIN1 field's value will be returned.
3202 *
3203 * @return The current value of the RXIQGAIN1 field in the RWNXFERXIQCOMP1 register.
3204 */
riu_rxiqgain1_getf(void)3205 __INLINE uint16_t riu_rxiqgain1_getf(void)
3206 {
3207 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQCOMP1_ADDR);
3208 return ((localVal & ((uint32_t)0x000007FF)) >> 0);
3209 }
3210
3211 /**
3212 * @brief Sets the RXIQGAIN1 field of the RWNXFERXIQCOMP1 register.
3213 *
3214 * The RWNXFERXIQCOMP1 register will be read, modified to contain the new field value, and written.
3215 *
3216 * @param[in] rxiqgain1 - The value to set the field to.
3217 */
riu_rxiqgain1_setf(uint16_t rxiqgain1)3218 __INLINE void riu_rxiqgain1_setf(uint16_t rxiqgain1)
3219 {
3220 PLATFORM_REG_WRITE(RIU_RWNXFERXIQCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXFERXIQCOMP1_ADDR) & ~((uint32_t)0x000007FF)) | ((uint32_t)rxiqgain1 << 0));
3221 }
3222
3223 #endif // RW_NX_IQ_COMP_EN
3224 /// @}
3225
3226 #if RW_NX_FIQ_COMP_EN
3227 /**
3228 * @name RWNXFEFIQCTRL register definitions
3229 * <table>
3230 * <caption id="RWNXFEFIQCTRL_BF">RWNXFEFIQCTRL bitfields</caption>
3231 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
3232 * <tr><td>12 <td> FIQPATHSEL <td>R <td>R/W <td>0
3233 * <tr><td>08 <td> FIQTXRX <td>R <td>R/W <td>0
3234 * <tr><td>02 <td> FIQRXBYPASS <td>R <td>R/W <td>1
3235 * <tr><td>01 <td> FIQTXBYPASS <td>R <td>R/W <td>1
3236 * <tr><td>00 <td> FIQCALEN <td>R <td>R/W <td>0
3237 * </table>
3238 *
3239 * @{
3240 */
3241
3242 /// Address of the RWNXFEFIQCTRL register
3243 #define RIU_RWNXFEFIQCTRL_ADDR 0x4033B124
3244 /// Offset of the RWNXFEFIQCTRL register from the base address
3245 #define RIU_RWNXFEFIQCTRL_OFFSET 0x00000124
3246 /// Index of the RWNXFEFIQCTRL register
3247 #define RIU_RWNXFEFIQCTRL_INDEX 0x00000049
3248 /// Reset value of the RWNXFEFIQCTRL register
3249 #define RIU_RWNXFEFIQCTRL_RESET 0x00000006
3250
3251 /**
3252 * @brief Returns the current value of the RWNXFEFIQCTRL register.
3253 * The RWNXFEFIQCTRL register will be read and its value returned.
3254 * @return The current value of the RWNXFEFIQCTRL register.
3255 */
riu_rwnxfefiqctrl_get(void)3256 __INLINE uint32_t riu_rwnxfefiqctrl_get(void)
3257 {
3258 return PLATFORM_REG_READ(RIU_RWNXFEFIQCTRL_ADDR);
3259 }
3260
3261 /**
3262 * @brief Sets the RWNXFEFIQCTRL register to a value.
3263 * The RWNXFEFIQCTRL register will be written.
3264 * @param value - The value to write.
3265 */
riu_rwnxfefiqctrl_set(uint32_t value)3266 __INLINE void riu_rwnxfefiqctrl_set(uint32_t value)
3267 {
3268 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCTRL_ADDR, value);
3269 }
3270
3271 // field definitions
3272 /// FIQPATHSEL field bit
3273 #define RIU_FIQPATHSEL_BIT ((uint32_t)0x00001000)
3274 /// FIQPATHSEL field position
3275 #define RIU_FIQPATHSEL_POS 12
3276 /// FIQTXRX field bit
3277 #define RIU_FIQTXRX_BIT ((uint32_t)0x00000100)
3278 /// FIQTXRX field position
3279 #define RIU_FIQTXRX_POS 8
3280 /// FIQRXBYPASS field bit
3281 #define RIU_FIQRXBYPASS_BIT ((uint32_t)0x00000004)
3282 /// FIQRXBYPASS field position
3283 #define RIU_FIQRXBYPASS_POS 2
3284 /// FIQTXBYPASS field bit
3285 #define RIU_FIQTXBYPASS_BIT ((uint32_t)0x00000002)
3286 /// FIQTXBYPASS field position
3287 #define RIU_FIQTXBYPASS_POS 1
3288 /// FIQCALEN field bit
3289 #define RIU_FIQCALEN_BIT ((uint32_t)0x00000001)
3290 /// FIQCALEN field position
3291 #define RIU_FIQCALEN_POS 0
3292
3293 /// FIQPATHSEL field reset value
3294 #define RIU_FIQPATHSEL_RST 0x0
3295 /// FIQTXRX field reset value
3296 #define RIU_FIQTXRX_RST 0x0
3297 /// FIQRXBYPASS field reset value
3298 #define RIU_FIQRXBYPASS_RST 0x1
3299 /// FIQTXBYPASS field reset value
3300 #define RIU_FIQTXBYPASS_RST 0x1
3301 /// FIQCALEN field reset value
3302 #define RIU_FIQCALEN_RST 0x0
3303
3304 /**
3305 * @brief Constructs a value for the RWNXFEFIQCTRL register given values for its fields
3306 * and writes the value to the register.
3307 *
3308 * @param[in] fiqpathsel - The value to use for the FIQPATHSEL field.
3309 * @param[in] fiqtxrx - The value to use for the FIQTXRX field.
3310 * @param[in] fiqrxbypass - The value to use for the FIQRXBYPASS field.
3311 * @param[in] fiqtxbypass - The value to use for the FIQTXBYPASS field.
3312 * @param[in] fiqcalen - The value to use for the FIQCALEN field.
3313 */
riu_rwnxfefiqctrl_pack(uint8_t fiqpathsel,uint8_t fiqtxrx,uint8_t fiqrxbypass,uint8_t fiqtxbypass,uint8_t fiqcalen)3314 __INLINE void riu_rwnxfefiqctrl_pack(uint8_t fiqpathsel, uint8_t fiqtxrx, uint8_t fiqrxbypass, uint8_t fiqtxbypass, uint8_t fiqcalen)
3315 {
3316 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCTRL_ADDR, ((uint32_t)fiqpathsel << 12) | ((uint32_t)fiqtxrx << 8) | ((uint32_t)fiqrxbypass << 2) | ((uint32_t)fiqtxbypass << 1) | ((uint32_t)fiqcalen << 0));
3317 }
3318
3319 /**
3320 * @brief Unpacks RWNXFEFIQCTRL's fields from current value of the RWNXFEFIQCTRL register.
3321 *
3322 * Reads the RWNXFEFIQCTRL register and populates all the _field variables with the corresponding
3323 * values from the register.
3324 *
3325 * @param[out] fiqpathsel - Will be populated with the current value of this field from the register.
3326 * @param[out] fiqtxrx - Will be populated with the current value of this field from the register.
3327 * @param[out] fiqrxbypass - Will be populated with the current value of this field from the register.
3328 * @param[out] fiqtxbypass - Will be populated with the current value of this field from the register.
3329 * @param[out] fiqcalen - Will be populated with the current value of this field from the register.
3330 */
riu_rwnxfefiqctrl_unpack(uint8_t * fiqpathsel,uint8_t * fiqtxrx,uint8_t * fiqrxbypass,uint8_t * fiqtxbypass,uint8_t * fiqcalen)3331 __INLINE void riu_rwnxfefiqctrl_unpack(uint8_t* fiqpathsel, uint8_t* fiqtxrx, uint8_t* fiqrxbypass, uint8_t* fiqtxbypass, uint8_t* fiqcalen)
3332 {
3333 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCTRL_ADDR);
3334
3335 *fiqpathsel = (localVal & ((uint32_t)0x00001000)) >> 12;
3336 *fiqtxrx = (localVal & ((uint32_t)0x00000100)) >> 8;
3337 *fiqrxbypass = (localVal & ((uint32_t)0x00000004)) >> 2;
3338 *fiqtxbypass = (localVal & ((uint32_t)0x00000002)) >> 1;
3339 *fiqcalen = (localVal & ((uint32_t)0x00000001)) >> 0;
3340 }
3341
3342 /**
3343 * @brief Returns the current value of the FIQPATHSEL field in the RWNXFEFIQCTRL register.
3344 *
3345 * The RWNXFEFIQCTRL register will be read and the FIQPATHSEL field's value will be returned.
3346 *
3347 * @return The current value of the FIQPATHSEL field in the RWNXFEFIQCTRL register.
3348 */
riu_fiqpathsel_getf(void)3349 __INLINE uint8_t riu_fiqpathsel_getf(void)
3350 {
3351 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCTRL_ADDR);
3352 return ((localVal & ((uint32_t)0x00001000)) >> 12);
3353 }
3354
3355 /**
3356 * @brief Sets the FIQPATHSEL field of the RWNXFEFIQCTRL register.
3357 *
3358 * The RWNXFEFIQCTRL register will be read, modified to contain the new field value, and written.
3359 *
3360 * @param[in] fiqpathsel - The value to set the field to.
3361 */
riu_fiqpathsel_setf(uint8_t fiqpathsel)3362 __INLINE void riu_fiqpathsel_setf(uint8_t fiqpathsel)
3363 {
3364 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQCTRL_ADDR) & ~((uint32_t)0x00001000)) | ((uint32_t)fiqpathsel << 12));
3365 }
3366
3367 /**
3368 * @brief Returns the current value of the FIQTXRX field in the RWNXFEFIQCTRL register.
3369 *
3370 * The RWNXFEFIQCTRL register will be read and the FIQTXRX field's value will be returned.
3371 *
3372 * @return The current value of the FIQTXRX field in the RWNXFEFIQCTRL register.
3373 */
riu_fiqtxrx_getf(void)3374 __INLINE uint8_t riu_fiqtxrx_getf(void)
3375 {
3376 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCTRL_ADDR);
3377 return ((localVal & ((uint32_t)0x00000100)) >> 8);
3378 }
3379
3380 /**
3381 * @brief Sets the FIQTXRX field of the RWNXFEFIQCTRL register.
3382 *
3383 * The RWNXFEFIQCTRL register will be read, modified to contain the new field value, and written.
3384 *
3385 * @param[in] fiqtxrx - The value to set the field to.
3386 */
riu_fiqtxrx_setf(uint8_t fiqtxrx)3387 __INLINE void riu_fiqtxrx_setf(uint8_t fiqtxrx)
3388 {
3389 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQCTRL_ADDR) & ~((uint32_t)0x00000100)) | ((uint32_t)fiqtxrx << 8));
3390 }
3391
3392 /**
3393 * @brief Returns the current value of the FIQRXBYPASS field in the RWNXFEFIQCTRL register.
3394 *
3395 * The RWNXFEFIQCTRL register will be read and the FIQRXBYPASS field's value will be returned.
3396 *
3397 * @return The current value of the FIQRXBYPASS field in the RWNXFEFIQCTRL register.
3398 */
riu_fiqrxbypass_getf(void)3399 __INLINE uint8_t riu_fiqrxbypass_getf(void)
3400 {
3401 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCTRL_ADDR);
3402 return ((localVal & ((uint32_t)0x00000004)) >> 2);
3403 }
3404
3405 /**
3406 * @brief Sets the FIQRXBYPASS field of the RWNXFEFIQCTRL register.
3407 *
3408 * The RWNXFEFIQCTRL register will be read, modified to contain the new field value, and written.
3409 *
3410 * @param[in] fiqrxbypass - The value to set the field to.
3411 */
riu_fiqrxbypass_setf(uint8_t fiqrxbypass)3412 __INLINE void riu_fiqrxbypass_setf(uint8_t fiqrxbypass)
3413 {
3414 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQCTRL_ADDR) & ~((uint32_t)0x00000004)) | ((uint32_t)fiqrxbypass << 2));
3415 }
3416
3417 /**
3418 * @brief Returns the current value of the FIQTXBYPASS field in the RWNXFEFIQCTRL register.
3419 *
3420 * The RWNXFEFIQCTRL register will be read and the FIQTXBYPASS field's value will be returned.
3421 *
3422 * @return The current value of the FIQTXBYPASS field in the RWNXFEFIQCTRL register.
3423 */
riu_fiqtxbypass_getf(void)3424 __INLINE uint8_t riu_fiqtxbypass_getf(void)
3425 {
3426 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCTRL_ADDR);
3427 return ((localVal & ((uint32_t)0x00000002)) >> 1);
3428 }
3429
3430 /**
3431 * @brief Sets the FIQTXBYPASS field of the RWNXFEFIQCTRL register.
3432 *
3433 * The RWNXFEFIQCTRL register will be read, modified to contain the new field value, and written.
3434 *
3435 * @param[in] fiqtxbypass - The value to set the field to.
3436 */
riu_fiqtxbypass_setf(uint8_t fiqtxbypass)3437 __INLINE void riu_fiqtxbypass_setf(uint8_t fiqtxbypass)
3438 {
3439 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQCTRL_ADDR) & ~((uint32_t)0x00000002)) | ((uint32_t)fiqtxbypass << 1));
3440 }
3441
3442 /**
3443 * @brief Returns the current value of the FIQCALEN field in the RWNXFEFIQCTRL register.
3444 *
3445 * The RWNXFEFIQCTRL register will be read and the FIQCALEN field's value will be returned.
3446 *
3447 * @return The current value of the FIQCALEN field in the RWNXFEFIQCTRL register.
3448 */
riu_fiqcalen_getf(void)3449 __INLINE uint8_t riu_fiqcalen_getf(void)
3450 {
3451 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCTRL_ADDR);
3452 return ((localVal & ((uint32_t)0x00000001)) >> 0);
3453 }
3454
3455 /**
3456 * @brief Sets the FIQCALEN field of the RWNXFEFIQCTRL register.
3457 *
3458 * The RWNXFEFIQCTRL register will be read, modified to contain the new field value, and written.
3459 *
3460 * @param[in] fiqcalen - The value to set the field to.
3461 */
riu_fiqcalen_setf(uint8_t fiqcalen)3462 __INLINE void riu_fiqcalen_setf(uint8_t fiqcalen)
3463 {
3464 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQCTRL_ADDR) & ~((uint32_t)0x00000001)) | ((uint32_t)fiqcalen << 0));
3465 }
3466
3467 #endif // RW_NX_FIQ_COMP_EN
3468 /// @}
3469
3470 #if RW_NX_FIQ_COMP_EN
3471 /**
3472 * @name RWNXFEFIQCOLL register definitions
3473 * <table>
3474 * <caption id="RWNXFEFIQCOLL_BF">RWNXFEFIQCOLL bitfields</caption>
3475 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
3476 * <tr><td>31:24 <td> FIQCOLLWROFFSET <td>R <td>R/W <td>0x80
3477 * <tr><td>23:16 <td> FIQCOLLRDOFFSET <td>R <td>R/W <td>0x0
3478 * <tr><td>15:08 <td> FIQCOLLSIZE <td>R <td>R/W <td>0x80
3479 * <tr><td>00 <td> FIQCOLLPATH <td>R <td>R/W <td>0
3480 * </table>
3481 *
3482 * @{
3483 */
3484
3485 /// Address of the RWNXFEFIQCOLL register
3486 #define RIU_RWNXFEFIQCOLL_ADDR 0x4033B128
3487 /// Offset of the RWNXFEFIQCOLL register from the base address
3488 #define RIU_RWNXFEFIQCOLL_OFFSET 0x00000128
3489 /// Index of the RWNXFEFIQCOLL register
3490 #define RIU_RWNXFEFIQCOLL_INDEX 0x0000004A
3491 /// Reset value of the RWNXFEFIQCOLL register
3492 #define RIU_RWNXFEFIQCOLL_RESET 0x80008000
3493
3494 /**
3495 * @brief Returns the current value of the RWNXFEFIQCOLL register.
3496 * The RWNXFEFIQCOLL register will be read and its value returned.
3497 * @return The current value of the RWNXFEFIQCOLL register.
3498 */
riu_rwnxfefiqcoll_get(void)3499 __INLINE uint32_t riu_rwnxfefiqcoll_get(void)
3500 {
3501 return PLATFORM_REG_READ(RIU_RWNXFEFIQCOLL_ADDR);
3502 }
3503
3504 /**
3505 * @brief Sets the RWNXFEFIQCOLL register to a value.
3506 * The RWNXFEFIQCOLL register will be written.
3507 * @param value - The value to write.
3508 */
riu_rwnxfefiqcoll_set(uint32_t value)3509 __INLINE void riu_rwnxfefiqcoll_set(uint32_t value)
3510 {
3511 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCOLL_ADDR, value);
3512 }
3513
3514 // field definitions
3515 /// FIQCOLLWROFFSET field mask
3516 #define RIU_FIQCOLLWROFFSET_MASK ((uint32_t)0xFF000000)
3517 /// FIQCOLLWROFFSET field LSB position
3518 #define RIU_FIQCOLLWROFFSET_LSB 24
3519 /// FIQCOLLWROFFSET field width
3520 #define RIU_FIQCOLLWROFFSET_WIDTH ((uint32_t)0x00000008)
3521 /// FIQCOLLRDOFFSET field mask
3522 #define RIU_FIQCOLLRDOFFSET_MASK ((uint32_t)0x00FF0000)
3523 /// FIQCOLLRDOFFSET field LSB position
3524 #define RIU_FIQCOLLRDOFFSET_LSB 16
3525 /// FIQCOLLRDOFFSET field width
3526 #define RIU_FIQCOLLRDOFFSET_WIDTH ((uint32_t)0x00000008)
3527 /// FIQCOLLSIZE field mask
3528 #define RIU_FIQCOLLSIZE_MASK ((uint32_t)0x0000FF00)
3529 /// FIQCOLLSIZE field LSB position
3530 #define RIU_FIQCOLLSIZE_LSB 8
3531 /// FIQCOLLSIZE field width
3532 #define RIU_FIQCOLLSIZE_WIDTH ((uint32_t)0x00000008)
3533 /// FIQCOLLPATH field bit
3534 #define RIU_FIQCOLLPATH_BIT ((uint32_t)0x00000001)
3535 /// FIQCOLLPATH field position
3536 #define RIU_FIQCOLLPATH_POS 0
3537
3538 /// FIQCOLLWROFFSET field reset value
3539 #define RIU_FIQCOLLWROFFSET_RST 0x80
3540 /// FIQCOLLRDOFFSET field reset value
3541 #define RIU_FIQCOLLRDOFFSET_RST 0x0
3542 /// FIQCOLLSIZE field reset value
3543 #define RIU_FIQCOLLSIZE_RST 0x80
3544 /// FIQCOLLPATH field reset value
3545 #define RIU_FIQCOLLPATH_RST 0x0
3546
3547 /**
3548 * @brief Constructs a value for the RWNXFEFIQCOLL register given values for its fields
3549 * and writes the value to the register.
3550 *
3551 * @param[in] fiqcollwroffset - The value to use for the FIQCOLLWROFFSET field.
3552 * @param[in] fiqcollrdoffset - The value to use for the FIQCOLLRDOFFSET field.
3553 * @param[in] fiqcollsize - The value to use for the FIQCOLLSIZE field.
3554 * @param[in] fiqcollpath - The value to use for the FIQCOLLPATH field.
3555 */
riu_rwnxfefiqcoll_pack(uint8_t fiqcollwroffset,uint8_t fiqcollrdoffset,uint8_t fiqcollsize,uint8_t fiqcollpath)3556 __INLINE void riu_rwnxfefiqcoll_pack(uint8_t fiqcollwroffset, uint8_t fiqcollrdoffset, uint8_t fiqcollsize, uint8_t fiqcollpath)
3557 {
3558 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCOLL_ADDR, ((uint32_t)fiqcollwroffset << 24) | ((uint32_t)fiqcollrdoffset << 16) | ((uint32_t)fiqcollsize << 8) | ((uint32_t)fiqcollpath << 0));
3559 }
3560
3561 /**
3562 * @brief Unpacks RWNXFEFIQCOLL's fields from current value of the RWNXFEFIQCOLL register.
3563 *
3564 * Reads the RWNXFEFIQCOLL register and populates all the _field variables with the corresponding
3565 * values from the register.
3566 *
3567 * @param[out] fiqcollwroffset - Will be populated with the current value of this field from the register.
3568 * @param[out] fiqcollrdoffset - Will be populated with the current value of this field from the register.
3569 * @param[out] fiqcollsize - Will be populated with the current value of this field from the register.
3570 * @param[out] fiqcollpath - Will be populated with the current value of this field from the register.
3571 */
riu_rwnxfefiqcoll_unpack(uint8_t * fiqcollwroffset,uint8_t * fiqcollrdoffset,uint8_t * fiqcollsize,uint8_t * fiqcollpath)3572 __INLINE void riu_rwnxfefiqcoll_unpack(uint8_t* fiqcollwroffset, uint8_t* fiqcollrdoffset, uint8_t* fiqcollsize, uint8_t* fiqcollpath)
3573 {
3574 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCOLL_ADDR);
3575
3576 *fiqcollwroffset = (localVal & ((uint32_t)0xFF000000)) >> 24;
3577 *fiqcollrdoffset = (localVal & ((uint32_t)0x00FF0000)) >> 16;
3578 *fiqcollsize = (localVal & ((uint32_t)0x0000FF00)) >> 8;
3579 *fiqcollpath = (localVal & ((uint32_t)0x00000001)) >> 0;
3580 }
3581
3582 /**
3583 * @brief Returns the current value of the FIQCOLLWROFFSET field in the RWNXFEFIQCOLL register.
3584 *
3585 * The RWNXFEFIQCOLL register will be read and the FIQCOLLWROFFSET field's value will be returned.
3586 *
3587 * @return The current value of the FIQCOLLWROFFSET field in the RWNXFEFIQCOLL register.
3588 */
riu_fiqcollwroffset_getf(void)3589 __INLINE uint8_t riu_fiqcollwroffset_getf(void)
3590 {
3591 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCOLL_ADDR);
3592 return ((localVal & ((uint32_t)0xFF000000)) >> 24);
3593 }
3594
3595 /**
3596 * @brief Sets the FIQCOLLWROFFSET field of the RWNXFEFIQCOLL register.
3597 *
3598 * The RWNXFEFIQCOLL register will be read, modified to contain the new field value, and written.
3599 *
3600 * @param[in] fiqcollwroffset - The value to set the field to.
3601 */
riu_fiqcollwroffset_setf(uint8_t fiqcollwroffset)3602 __INLINE void riu_fiqcollwroffset_setf(uint8_t fiqcollwroffset)
3603 {
3604 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCOLL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQCOLL_ADDR) & ~((uint32_t)0xFF000000)) | ((uint32_t)fiqcollwroffset << 24));
3605 }
3606
3607 /**
3608 * @brief Returns the current value of the FIQCOLLRDOFFSET field in the RWNXFEFIQCOLL register.
3609 *
3610 * The RWNXFEFIQCOLL register will be read and the FIQCOLLRDOFFSET field's value will be returned.
3611 *
3612 * @return The current value of the FIQCOLLRDOFFSET field in the RWNXFEFIQCOLL register.
3613 */
riu_fiqcollrdoffset_getf(void)3614 __INLINE uint8_t riu_fiqcollrdoffset_getf(void)
3615 {
3616 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCOLL_ADDR);
3617 return ((localVal & ((uint32_t)0x00FF0000)) >> 16);
3618 }
3619
3620 /**
3621 * @brief Sets the FIQCOLLRDOFFSET field of the RWNXFEFIQCOLL register.
3622 *
3623 * The RWNXFEFIQCOLL register will be read, modified to contain the new field value, and written.
3624 *
3625 * @param[in] fiqcollrdoffset - The value to set the field to.
3626 */
riu_fiqcollrdoffset_setf(uint8_t fiqcollrdoffset)3627 __INLINE void riu_fiqcollrdoffset_setf(uint8_t fiqcollrdoffset)
3628 {
3629 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCOLL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQCOLL_ADDR) & ~((uint32_t)0x00FF0000)) | ((uint32_t)fiqcollrdoffset << 16));
3630 }
3631
3632 /**
3633 * @brief Returns the current value of the FIQCOLLSIZE field in the RWNXFEFIQCOLL register.
3634 *
3635 * The RWNXFEFIQCOLL register will be read and the FIQCOLLSIZE field's value will be returned.
3636 *
3637 * @return The current value of the FIQCOLLSIZE field in the RWNXFEFIQCOLL register.
3638 */
riu_fiqcollsize_getf(void)3639 __INLINE uint8_t riu_fiqcollsize_getf(void)
3640 {
3641 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCOLL_ADDR);
3642 return ((localVal & ((uint32_t)0x0000FF00)) >> 8);
3643 }
3644
3645 /**
3646 * @brief Sets the FIQCOLLSIZE field of the RWNXFEFIQCOLL register.
3647 *
3648 * The RWNXFEFIQCOLL register will be read, modified to contain the new field value, and written.
3649 *
3650 * @param[in] fiqcollsize - The value to set the field to.
3651 */
riu_fiqcollsize_setf(uint8_t fiqcollsize)3652 __INLINE void riu_fiqcollsize_setf(uint8_t fiqcollsize)
3653 {
3654 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCOLL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQCOLL_ADDR) & ~((uint32_t)0x0000FF00)) | ((uint32_t)fiqcollsize << 8));
3655 }
3656
3657 /**
3658 * @brief Returns the current value of the FIQCOLLPATH field in the RWNXFEFIQCOLL register.
3659 *
3660 * The RWNXFEFIQCOLL register will be read and the FIQCOLLPATH field's value will be returned.
3661 *
3662 * @return The current value of the FIQCOLLPATH field in the RWNXFEFIQCOLL register.
3663 */
riu_fiqcollpath_getf(void)3664 __INLINE uint8_t riu_fiqcollpath_getf(void)
3665 {
3666 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCOLL_ADDR);
3667 return ((localVal & ((uint32_t)0x00000001)) >> 0);
3668 }
3669
3670 /**
3671 * @brief Sets the FIQCOLLPATH field of the RWNXFEFIQCOLL register.
3672 *
3673 * The RWNXFEFIQCOLL register will be read, modified to contain the new field value, and written.
3674 *
3675 * @param[in] fiqcollpath - The value to set the field to.
3676 */
riu_fiqcollpath_setf(uint8_t fiqcollpath)3677 __INLINE void riu_fiqcollpath_setf(uint8_t fiqcollpath)
3678 {
3679 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCOLL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQCOLL_ADDR) & ~((uint32_t)0x00000001)) | ((uint32_t)fiqcollpath << 0));
3680 }
3681
3682 #endif // RW_NX_FIQ_COMP_EN
3683 /// @}
3684
3685 #if RW_NX_FIQ_COMP_EN
3686 /**
3687 * @name RWNXFEFIQEST0 register definitions
3688 * <table>
3689 * <caption id="RWNXFEFIQEST0_BF">RWNXFEFIQEST0 bitfields</caption>
3690 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
3691 * <tr><td>31:24 <td> FIQESTQOFFSET <td>R <td>R/W <td>0x80
3692 * <tr><td>23:16 <td> FIQESTIOFFSET <td>R <td>R/W <td>0x0
3693 * <tr><td>07:00 <td> FIQESTSIZE <td>R <td>R/W <td>0x80
3694 * </table>
3695 *
3696 * @{
3697 */
3698
3699 /// Address of the RWNXFEFIQEST0 register
3700 #define RIU_RWNXFEFIQEST0_ADDR 0x4033B12C
3701 /// Offset of the RWNXFEFIQEST0 register from the base address
3702 #define RIU_RWNXFEFIQEST0_OFFSET 0x0000012C
3703 /// Index of the RWNXFEFIQEST0 register
3704 #define RIU_RWNXFEFIQEST0_INDEX 0x0000004B
3705 /// Reset value of the RWNXFEFIQEST0 register
3706 #define RIU_RWNXFEFIQEST0_RESET 0x80000080
3707
3708 /**
3709 * @brief Returns the current value of the RWNXFEFIQEST0 register.
3710 * The RWNXFEFIQEST0 register will be read and its value returned.
3711 * @return The current value of the RWNXFEFIQEST0 register.
3712 */
riu_rwnxfefiqest0_get(void)3713 __INLINE uint32_t riu_rwnxfefiqest0_get(void)
3714 {
3715 return PLATFORM_REG_READ(RIU_RWNXFEFIQEST0_ADDR);
3716 }
3717
3718 /**
3719 * @brief Sets the RWNXFEFIQEST0 register to a value.
3720 * The RWNXFEFIQEST0 register will be written.
3721 * @param value - The value to write.
3722 */
riu_rwnxfefiqest0_set(uint32_t value)3723 __INLINE void riu_rwnxfefiqest0_set(uint32_t value)
3724 {
3725 PLATFORM_REG_WRITE(RIU_RWNXFEFIQEST0_ADDR, value);
3726 }
3727
3728 // field definitions
3729 /// FIQESTQOFFSET field mask
3730 #define RIU_FIQESTQOFFSET_MASK ((uint32_t)0xFF000000)
3731 /// FIQESTQOFFSET field LSB position
3732 #define RIU_FIQESTQOFFSET_LSB 24
3733 /// FIQESTQOFFSET field width
3734 #define RIU_FIQESTQOFFSET_WIDTH ((uint32_t)0x00000008)
3735 /// FIQESTIOFFSET field mask
3736 #define RIU_FIQESTIOFFSET_MASK ((uint32_t)0x00FF0000)
3737 /// FIQESTIOFFSET field LSB position
3738 #define RIU_FIQESTIOFFSET_LSB 16
3739 /// FIQESTIOFFSET field width
3740 #define RIU_FIQESTIOFFSET_WIDTH ((uint32_t)0x00000008)
3741 /// FIQESTSIZE field mask
3742 #define RIU_FIQESTSIZE_MASK ((uint32_t)0x000000FF)
3743 /// FIQESTSIZE field LSB position
3744 #define RIU_FIQESTSIZE_LSB 0
3745 /// FIQESTSIZE field width
3746 #define RIU_FIQESTSIZE_WIDTH ((uint32_t)0x00000008)
3747
3748 /// FIQESTQOFFSET field reset value
3749 #define RIU_FIQESTQOFFSET_RST 0x80
3750 /// FIQESTIOFFSET field reset value
3751 #define RIU_FIQESTIOFFSET_RST 0x0
3752 /// FIQESTSIZE field reset value
3753 #define RIU_FIQESTSIZE_RST 0x80
3754
3755 /**
3756 * @brief Constructs a value for the RWNXFEFIQEST0 register given values for its fields
3757 * and writes the value to the register.
3758 *
3759 * @param[in] fiqestqoffset - The value to use for the FIQESTQOFFSET field.
3760 * @param[in] fiqestioffset - The value to use for the FIQESTIOFFSET field.
3761 * @param[in] fiqestsize - The value to use for the FIQESTSIZE field.
3762 */
riu_rwnxfefiqest0_pack(uint8_t fiqestqoffset,uint8_t fiqestioffset,uint8_t fiqestsize)3763 __INLINE void riu_rwnxfefiqest0_pack(uint8_t fiqestqoffset, uint8_t fiqestioffset, uint8_t fiqestsize)
3764 {
3765 PLATFORM_REG_WRITE(RIU_RWNXFEFIQEST0_ADDR, ((uint32_t)fiqestqoffset << 24) | ((uint32_t)fiqestioffset << 16) | ((uint32_t)fiqestsize << 0));
3766 }
3767
3768 /**
3769 * @brief Unpacks RWNXFEFIQEST0's fields from current value of the RWNXFEFIQEST0 register.
3770 *
3771 * Reads the RWNXFEFIQEST0 register and populates all the _field variables with the corresponding
3772 * values from the register.
3773 *
3774 * @param[out] fiqestqoffset - Will be populated with the current value of this field from the register.
3775 * @param[out] fiqestioffset - Will be populated with the current value of this field from the register.
3776 * @param[out] fiqestsize - Will be populated with the current value of this field from the register.
3777 */
riu_rwnxfefiqest0_unpack(uint8_t * fiqestqoffset,uint8_t * fiqestioffset,uint8_t * fiqestsize)3778 __INLINE void riu_rwnxfefiqest0_unpack(uint8_t* fiqestqoffset, uint8_t* fiqestioffset, uint8_t* fiqestsize)
3779 {
3780 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQEST0_ADDR);
3781
3782 *fiqestqoffset = (localVal & ((uint32_t)0xFF000000)) >> 24;
3783 *fiqestioffset = (localVal & ((uint32_t)0x00FF0000)) >> 16;
3784 *fiqestsize = (localVal & ((uint32_t)0x000000FF)) >> 0;
3785 }
3786
3787 /**
3788 * @brief Returns the current value of the FIQESTQOFFSET field in the RWNXFEFIQEST0 register.
3789 *
3790 * The RWNXFEFIQEST0 register will be read and the FIQESTQOFFSET field's value will be returned.
3791 *
3792 * @return The current value of the FIQESTQOFFSET field in the RWNXFEFIQEST0 register.
3793 */
riu_fiqestqoffset_getf(void)3794 __INLINE uint8_t riu_fiqestqoffset_getf(void)
3795 {
3796 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQEST0_ADDR);
3797 return ((localVal & ((uint32_t)0xFF000000)) >> 24);
3798 }
3799
3800 /**
3801 * @brief Sets the FIQESTQOFFSET field of the RWNXFEFIQEST0 register.
3802 *
3803 * The RWNXFEFIQEST0 register will be read, modified to contain the new field value, and written.
3804 *
3805 * @param[in] fiqestqoffset - The value to set the field to.
3806 */
riu_fiqestqoffset_setf(uint8_t fiqestqoffset)3807 __INLINE void riu_fiqestqoffset_setf(uint8_t fiqestqoffset)
3808 {
3809 PLATFORM_REG_WRITE(RIU_RWNXFEFIQEST0_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQEST0_ADDR) & ~((uint32_t)0xFF000000)) | ((uint32_t)fiqestqoffset << 24));
3810 }
3811
3812 /**
3813 * @brief Returns the current value of the FIQESTIOFFSET field in the RWNXFEFIQEST0 register.
3814 *
3815 * The RWNXFEFIQEST0 register will be read and the FIQESTIOFFSET field's value will be returned.
3816 *
3817 * @return The current value of the FIQESTIOFFSET field in the RWNXFEFIQEST0 register.
3818 */
riu_fiqestioffset_getf(void)3819 __INLINE uint8_t riu_fiqestioffset_getf(void)
3820 {
3821 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQEST0_ADDR);
3822 return ((localVal & ((uint32_t)0x00FF0000)) >> 16);
3823 }
3824
3825 /**
3826 * @brief Sets the FIQESTIOFFSET field of the RWNXFEFIQEST0 register.
3827 *
3828 * The RWNXFEFIQEST0 register will be read, modified to contain the new field value, and written.
3829 *
3830 * @param[in] fiqestioffset - The value to set the field to.
3831 */
riu_fiqestioffset_setf(uint8_t fiqestioffset)3832 __INLINE void riu_fiqestioffset_setf(uint8_t fiqestioffset)
3833 {
3834 PLATFORM_REG_WRITE(RIU_RWNXFEFIQEST0_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQEST0_ADDR) & ~((uint32_t)0x00FF0000)) | ((uint32_t)fiqestioffset << 16));
3835 }
3836
3837 /**
3838 * @brief Returns the current value of the FIQESTSIZE field in the RWNXFEFIQEST0 register.
3839 *
3840 * The RWNXFEFIQEST0 register will be read and the FIQESTSIZE field's value will be returned.
3841 *
3842 * @return The current value of the FIQESTSIZE field in the RWNXFEFIQEST0 register.
3843 */
riu_fiqestsize_getf(void)3844 __INLINE uint8_t riu_fiqestsize_getf(void)
3845 {
3846 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQEST0_ADDR);
3847 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
3848 }
3849
3850 /**
3851 * @brief Sets the FIQESTSIZE field of the RWNXFEFIQEST0 register.
3852 *
3853 * The RWNXFEFIQEST0 register will be read, modified to contain the new field value, and written.
3854 *
3855 * @param[in] fiqestsize - The value to set the field to.
3856 */
riu_fiqestsize_setf(uint8_t fiqestsize)3857 __INLINE void riu_fiqestsize_setf(uint8_t fiqestsize)
3858 {
3859 PLATFORM_REG_WRITE(RIU_RWNXFEFIQEST0_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQEST0_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)fiqestsize << 0));
3860 }
3861
3862 #endif // RW_NX_FIQ_COMP_EN
3863 /// @}
3864
3865 #if RW_NX_FIQ_COMP_EN
3866 /**
3867 * @name RWNXFEFIQEST1 register definitions
3868 * <table>
3869 * <caption id="RWNXFEFIQEST1_BF">RWNXFEFIQEST1 bitfields</caption>
3870 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
3871 * <tr><td>19:16 <td> FIQESTSTEP <td>R <td>R/W <td>0x6
3872 * <tr><td>15:00 <td> FIQESTNITE <td>R <td>R/W <td>0x2710
3873 * </table>
3874 *
3875 * @{
3876 */
3877
3878 /// Address of the RWNXFEFIQEST1 register
3879 #define RIU_RWNXFEFIQEST1_ADDR 0x4033B130
3880 /// Offset of the RWNXFEFIQEST1 register from the base address
3881 #define RIU_RWNXFEFIQEST1_OFFSET 0x00000130
3882 /// Index of the RWNXFEFIQEST1 register
3883 #define RIU_RWNXFEFIQEST1_INDEX 0x0000004C
3884 /// Reset value of the RWNXFEFIQEST1 register
3885 #define RIU_RWNXFEFIQEST1_RESET 0x00062710
3886
3887 /**
3888 * @brief Returns the current value of the RWNXFEFIQEST1 register.
3889 * The RWNXFEFIQEST1 register will be read and its value returned.
3890 * @return The current value of the RWNXFEFIQEST1 register.
3891 */
riu_rwnxfefiqest1_get(void)3892 __INLINE uint32_t riu_rwnxfefiqest1_get(void)
3893 {
3894 return PLATFORM_REG_READ(RIU_RWNXFEFIQEST1_ADDR);
3895 }
3896
3897 /**
3898 * @brief Sets the RWNXFEFIQEST1 register to a value.
3899 * The RWNXFEFIQEST1 register will be written.
3900 * @param value - The value to write.
3901 */
riu_rwnxfefiqest1_set(uint32_t value)3902 __INLINE void riu_rwnxfefiqest1_set(uint32_t value)
3903 {
3904 PLATFORM_REG_WRITE(RIU_RWNXFEFIQEST1_ADDR, value);
3905 }
3906
3907 // field definitions
3908 /// FIQESTSTEP field mask
3909 #define RIU_FIQESTSTEP_MASK ((uint32_t)0x000F0000)
3910 /// FIQESTSTEP field LSB position
3911 #define RIU_FIQESTSTEP_LSB 16
3912 /// FIQESTSTEP field width
3913 #define RIU_FIQESTSTEP_WIDTH ((uint32_t)0x00000004)
3914 /// FIQESTNITE field mask
3915 #define RIU_FIQESTNITE_MASK ((uint32_t)0x0000FFFF)
3916 /// FIQESTNITE field LSB position
3917 #define RIU_FIQESTNITE_LSB 0
3918 /// FIQESTNITE field width
3919 #define RIU_FIQESTNITE_WIDTH ((uint32_t)0x00000010)
3920
3921 /// FIQESTSTEP field reset value
3922 #define RIU_FIQESTSTEP_RST 0x6
3923 /// FIQESTNITE field reset value
3924 #define RIU_FIQESTNITE_RST 0x2710
3925
3926 /**
3927 * @brief Constructs a value for the RWNXFEFIQEST1 register given values for its fields
3928 * and writes the value to the register.
3929 *
3930 * @param[in] fiqeststep - The value to use for the FIQESTSTEP field.
3931 * @param[in] fiqestnite - The value to use for the FIQESTNITE field.
3932 */
riu_rwnxfefiqest1_pack(uint8_t fiqeststep,uint16_t fiqestnite)3933 __INLINE void riu_rwnxfefiqest1_pack(uint8_t fiqeststep, uint16_t fiqestnite)
3934 {
3935 PLATFORM_REG_WRITE(RIU_RWNXFEFIQEST1_ADDR, ((uint32_t)fiqeststep << 16) | ((uint32_t)fiqestnite << 0));
3936 }
3937
3938 /**
3939 * @brief Unpacks RWNXFEFIQEST1's fields from current value of the RWNXFEFIQEST1 register.
3940 *
3941 * Reads the RWNXFEFIQEST1 register and populates all the _field variables with the corresponding
3942 * values from the register.
3943 *
3944 * @param[out] fiqeststep - Will be populated with the current value of this field from the register.
3945 * @param[out] fiqestnite - Will be populated with the current value of this field from the register.
3946 */
riu_rwnxfefiqest1_unpack(uint8_t * fiqeststep,uint16_t * fiqestnite)3947 __INLINE void riu_rwnxfefiqest1_unpack(uint8_t* fiqeststep, uint16_t* fiqestnite)
3948 {
3949 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQEST1_ADDR);
3950
3951 *fiqeststep = (localVal & ((uint32_t)0x000F0000)) >> 16;
3952 *fiqestnite = (localVal & ((uint32_t)0x0000FFFF)) >> 0;
3953 }
3954
3955 /**
3956 * @brief Returns the current value of the FIQESTSTEP field in the RWNXFEFIQEST1 register.
3957 *
3958 * The RWNXFEFIQEST1 register will be read and the FIQESTSTEP field's value will be returned.
3959 *
3960 * @return The current value of the FIQESTSTEP field in the RWNXFEFIQEST1 register.
3961 */
riu_fiqeststep_getf(void)3962 __INLINE uint8_t riu_fiqeststep_getf(void)
3963 {
3964 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQEST1_ADDR);
3965 return ((localVal & ((uint32_t)0x000F0000)) >> 16);
3966 }
3967
3968 /**
3969 * @brief Sets the FIQESTSTEP field of the RWNXFEFIQEST1 register.
3970 *
3971 * The RWNXFEFIQEST1 register will be read, modified to contain the new field value, and written.
3972 *
3973 * @param[in] fiqeststep - The value to set the field to.
3974 */
riu_fiqeststep_setf(uint8_t fiqeststep)3975 __INLINE void riu_fiqeststep_setf(uint8_t fiqeststep)
3976 {
3977 PLATFORM_REG_WRITE(RIU_RWNXFEFIQEST1_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQEST1_ADDR) & ~((uint32_t)0x000F0000)) | ((uint32_t)fiqeststep << 16));
3978 }
3979
3980 /**
3981 * @brief Returns the current value of the FIQESTNITE field in the RWNXFEFIQEST1 register.
3982 *
3983 * The RWNXFEFIQEST1 register will be read and the FIQESTNITE field's value will be returned.
3984 *
3985 * @return The current value of the FIQESTNITE field in the RWNXFEFIQEST1 register.
3986 */
riu_fiqestnite_getf(void)3987 __INLINE uint16_t riu_fiqestnite_getf(void)
3988 {
3989 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQEST1_ADDR);
3990 return ((localVal & ((uint32_t)0x0000FFFF)) >> 0);
3991 }
3992
3993 /**
3994 * @brief Sets the FIQESTNITE field of the RWNXFEFIQEST1 register.
3995 *
3996 * The RWNXFEFIQEST1 register will be read, modified to contain the new field value, and written.
3997 *
3998 * @param[in] fiqestnite - The value to set the field to.
3999 */
riu_fiqestnite_setf(uint16_t fiqestnite)4000 __INLINE void riu_fiqestnite_setf(uint16_t fiqestnite)
4001 {
4002 PLATFORM_REG_WRITE(RIU_RWNXFEFIQEST1_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQEST1_ADDR) & ~((uint32_t)0x0000FFFF)) | ((uint32_t)fiqestnite << 0));
4003 }
4004
4005 #endif // RW_NX_FIQ_COMP_EN
4006 /// @}
4007
4008 #if RW_NX_FIQ_COMP_EN
4009 /**
4010 * @name RWNXFEFIQDEL register definitions
4011 * <table>
4012 * <caption id="RWNXFEFIQDEL_BF">RWNXFEFIQDEL bitfields</caption>
4013 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
4014 * <tr><td>28:24 <td> FIQRXDEL <td>R <td>R/W <td>0x9
4015 * <tr><td>20:16 <td> FIQTXDEL <td>R <td>R/W <td>0x9
4016 * <tr><td>07:00 <td> FIQCOLLDEL <td>R <td>R/W <td>0x0
4017 * </table>
4018 *
4019 * @{
4020 */
4021
4022 /// Address of the RWNXFEFIQDEL register
4023 #define RIU_RWNXFEFIQDEL_ADDR 0x4033B134
4024 /// Offset of the RWNXFEFIQDEL register from the base address
4025 #define RIU_RWNXFEFIQDEL_OFFSET 0x00000134
4026 /// Index of the RWNXFEFIQDEL register
4027 #define RIU_RWNXFEFIQDEL_INDEX 0x0000004D
4028 /// Reset value of the RWNXFEFIQDEL register
4029 #define RIU_RWNXFEFIQDEL_RESET 0x09090000
4030
4031 /**
4032 * @brief Returns the current value of the RWNXFEFIQDEL register.
4033 * The RWNXFEFIQDEL register will be read and its value returned.
4034 * @return The current value of the RWNXFEFIQDEL register.
4035 */
riu_rwnxfefiqdel_get(void)4036 __INLINE uint32_t riu_rwnxfefiqdel_get(void)
4037 {
4038 return PLATFORM_REG_READ(RIU_RWNXFEFIQDEL_ADDR);
4039 }
4040
4041 /**
4042 * @brief Sets the RWNXFEFIQDEL register to a value.
4043 * The RWNXFEFIQDEL register will be written.
4044 * @param value - The value to write.
4045 */
riu_rwnxfefiqdel_set(uint32_t value)4046 __INLINE void riu_rwnxfefiqdel_set(uint32_t value)
4047 {
4048 PLATFORM_REG_WRITE(RIU_RWNXFEFIQDEL_ADDR, value);
4049 }
4050
4051 // field definitions
4052 /// FIQRXDEL field mask
4053 #define RIU_FIQRXDEL_MASK ((uint32_t)0x1F000000)
4054 /// FIQRXDEL field LSB position
4055 #define RIU_FIQRXDEL_LSB 24
4056 /// FIQRXDEL field width
4057 #define RIU_FIQRXDEL_WIDTH ((uint32_t)0x00000005)
4058 /// FIQTXDEL field mask
4059 #define RIU_FIQTXDEL_MASK ((uint32_t)0x001F0000)
4060 /// FIQTXDEL field LSB position
4061 #define RIU_FIQTXDEL_LSB 16
4062 /// FIQTXDEL field width
4063 #define RIU_FIQTXDEL_WIDTH ((uint32_t)0x00000005)
4064 /// FIQCOLLDEL field mask
4065 #define RIU_FIQCOLLDEL_MASK ((uint32_t)0x000000FF)
4066 /// FIQCOLLDEL field LSB position
4067 #define RIU_FIQCOLLDEL_LSB 0
4068 /// FIQCOLLDEL field width
4069 #define RIU_FIQCOLLDEL_WIDTH ((uint32_t)0x00000008)
4070
4071 /// FIQRXDEL field reset value
4072 #define RIU_FIQRXDEL_RST 0x9
4073 /// FIQTXDEL field reset value
4074 #define RIU_FIQTXDEL_RST 0x9
4075 /// FIQCOLLDEL field reset value
4076 #define RIU_FIQCOLLDEL_RST 0x0
4077
4078 /**
4079 * @brief Constructs a value for the RWNXFEFIQDEL register given values for its fields
4080 * and writes the value to the register.
4081 *
4082 * @param[in] fiqrxdel - The value to use for the FIQRXDEL field.
4083 * @param[in] fiqtxdel - The value to use for the FIQTXDEL field.
4084 * @param[in] fiqcolldel - The value to use for the FIQCOLLDEL field.
4085 */
riu_rwnxfefiqdel_pack(uint8_t fiqrxdel,uint8_t fiqtxdel,uint8_t fiqcolldel)4086 __INLINE void riu_rwnxfefiqdel_pack(uint8_t fiqrxdel, uint8_t fiqtxdel, uint8_t fiqcolldel)
4087 {
4088 PLATFORM_REG_WRITE(RIU_RWNXFEFIQDEL_ADDR, ((uint32_t)fiqrxdel << 24) | ((uint32_t)fiqtxdel << 16) | ((uint32_t)fiqcolldel << 0));
4089 }
4090
4091 /**
4092 * @brief Unpacks RWNXFEFIQDEL's fields from current value of the RWNXFEFIQDEL register.
4093 *
4094 * Reads the RWNXFEFIQDEL register and populates all the _field variables with the corresponding
4095 * values from the register.
4096 *
4097 * @param[out] fiqrxdel - Will be populated with the current value of this field from the register.
4098 * @param[out] fiqtxdel - Will be populated with the current value of this field from the register.
4099 * @param[out] fiqcolldel - Will be populated with the current value of this field from the register.
4100 */
riu_rwnxfefiqdel_unpack(uint8_t * fiqrxdel,uint8_t * fiqtxdel,uint8_t * fiqcolldel)4101 __INLINE void riu_rwnxfefiqdel_unpack(uint8_t* fiqrxdel, uint8_t* fiqtxdel, uint8_t* fiqcolldel)
4102 {
4103 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQDEL_ADDR);
4104
4105 *fiqrxdel = (localVal & ((uint32_t)0x1F000000)) >> 24;
4106 *fiqtxdel = (localVal & ((uint32_t)0x001F0000)) >> 16;
4107 *fiqcolldel = (localVal & ((uint32_t)0x000000FF)) >> 0;
4108 }
4109
4110 /**
4111 * @brief Returns the current value of the FIQRXDEL field in the RWNXFEFIQDEL register.
4112 *
4113 * The RWNXFEFIQDEL register will be read and the FIQRXDEL field's value will be returned.
4114 *
4115 * @return The current value of the FIQRXDEL field in the RWNXFEFIQDEL register.
4116 */
riu_fiqrxdel_getf(void)4117 __INLINE uint8_t riu_fiqrxdel_getf(void)
4118 {
4119 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQDEL_ADDR);
4120 return ((localVal & ((uint32_t)0x1F000000)) >> 24);
4121 }
4122
4123 /**
4124 * @brief Sets the FIQRXDEL field of the RWNXFEFIQDEL register.
4125 *
4126 * The RWNXFEFIQDEL register will be read, modified to contain the new field value, and written.
4127 *
4128 * @param[in] fiqrxdel - The value to set the field to.
4129 */
riu_fiqrxdel_setf(uint8_t fiqrxdel)4130 __INLINE void riu_fiqrxdel_setf(uint8_t fiqrxdel)
4131 {
4132 PLATFORM_REG_WRITE(RIU_RWNXFEFIQDEL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQDEL_ADDR) & ~((uint32_t)0x1F000000)) | ((uint32_t)fiqrxdel << 24));
4133 }
4134
4135 /**
4136 * @brief Returns the current value of the FIQTXDEL field in the RWNXFEFIQDEL register.
4137 *
4138 * The RWNXFEFIQDEL register will be read and the FIQTXDEL field's value will be returned.
4139 *
4140 * @return The current value of the FIQTXDEL field in the RWNXFEFIQDEL register.
4141 */
riu_fiqtxdel_getf(void)4142 __INLINE uint8_t riu_fiqtxdel_getf(void)
4143 {
4144 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQDEL_ADDR);
4145 return ((localVal & ((uint32_t)0x001F0000)) >> 16);
4146 }
4147
4148 /**
4149 * @brief Sets the FIQTXDEL field of the RWNXFEFIQDEL register.
4150 *
4151 * The RWNXFEFIQDEL register will be read, modified to contain the new field value, and written.
4152 *
4153 * @param[in] fiqtxdel - The value to set the field to.
4154 */
riu_fiqtxdel_setf(uint8_t fiqtxdel)4155 __INLINE void riu_fiqtxdel_setf(uint8_t fiqtxdel)
4156 {
4157 PLATFORM_REG_WRITE(RIU_RWNXFEFIQDEL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQDEL_ADDR) & ~((uint32_t)0x001F0000)) | ((uint32_t)fiqtxdel << 16));
4158 }
4159
4160 /**
4161 * @brief Returns the current value of the FIQCOLLDEL field in the RWNXFEFIQDEL register.
4162 *
4163 * The RWNXFEFIQDEL register will be read and the FIQCOLLDEL field's value will be returned.
4164 *
4165 * @return The current value of the FIQCOLLDEL field in the RWNXFEFIQDEL register.
4166 */
riu_fiqcolldel_getf(void)4167 __INLINE uint8_t riu_fiqcolldel_getf(void)
4168 {
4169 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQDEL_ADDR);
4170 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
4171 }
4172
4173 /**
4174 * @brief Sets the FIQCOLLDEL field of the RWNXFEFIQDEL register.
4175 *
4176 * The RWNXFEFIQDEL register will be read, modified to contain the new field value, and written.
4177 *
4178 * @param[in] fiqcolldel - The value to set the field to.
4179 */
riu_fiqcolldel_setf(uint8_t fiqcolldel)4180 __INLINE void riu_fiqcolldel_setf(uint8_t fiqcolldel)
4181 {
4182 PLATFORM_REG_WRITE(RIU_RWNXFEFIQDEL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEFIQDEL_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)fiqcolldel << 0));
4183 }
4184
4185 #endif // RW_NX_FIQ_COMP_EN
4186 /// @}
4187
4188 #if RW_NX_FIQ_COMP_EN
4189 /**
4190 * @name RWNXFEFIQCOEFF register definitions
4191 * <table>
4192 * <caption id="RWNXFEFIQCOEFF_BF">RWNXFEFIQCOEFF bitfields</caption>
4193 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
4194 * <tr><td>15:00 <td> FIQCOEFF <td>R <td>R/W <td>0x0
4195 * </table>
4196 *
4197 * @{
4198 */
4199
4200 /// Address of the RWNXFEFIQCOEFF register
4201 #define RIU_RWNXFEFIQCOEFF_ADDR 0x4033B138
4202 /// Offset of the RWNXFEFIQCOEFF register from the base address
4203 #define RIU_RWNXFEFIQCOEFF_OFFSET 0x00000138
4204 /// Index of the RWNXFEFIQCOEFF register
4205 #define RIU_RWNXFEFIQCOEFF_INDEX 0x0000004E
4206 /// Reset value of the RWNXFEFIQCOEFF register
4207 #define RIU_RWNXFEFIQCOEFF_RESET 0x00000000
4208 /// Number of elements of the RWNXFEFIQCOEFF register array
4209 #define RIU_RWNXFEFIQCOEFF_COUNT 20
4210
4211 /**
4212 * @brief Returns the current value of the RWNXFEFIQCOEFF register.
4213 * The RWNXFEFIQCOEFF register will be read and its value returned.
4214 * @param[in] reg_idx Index of the register
4215 * @return The current value of the RWNXFEFIQCOEFF register.
4216 */
riu_rwnxfefiqcoeff_get(int reg_idx)4217 __INLINE uint32_t riu_rwnxfefiqcoeff_get(int reg_idx)
4218 {
4219 return PLATFORM_REG_READ(RIU_RWNXFEFIQCOEFF_ADDR + reg_idx * 4);
4220 }
4221
4222 /**
4223 * @brief Sets the RWNXFEFIQCOEFF register to a value.
4224 * The RWNXFEFIQCOEFF register will be written.
4225 * @param[in] reg_idx Index of the register
4226 * @param value - The value to write.
4227 */
riu_rwnxfefiqcoeff_set(int reg_idx,uint32_t value)4228 __INLINE void riu_rwnxfefiqcoeff_set(int reg_idx, uint32_t value)
4229 {
4230 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCOEFF_ADDR + reg_idx * 4, value);
4231 }
4232
4233 // field definitions
4234 /// FIQCOEFF field mask
4235 #define RIU_FIQCOEFF_MASK ((uint32_t)0x0000FFFF)
4236 /// FIQCOEFF field LSB position
4237 #define RIU_FIQCOEFF_LSB 0
4238 /// FIQCOEFF field width
4239 #define RIU_FIQCOEFF_WIDTH ((uint32_t)0x00000010)
4240
4241 /// FIQCOEFF field reset value
4242 #define RIU_FIQCOEFF_RST 0x0
4243
4244 /**
4245 * @brief Returns the current value of the FIQCOEFF field in the RWNXFEFIQCOEFF register.
4246 *
4247 * The RWNXFEFIQCOEFF register will be read and the FIQCOEFF field's value will be returned.
4248 *
4249 * @param[in] reg_idx Index of the register
4250 * @return The current value of the FIQCOEFF field in the RWNXFEFIQCOEFF register.
4251 */
riu_fiqcoeff_getf(int reg_idx)4252 __INLINE uint16_t riu_fiqcoeff_getf(int reg_idx)
4253 {
4254 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCOEFF_ADDR + reg_idx * 4);
4255 return (localVal >> 0);
4256 }
4257
4258 /**
4259 * @brief Sets the FIQCOEFF field of the RWNXFEFIQCOEFF register.
4260 *
4261 * The RWNXFEFIQCOEFF register will be read, modified to contain the new field value, and written.
4262 *
4263 * @param[in] reg_idx Index of the register
4264 * @param[in] fiqcoeff - The value to set the field to.
4265 */
riu_fiqcoeff_setf(int reg_idx,uint16_t fiqcoeff)4266 __INLINE void riu_fiqcoeff_setf(int reg_idx, uint16_t fiqcoeff)
4267 {
4268 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCOEFF_ADDR + reg_idx * 4, (uint32_t)fiqcoeff << 0);
4269 }
4270
4271 #endif // RW_NX_FIQ_COMP_EN
4272 /// @}
4273
4274 #if RW_NX_FIQ_COMP_EN
4275 /**
4276 * @name RWNXFEFIQCOEFFUPDATE register definitions
4277 * <table>
4278 * <caption id="RWNXFEFIQCOEFFUPDATE_BF">RWNXFEFIQCOEFFUPDATE bitfields</caption>
4279 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
4280 * <tr><td>00 <td> FIQCOEFFUPDATE <td>R/W <td>R/W <td>0
4281 * </table>
4282 *
4283 * @{
4284 */
4285
4286 /// Address of the RWNXFEFIQCOEFFUPDATE register
4287 #define RIU_RWNXFEFIQCOEFFUPDATE_ADDR 0x4033B188
4288 /// Offset of the RWNXFEFIQCOEFFUPDATE register from the base address
4289 #define RIU_RWNXFEFIQCOEFFUPDATE_OFFSET 0x00000188
4290 /// Index of the RWNXFEFIQCOEFFUPDATE register
4291 #define RIU_RWNXFEFIQCOEFFUPDATE_INDEX 0x00000062
4292 /// Reset value of the RWNXFEFIQCOEFFUPDATE register
4293 #define RIU_RWNXFEFIQCOEFFUPDATE_RESET 0x00000000
4294
4295 /**
4296 * @brief Returns the current value of the RWNXFEFIQCOEFFUPDATE register.
4297 * The RWNXFEFIQCOEFFUPDATE register will be read and its value returned.
4298 * @return The current value of the RWNXFEFIQCOEFFUPDATE register.
4299 */
riu_rwnxfefiqcoeffupdate_get(void)4300 __INLINE uint32_t riu_rwnxfefiqcoeffupdate_get(void)
4301 {
4302 return PLATFORM_REG_READ(RIU_RWNXFEFIQCOEFFUPDATE_ADDR);
4303 }
4304
4305 /**
4306 * @brief Sets the RWNXFEFIQCOEFFUPDATE register to a value.
4307 * The RWNXFEFIQCOEFFUPDATE register will be written.
4308 * @param value - The value to write.
4309 */
riu_rwnxfefiqcoeffupdate_set(uint32_t value)4310 __INLINE void riu_rwnxfefiqcoeffupdate_set(uint32_t value)
4311 {
4312 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCOEFFUPDATE_ADDR, value);
4313 }
4314
4315 // field definitions
4316 /// FIQCOEFFUPDATE field bit
4317 #define RIU_FIQCOEFFUPDATE_BIT ((uint32_t)0x00000001)
4318 /// FIQCOEFFUPDATE field position
4319 #define RIU_FIQCOEFFUPDATE_POS 0
4320
4321 /// FIQCOEFFUPDATE field reset value
4322 #define RIU_FIQCOEFFUPDATE_RST 0x0
4323
4324 /**
4325 * @brief Returns the current value of the FIQCOEFFUPDATE field in the RWNXFEFIQCOEFFUPDATE register.
4326 *
4327 * The RWNXFEFIQCOEFFUPDATE register will be read and the FIQCOEFFUPDATE field's value will be returned.
4328 *
4329 * @return The current value of the FIQCOEFFUPDATE field in the RWNXFEFIQCOEFFUPDATE register.
4330 */
riu_fiqcoeffupdate_getf(void)4331 __INLINE uint8_t riu_fiqcoeffupdate_getf(void)
4332 {
4333 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCOEFFUPDATE_ADDR);
4334 return (localVal >> 0);
4335 }
4336
4337 /**
4338 * @brief Sets the FIQCOEFFUPDATE field of the RWNXFEFIQCOEFFUPDATE register.
4339 *
4340 * The RWNXFEFIQCOEFFUPDATE register will be read, modified to contain the new field value, and written.
4341 *
4342 * @param[in] fiqcoeffupdate - The value to set the field to.
4343 */
riu_fiqcoeffupdate_setf(uint8_t fiqcoeffupdate)4344 __INLINE void riu_fiqcoeffupdate_setf(uint8_t fiqcoeffupdate)
4345 {
4346 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCOEFFUPDATE_ADDR, (uint32_t)fiqcoeffupdate << 0);
4347 }
4348
4349 #endif // RW_NX_FIQ_COMP_EN
4350 /// @}
4351
4352 #if RW_NX_FIQ_COMP_EN
4353 /**
4354 * @name RWNXFEFIQCOEFFREQ register definitions
4355 * <table>
4356 * <caption id="RWNXFEFIQCOEFFREQ_BF">RWNXFEFIQCOEFFREQ bitfields</caption>
4357 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
4358 * <tr><td>00 <td> FIQCOEFFREQ <td>R/W <td>R/W <td>0
4359 * </table>
4360 *
4361 * @{
4362 */
4363
4364 /// Address of the RWNXFEFIQCOEFFREQ register
4365 #define RIU_RWNXFEFIQCOEFFREQ_ADDR 0x4033B18C
4366 /// Offset of the RWNXFEFIQCOEFFREQ register from the base address
4367 #define RIU_RWNXFEFIQCOEFFREQ_OFFSET 0x0000018C
4368 /// Index of the RWNXFEFIQCOEFFREQ register
4369 #define RIU_RWNXFEFIQCOEFFREQ_INDEX 0x00000063
4370 /// Reset value of the RWNXFEFIQCOEFFREQ register
4371 #define RIU_RWNXFEFIQCOEFFREQ_RESET 0x00000000
4372
4373 /**
4374 * @brief Returns the current value of the RWNXFEFIQCOEFFREQ register.
4375 * The RWNXFEFIQCOEFFREQ register will be read and its value returned.
4376 * @return The current value of the RWNXFEFIQCOEFFREQ register.
4377 */
riu_rwnxfefiqcoeffreq_get(void)4378 __INLINE uint32_t riu_rwnxfefiqcoeffreq_get(void)
4379 {
4380 return PLATFORM_REG_READ(RIU_RWNXFEFIQCOEFFREQ_ADDR);
4381 }
4382
4383 /**
4384 * @brief Sets the RWNXFEFIQCOEFFREQ register to a value.
4385 * The RWNXFEFIQCOEFFREQ register will be written.
4386 * @param value - The value to write.
4387 */
riu_rwnxfefiqcoeffreq_set(uint32_t value)4388 __INLINE void riu_rwnxfefiqcoeffreq_set(uint32_t value)
4389 {
4390 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCOEFFREQ_ADDR, value);
4391 }
4392
4393 // field definitions
4394 /// FIQCOEFFREQ field bit
4395 #define RIU_FIQCOEFFREQ_BIT ((uint32_t)0x00000001)
4396 /// FIQCOEFFREQ field position
4397 #define RIU_FIQCOEFFREQ_POS 0
4398
4399 /// FIQCOEFFREQ field reset value
4400 #define RIU_FIQCOEFFREQ_RST 0x0
4401
4402 /**
4403 * @brief Returns the current value of the FIQCOEFFREQ field in the RWNXFEFIQCOEFFREQ register.
4404 *
4405 * The RWNXFEFIQCOEFFREQ register will be read and the FIQCOEFFREQ field's value will be returned.
4406 *
4407 * @return The current value of the FIQCOEFFREQ field in the RWNXFEFIQCOEFFREQ register.
4408 */
riu_fiqcoeffreq_getf(void)4409 __INLINE uint8_t riu_fiqcoeffreq_getf(void)
4410 {
4411 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQCOEFFREQ_ADDR);
4412 return (localVal >> 0);
4413 }
4414
4415 /**
4416 * @brief Sets the FIQCOEFFREQ field of the RWNXFEFIQCOEFFREQ register.
4417 *
4418 * The RWNXFEFIQCOEFFREQ register will be read, modified to contain the new field value, and written.
4419 *
4420 * @param[in] fiqcoeffreq - The value to set the field to.
4421 */
riu_fiqcoeffreq_setf(uint8_t fiqcoeffreq)4422 __INLINE void riu_fiqcoeffreq_setf(uint8_t fiqcoeffreq)
4423 {
4424 PLATFORM_REG_WRITE(RIU_RWNXFEFIQCOEFFREQ_ADDR, (uint32_t)fiqcoeffreq << 0);
4425 }
4426
4427 #endif // RW_NX_FIQ_COMP_EN
4428 /// @}
4429
4430 #if RW_NX_FIQ_COMP_EN
4431 /**
4432 * @name RWNXFEFIQSTART register definitions
4433 * <table>
4434 * <caption id="RWNXFEFIQSTART_BF">RWNXFEFIQSTART bitfields</caption>
4435 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
4436 * <tr><td>16 <td> FIQESTSTART <td>R <td>S <td>0
4437 * <tr><td>00 <td> FIQCOLLSTART <td>R <td>S <td>0
4438 * </table>
4439 *
4440 * @{
4441 */
4442
4443 /// Address of the RWNXFEFIQSTART register
4444 #define RIU_RWNXFEFIQSTART_ADDR 0x4033B190
4445 /// Offset of the RWNXFEFIQSTART register from the base address
4446 #define RIU_RWNXFEFIQSTART_OFFSET 0x00000190
4447 /// Index of the RWNXFEFIQSTART register
4448 #define RIU_RWNXFEFIQSTART_INDEX 0x00000064
4449 /// Reset value of the RWNXFEFIQSTART register
4450 #define RIU_RWNXFEFIQSTART_RESET 0x00000000
4451
4452 /**
4453 * @brief Returns the current value of the RWNXFEFIQSTART register.
4454 * The RWNXFEFIQSTART register will be read and its value returned.
4455 * @return The current value of the RWNXFEFIQSTART register.
4456 */
riu_rwnxfefiqstart_get(void)4457 __INLINE uint32_t riu_rwnxfefiqstart_get(void)
4458 {
4459 return PLATFORM_REG_READ(RIU_RWNXFEFIQSTART_ADDR);
4460 }
4461
4462 /**
4463 * @brief Sets the RWNXFEFIQSTART register to a value.
4464 * The RWNXFEFIQSTART register will be written.
4465 * @param value - The value to write.
4466 */
riu_rwnxfefiqstart_set(uint32_t value)4467 __INLINE void riu_rwnxfefiqstart_set(uint32_t value)
4468 {
4469 PLATFORM_REG_WRITE(RIU_RWNXFEFIQSTART_ADDR, value);
4470 }
4471
4472 // field definitions
4473 /// FIQESTSTART field bit
4474 #define RIU_FIQESTSTART_BIT ((uint32_t)0x00010000)
4475 /// FIQESTSTART field position
4476 #define RIU_FIQESTSTART_POS 16
4477 /// FIQCOLLSTART field bit
4478 #define RIU_FIQCOLLSTART_BIT ((uint32_t)0x00000001)
4479 /// FIQCOLLSTART field position
4480 #define RIU_FIQCOLLSTART_POS 0
4481
4482 /// FIQESTSTART field reset value
4483 #define RIU_FIQESTSTART_RST 0x0
4484 /// FIQCOLLSTART field reset value
4485 #define RIU_FIQCOLLSTART_RST 0x0
4486
4487 /**
4488 * @brief Constructs a value for the RWNXFEFIQSTART register given values for its fields
4489 * and writes the value to the register.
4490 *
4491 * @param[in] fiqeststart - The value to use for the FIQESTSTART field.
4492 * @param[in] fiqcollstart - The value to use for the FIQCOLLSTART field.
4493 */
riu_rwnxfefiqstart_pack(uint8_t fiqeststart,uint8_t fiqcollstart)4494 __INLINE void riu_rwnxfefiqstart_pack(uint8_t fiqeststart, uint8_t fiqcollstart)
4495 {
4496 PLATFORM_REG_WRITE(RIU_RWNXFEFIQSTART_ADDR, ((uint32_t)fiqeststart << 16) | ((uint32_t)fiqcollstart << 0));
4497 }
4498
4499 /**
4500 * @brief Unpacks RWNXFEFIQSTART's fields from current value of the RWNXFEFIQSTART register.
4501 *
4502 * Reads the RWNXFEFIQSTART register and populates all the _field variables with the corresponding
4503 * values from the register.
4504 *
4505 * @param[out] fiqeststart - Will be populated with the current value of this field from the register.
4506 * @param[out] fiqcollstart - Will be populated with the current value of this field from the register.
4507 */
riu_rwnxfefiqstart_unpack(uint8_t * fiqeststart,uint8_t * fiqcollstart)4508 __INLINE void riu_rwnxfefiqstart_unpack(uint8_t* fiqeststart, uint8_t* fiqcollstart)
4509 {
4510 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQSTART_ADDR);
4511
4512 *fiqeststart = (localVal & ((uint32_t)0x00010000)) >> 16;
4513 *fiqcollstart = (localVal & ((uint32_t)0x00000001)) >> 0;
4514 }
4515
4516 /**
4517 * @brief Returns the current value of the FIQESTSTART field in the RWNXFEFIQSTART register.
4518 *
4519 * The RWNXFEFIQSTART register will be read and the FIQESTSTART field's value will be returned.
4520 *
4521 * @return The current value of the FIQESTSTART field in the RWNXFEFIQSTART register.
4522 */
riu_fiqeststart_getf(void)4523 __INLINE uint8_t riu_fiqeststart_getf(void)
4524 {
4525 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQSTART_ADDR);
4526 return ((localVal & ((uint32_t)0x00010000)) >> 16);
4527 }
4528
4529 /**
4530 * @brief Sets the FIQESTSTART field of the RWNXFEFIQSTART register.
4531 *
4532 * The RWNXFEFIQSTART register will be read, modified to contain the new field value, and written.
4533 *
4534 * @param[in] fiqeststart - The value to set the field to.
4535 */
riu_fiqeststart_setf(uint8_t fiqeststart)4536 __INLINE void riu_fiqeststart_setf(uint8_t fiqeststart)
4537 {
4538 PLATFORM_REG_WRITE(RIU_RWNXFEFIQSTART_ADDR, (uint32_t)fiqeststart << 16);
4539 }
4540
4541 /**
4542 * @brief Returns the current value of the FIQCOLLSTART field in the RWNXFEFIQSTART register.
4543 *
4544 * The RWNXFEFIQSTART register will be read and the FIQCOLLSTART field's value will be returned.
4545 *
4546 * @return The current value of the FIQCOLLSTART field in the RWNXFEFIQSTART register.
4547 */
riu_fiqcollstart_getf(void)4548 __INLINE uint8_t riu_fiqcollstart_getf(void)
4549 {
4550 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQSTART_ADDR);
4551 return ((localVal & ((uint32_t)0x00000001)) >> 0);
4552 }
4553
4554 /**
4555 * @brief Sets the FIQCOLLSTART field of the RWNXFEFIQSTART register.
4556 *
4557 * The RWNXFEFIQSTART register will be read, modified to contain the new field value, and written.
4558 *
4559 * @param[in] fiqcollstart - The value to set the field to.
4560 */
riu_fiqcollstart_setf(uint8_t fiqcollstart)4561 __INLINE void riu_fiqcollstart_setf(uint8_t fiqcollstart)
4562 {
4563 PLATFORM_REG_WRITE(RIU_RWNXFEFIQSTART_ADDR, (uint32_t)fiqcollstart << 0);
4564 }
4565
4566 #endif // RW_NX_FIQ_COMP_EN
4567 /// @}
4568
4569 /**
4570 * @name AGCGAINSTAT register definitions
4571 * <table>
4572 * <caption id="AGCGAINSTAT_BF">AGCGAINSTAT bitfields</caption>
4573 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
4574 * <tr><td>15:08 <td> AGCGAIN1 <td>W <td>R <td>0x0
4575 * <tr><td>07:00 <td> AGCGAIN0 <td>W <td>R <td>0x0
4576 * </table>
4577 *
4578 * @{
4579 */
4580
4581 /// Address of the AGCGAINSTAT register
4582 #define RIU_AGCGAINSTAT_ADDR 0x4033B200
4583 /// Offset of the AGCGAINSTAT register from the base address
4584 #define RIU_AGCGAINSTAT_OFFSET 0x00000200
4585 /// Index of the AGCGAINSTAT register
4586 #define RIU_AGCGAINSTAT_INDEX 0x00000080
4587 /// Reset value of the AGCGAINSTAT register
4588 #define RIU_AGCGAINSTAT_RESET 0x00000000
4589
4590 /**
4591 * @brief Returns the current value of the AGCGAINSTAT register.
4592 * The AGCGAINSTAT register will be read and its value returned.
4593 * @return The current value of the AGCGAINSTAT register.
4594 */
riu_agcgainstat_get(void)4595 __INLINE uint32_t riu_agcgainstat_get(void)
4596 {
4597 return PLATFORM_REG_READ(RIU_AGCGAINSTAT_ADDR);
4598 }
4599
4600 // field definitions
4601 /// AGCGAIN1 field mask
4602 #define RIU_AGCGAIN1_MASK ((uint32_t)0x0000FF00)
4603 /// AGCGAIN1 field LSB position
4604 #define RIU_AGCGAIN1_LSB 8
4605 /// AGCGAIN1 field width
4606 #define RIU_AGCGAIN1_WIDTH ((uint32_t)0x00000008)
4607 /// AGCGAIN0 field mask
4608 #define RIU_AGCGAIN0_MASK ((uint32_t)0x000000FF)
4609 /// AGCGAIN0 field LSB position
4610 #define RIU_AGCGAIN0_LSB 0
4611 /// AGCGAIN0 field width
4612 #define RIU_AGCGAIN0_WIDTH ((uint32_t)0x00000008)
4613
4614 /// AGCGAIN1 field reset value
4615 #define RIU_AGCGAIN1_RST 0x0
4616 /// AGCGAIN0 field reset value
4617 #define RIU_AGCGAIN0_RST 0x0
4618
4619 /**
4620 * @brief Unpacks AGCGAINSTAT's fields from current value of the AGCGAINSTAT register.
4621 *
4622 * Reads the AGCGAINSTAT register and populates all the _field variables with the corresponding
4623 * values from the register.
4624 *
4625 * @param[out] agcgain1 - Will be populated with the current value of this field from the register.
4626 * @param[out] agcgain0 - Will be populated with the current value of this field from the register.
4627 */
riu_agcgainstat_unpack(uint8_t * agcgain1,uint8_t * agcgain0)4628 __INLINE void riu_agcgainstat_unpack(uint8_t* agcgain1, uint8_t* agcgain0)
4629 {
4630 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCGAINSTAT_ADDR);
4631
4632 *agcgain1 = (localVal & ((uint32_t)0x0000FF00)) >> 8;
4633 *agcgain0 = (localVal & ((uint32_t)0x000000FF)) >> 0;
4634 }
4635
4636 /**
4637 * @brief Returns the current value of the AGCGAIN1 field in the AGCGAINSTAT register.
4638 *
4639 * The AGCGAINSTAT register will be read and the AGCGAIN1 field's value will be returned.
4640 *
4641 * @return The current value of the AGCGAIN1 field in the AGCGAINSTAT register.
4642 */
riu_agcgain1_getf(void)4643 __INLINE uint8_t riu_agcgain1_getf(void)
4644 {
4645 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCGAINSTAT_ADDR);
4646 return ((localVal & ((uint32_t)0x0000FF00)) >> 8);
4647 }
4648
4649 /**
4650 * @brief Returns the current value of the AGCGAIN0 field in the AGCGAINSTAT register.
4651 *
4652 * The AGCGAINSTAT register will be read and the AGCGAIN0 field's value will be returned.
4653 *
4654 * @return The current value of the AGCGAIN0 field in the AGCGAINSTAT register.
4655 */
riu_agcgain0_getf(void)4656 __INLINE uint8_t riu_agcgain0_getf(void)
4657 {
4658 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCGAINSTAT_ADDR);
4659 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
4660 }
4661
4662 /// @}
4663
4664 /**
4665 * @name AGCADCPOWSTAT register definitions
4666 * <table>
4667 * <caption id="AGCADCPOWSTAT_BF">AGCADCPOWSTAT bitfields</caption>
4668 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
4669 * <tr><td>14:08 <td> ADCPOWDBV1 <td>W <td>R <td>0x0
4670 * <tr><td>06:00 <td> ADCPOWDBV0 <td>W <td>R <td>0x0
4671 * </table>
4672 *
4673 * @{
4674 */
4675
4676 /// Address of the AGCADCPOWSTAT register
4677 #define RIU_AGCADCPOWSTAT_ADDR 0x4033B208
4678 /// Offset of the AGCADCPOWSTAT register from the base address
4679 #define RIU_AGCADCPOWSTAT_OFFSET 0x00000208
4680 /// Index of the AGCADCPOWSTAT register
4681 #define RIU_AGCADCPOWSTAT_INDEX 0x00000082
4682 /// Reset value of the AGCADCPOWSTAT register
4683 #define RIU_AGCADCPOWSTAT_RESET 0x00000000
4684
4685 /**
4686 * @brief Returns the current value of the AGCADCPOWSTAT register.
4687 * The AGCADCPOWSTAT register will be read and its value returned.
4688 * @return The current value of the AGCADCPOWSTAT register.
4689 */
riu_agcadcpowstat_get(void)4690 __INLINE uint32_t riu_agcadcpowstat_get(void)
4691 {
4692 return PLATFORM_REG_READ(RIU_AGCADCPOWSTAT_ADDR);
4693 }
4694
4695 // field definitions
4696 /// ADCPOWDBV1 field mask
4697 #define RIU_ADCPOWDBV1_MASK ((uint32_t)0x00007F00)
4698 /// ADCPOWDBV1 field LSB position
4699 #define RIU_ADCPOWDBV1_LSB 8
4700 /// ADCPOWDBV1 field width
4701 #define RIU_ADCPOWDBV1_WIDTH ((uint32_t)0x00000007)
4702 /// ADCPOWDBV0 field mask
4703 #define RIU_ADCPOWDBV0_MASK ((uint32_t)0x0000007F)
4704 /// ADCPOWDBV0 field LSB position
4705 #define RIU_ADCPOWDBV0_LSB 0
4706 /// ADCPOWDBV0 field width
4707 #define RIU_ADCPOWDBV0_WIDTH ((uint32_t)0x00000007)
4708
4709 /// ADCPOWDBV1 field reset value
4710 #define RIU_ADCPOWDBV1_RST 0x0
4711 /// ADCPOWDBV0 field reset value
4712 #define RIU_ADCPOWDBV0_RST 0x0
4713
4714 /**
4715 * @brief Unpacks AGCADCPOWSTAT's fields from current value of the AGCADCPOWSTAT register.
4716 *
4717 * Reads the AGCADCPOWSTAT register and populates all the _field variables with the corresponding
4718 * values from the register.
4719 *
4720 * @param[out] adcpowdbv1 - Will be populated with the current value of this field from the register.
4721 * @param[out] adcpowdbv0 - Will be populated with the current value of this field from the register.
4722 */
riu_agcadcpowstat_unpack(uint8_t * adcpowdbv1,uint8_t * adcpowdbv0)4723 __INLINE void riu_agcadcpowstat_unpack(uint8_t* adcpowdbv1, uint8_t* adcpowdbv0)
4724 {
4725 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCADCPOWSTAT_ADDR);
4726
4727 *adcpowdbv1 = (localVal & ((uint32_t)0x00007F00)) >> 8;
4728 *adcpowdbv0 = (localVal & ((uint32_t)0x0000007F)) >> 0;
4729 }
4730
4731 /**
4732 * @brief Returns the current value of the ADCPOWDBV1 field in the AGCADCPOWSTAT register.
4733 *
4734 * The AGCADCPOWSTAT register will be read and the ADCPOWDBV1 field's value will be returned.
4735 *
4736 * @return The current value of the ADCPOWDBV1 field in the AGCADCPOWSTAT register.
4737 */
riu_adcpowdbv1_getf(void)4738 __INLINE uint8_t riu_adcpowdbv1_getf(void)
4739 {
4740 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCADCPOWSTAT_ADDR);
4741 return ((localVal & ((uint32_t)0x00007F00)) >> 8);
4742 }
4743
4744 /**
4745 * @brief Returns the current value of the ADCPOWDBV0 field in the AGCADCPOWSTAT register.
4746 *
4747 * The AGCADCPOWSTAT register will be read and the ADCPOWDBV0 field's value will be returned.
4748 *
4749 * @return The current value of the ADCPOWDBV0 field in the AGCADCPOWSTAT register.
4750 */
riu_adcpowdbv0_getf(void)4751 __INLINE uint8_t riu_adcpowdbv0_getf(void)
4752 {
4753 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCADCPOWSTAT_ADDR);
4754 return ((localVal & ((uint32_t)0x0000007F)) >> 0);
4755 }
4756
4757 /// @}
4758
4759 /**
4760 * @name AGCINBDPOW20PSTAT register definitions
4761 * <table>
4762 * <caption id="AGCINBDPOW20PSTAT_BF">AGCINBDPOW20PSTAT bitfields</caption>
4763 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
4764 * <tr><td>15:08 <td> INBDPOW20PDBM1 <td>W <td>R <td>0x0
4765 * <tr><td>07:00 <td> INBDPOW20PDBM0 <td>W <td>R <td>0x0
4766 * </table>
4767 *
4768 * @{
4769 */
4770
4771 /// Address of the AGCINBDPOW20PSTAT register
4772 #define RIU_AGCINBDPOW20PSTAT_ADDR 0x4033B20C
4773 /// Offset of the AGCINBDPOW20PSTAT register from the base address
4774 #define RIU_AGCINBDPOW20PSTAT_OFFSET 0x0000020C
4775 /// Index of the AGCINBDPOW20PSTAT register
4776 #define RIU_AGCINBDPOW20PSTAT_INDEX 0x00000083
4777 /// Reset value of the AGCINBDPOW20PSTAT register
4778 #define RIU_AGCINBDPOW20PSTAT_RESET 0x00000000
4779
4780 /**
4781 * @brief Returns the current value of the AGCINBDPOW20PSTAT register.
4782 * The AGCINBDPOW20PSTAT register will be read and its value returned.
4783 * @return The current value of the AGCINBDPOW20PSTAT register.
4784 */
riu_agcinbdpow20pstat_get(void)4785 __INLINE uint32_t riu_agcinbdpow20pstat_get(void)
4786 {
4787 return PLATFORM_REG_READ(RIU_AGCINBDPOW20PSTAT_ADDR);
4788 }
4789
4790 // field definitions
4791 /// INBDPOW20PDBM1 field mask
4792 #define RIU_INBDPOW20PDBM1_MASK ((uint32_t)0x0000FF00)
4793 /// INBDPOW20PDBM1 field LSB position
4794 #define RIU_INBDPOW20PDBM1_LSB 8
4795 /// INBDPOW20PDBM1 field width
4796 #define RIU_INBDPOW20PDBM1_WIDTH ((uint32_t)0x00000008)
4797 /// INBDPOW20PDBM0 field mask
4798 #define RIU_INBDPOW20PDBM0_MASK ((uint32_t)0x000000FF)
4799 /// INBDPOW20PDBM0 field LSB position
4800 #define RIU_INBDPOW20PDBM0_LSB 0
4801 /// INBDPOW20PDBM0 field width
4802 #define RIU_INBDPOW20PDBM0_WIDTH ((uint32_t)0x00000008)
4803
4804 /// INBDPOW20PDBM1 field reset value
4805 #define RIU_INBDPOW20PDBM1_RST 0x0
4806 /// INBDPOW20PDBM0 field reset value
4807 #define RIU_INBDPOW20PDBM0_RST 0x0
4808
4809 /**
4810 * @brief Unpacks AGCINBDPOW20PSTAT's fields from current value of the AGCINBDPOW20PSTAT register.
4811 *
4812 * Reads the AGCINBDPOW20PSTAT register and populates all the _field variables with the corresponding
4813 * values from the register.
4814 *
4815 * @param[out] inbdpow20pdbm1 - Will be populated with the current value of this field from the register.
4816 * @param[out] inbdpow20pdbm0 - Will be populated with the current value of this field from the register.
4817 */
riu_agcinbdpow20pstat_unpack(uint8_t * inbdpow20pdbm1,uint8_t * inbdpow20pdbm0)4818 __INLINE void riu_agcinbdpow20pstat_unpack(uint8_t* inbdpow20pdbm1, uint8_t* inbdpow20pdbm0)
4819 {
4820 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCINBDPOW20PSTAT_ADDR);
4821
4822 *inbdpow20pdbm1 = (localVal & ((uint32_t)0x0000FF00)) >> 8;
4823 *inbdpow20pdbm0 = (localVal & ((uint32_t)0x000000FF)) >> 0;
4824 }
4825
4826 /**
4827 * @brief Returns the current value of the INBDPOW20PDBM1 field in the AGCINBDPOW20PSTAT register.
4828 *
4829 * The AGCINBDPOW20PSTAT register will be read and the INBDPOW20PDBM1 field's value will be returned.
4830 *
4831 * @return The current value of the INBDPOW20PDBM1 field in the AGCINBDPOW20PSTAT register.
4832 */
riu_inbdpow20pdbm1_getf(void)4833 __INLINE uint8_t riu_inbdpow20pdbm1_getf(void)
4834 {
4835 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCINBDPOW20PSTAT_ADDR);
4836 return ((localVal & ((uint32_t)0x0000FF00)) >> 8);
4837 }
4838
4839 /**
4840 * @brief Returns the current value of the INBDPOW20PDBM0 field in the AGCINBDPOW20PSTAT register.
4841 *
4842 * The AGCINBDPOW20PSTAT register will be read and the INBDPOW20PDBM0 field's value will be returned.
4843 *
4844 * @return The current value of the INBDPOW20PDBM0 field in the AGCINBDPOW20PSTAT register.
4845 */
riu_inbdpow20pdbm0_getf(void)4846 __INLINE uint8_t riu_inbdpow20pdbm0_getf(void)
4847 {
4848 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCINBDPOW20PSTAT_ADDR);
4849 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
4850 }
4851
4852 /// @}
4853
4854 /**
4855 * @name AGCDIGGAIN0STAT register definitions
4856 * <table>
4857 * <caption id="AGCDIGGAIN0STAT_BF">AGCDIGGAIN0STAT bitfields</caption>
4858 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
4859 * <tr><td>22:16 <td> DIGGAIN80ANT0 <td>W <td>R <td>0x0
4860 * <tr><td>14:08 <td> DIGGAIN40ANT0 <td>W <td>R <td>0x0
4861 * <tr><td>06:00 <td> DIGGAIN20ANT0 <td>W <td>R <td>0x0
4862 * </table>
4863 *
4864 * @{
4865 */
4866
4867 /// Address of the AGCDIGGAIN0STAT register
4868 #define RIU_AGCDIGGAIN0STAT_ADDR 0x4033B210
4869 /// Offset of the AGCDIGGAIN0STAT register from the base address
4870 #define RIU_AGCDIGGAIN0STAT_OFFSET 0x00000210
4871 /// Index of the AGCDIGGAIN0STAT register
4872 #define RIU_AGCDIGGAIN0STAT_INDEX 0x00000084
4873 /// Reset value of the AGCDIGGAIN0STAT register
4874 #define RIU_AGCDIGGAIN0STAT_RESET 0x00000000
4875
4876 /**
4877 * @brief Returns the current value of the AGCDIGGAIN0STAT register.
4878 * The AGCDIGGAIN0STAT register will be read and its value returned.
4879 * @return The current value of the AGCDIGGAIN0STAT register.
4880 */
riu_agcdiggain0stat_get(void)4881 __INLINE uint32_t riu_agcdiggain0stat_get(void)
4882 {
4883 return PLATFORM_REG_READ(RIU_AGCDIGGAIN0STAT_ADDR);
4884 }
4885
4886 // field definitions
4887 /// DIGGAIN80ANT0 field mask
4888 #define RIU_DIGGAIN80ANT0_MASK ((uint32_t)0x007F0000)
4889 /// DIGGAIN80ANT0 field LSB position
4890 #define RIU_DIGGAIN80ANT0_LSB 16
4891 /// DIGGAIN80ANT0 field width
4892 #define RIU_DIGGAIN80ANT0_WIDTH ((uint32_t)0x00000007)
4893 /// DIGGAIN40ANT0 field mask
4894 #define RIU_DIGGAIN40ANT0_MASK ((uint32_t)0x00007F00)
4895 /// DIGGAIN40ANT0 field LSB position
4896 #define RIU_DIGGAIN40ANT0_LSB 8
4897 /// DIGGAIN40ANT0 field width
4898 #define RIU_DIGGAIN40ANT0_WIDTH ((uint32_t)0x00000007)
4899 /// DIGGAIN20ANT0 field mask
4900 #define RIU_DIGGAIN20ANT0_MASK ((uint32_t)0x0000007F)
4901 /// DIGGAIN20ANT0 field LSB position
4902 #define RIU_DIGGAIN20ANT0_LSB 0
4903 /// DIGGAIN20ANT0 field width
4904 #define RIU_DIGGAIN20ANT0_WIDTH ((uint32_t)0x00000007)
4905
4906 /// DIGGAIN80ANT0 field reset value
4907 #define RIU_DIGGAIN80ANT0_RST 0x0
4908 /// DIGGAIN40ANT0 field reset value
4909 #define RIU_DIGGAIN40ANT0_RST 0x0
4910 /// DIGGAIN20ANT0 field reset value
4911 #define RIU_DIGGAIN20ANT0_RST 0x0
4912
4913 /**
4914 * @brief Unpacks AGCDIGGAIN0STAT's fields from current value of the AGCDIGGAIN0STAT register.
4915 *
4916 * Reads the AGCDIGGAIN0STAT register and populates all the _field variables with the corresponding
4917 * values from the register.
4918 *
4919 * @param[out] diggain80ant0 - Will be populated with the current value of this field from the register.
4920 * @param[out] diggain40ant0 - Will be populated with the current value of this field from the register.
4921 * @param[out] diggain20ant0 - Will be populated with the current value of this field from the register.
4922 */
riu_agcdiggain0stat_unpack(uint8_t * diggain80ant0,uint8_t * diggain40ant0,uint8_t * diggain20ant0)4923 __INLINE void riu_agcdiggain0stat_unpack(uint8_t* diggain80ant0, uint8_t* diggain40ant0, uint8_t* diggain20ant0)
4924 {
4925 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCDIGGAIN0STAT_ADDR);
4926
4927 *diggain80ant0 = (localVal & ((uint32_t)0x007F0000)) >> 16;
4928 *diggain40ant0 = (localVal & ((uint32_t)0x00007F00)) >> 8;
4929 *diggain20ant0 = (localVal & ((uint32_t)0x0000007F)) >> 0;
4930 }
4931
4932 /**
4933 * @brief Returns the current value of the DIGGAIN80ANT0 field in the AGCDIGGAIN0STAT register.
4934 *
4935 * The AGCDIGGAIN0STAT register will be read and the DIGGAIN80ANT0 field's value will be returned.
4936 *
4937 * @return The current value of the DIGGAIN80ANT0 field in the AGCDIGGAIN0STAT register.
4938 */
riu_diggain80ant0_getf(void)4939 __INLINE uint8_t riu_diggain80ant0_getf(void)
4940 {
4941 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCDIGGAIN0STAT_ADDR);
4942 return ((localVal & ((uint32_t)0x007F0000)) >> 16);
4943 }
4944
4945 /**
4946 * @brief Returns the current value of the DIGGAIN40ANT0 field in the AGCDIGGAIN0STAT register.
4947 *
4948 * The AGCDIGGAIN0STAT register will be read and the DIGGAIN40ANT0 field's value will be returned.
4949 *
4950 * @return The current value of the DIGGAIN40ANT0 field in the AGCDIGGAIN0STAT register.
4951 */
riu_diggain40ant0_getf(void)4952 __INLINE uint8_t riu_diggain40ant0_getf(void)
4953 {
4954 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCDIGGAIN0STAT_ADDR);
4955 return ((localVal & ((uint32_t)0x00007F00)) >> 8);
4956 }
4957
4958 /**
4959 * @brief Returns the current value of the DIGGAIN20ANT0 field in the AGCDIGGAIN0STAT register.
4960 *
4961 * The AGCDIGGAIN0STAT register will be read and the DIGGAIN20ANT0 field's value will be returned.
4962 *
4963 * @return The current value of the DIGGAIN20ANT0 field in the AGCDIGGAIN0STAT register.
4964 */
riu_diggain20ant0_getf(void)4965 __INLINE uint8_t riu_diggain20ant0_getf(void)
4966 {
4967 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCDIGGAIN0STAT_ADDR);
4968 return ((localVal & ((uint32_t)0x0000007F)) >> 0);
4969 }
4970
4971 /// @}
4972
4973 /**
4974 * @name AGCDIGGAIN1STAT register definitions
4975 * <table>
4976 * <caption id="AGCDIGGAIN1STAT_BF">AGCDIGGAIN1STAT bitfields</caption>
4977 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
4978 * <tr><td>22:16 <td> DIGGAIN80ANT1 <td>W <td>R <td>0x0
4979 * <tr><td>14:08 <td> DIGGAIN40ANT1 <td>W <td>R <td>0x0
4980 * <tr><td>06:00 <td> DIGGAIN20ANT1 <td>W <td>R <td>0x0
4981 * </table>
4982 *
4983 * @{
4984 */
4985
4986 /// Address of the AGCDIGGAIN1STAT register
4987 #define RIU_AGCDIGGAIN1STAT_ADDR 0x4033B214
4988 /// Offset of the AGCDIGGAIN1STAT register from the base address
4989 #define RIU_AGCDIGGAIN1STAT_OFFSET 0x00000214
4990 /// Index of the AGCDIGGAIN1STAT register
4991 #define RIU_AGCDIGGAIN1STAT_INDEX 0x00000085
4992 /// Reset value of the AGCDIGGAIN1STAT register
4993 #define RIU_AGCDIGGAIN1STAT_RESET 0x00000000
4994
4995 /**
4996 * @brief Returns the current value of the AGCDIGGAIN1STAT register.
4997 * The AGCDIGGAIN1STAT register will be read and its value returned.
4998 * @return The current value of the AGCDIGGAIN1STAT register.
4999 */
riu_agcdiggain1stat_get(void)5000 __INLINE uint32_t riu_agcdiggain1stat_get(void)
5001 {
5002 return PLATFORM_REG_READ(RIU_AGCDIGGAIN1STAT_ADDR);
5003 }
5004
5005 // field definitions
5006 /// DIGGAIN80ANT1 field mask
5007 #define RIU_DIGGAIN80ANT1_MASK ((uint32_t)0x007F0000)
5008 /// DIGGAIN80ANT1 field LSB position
5009 #define RIU_DIGGAIN80ANT1_LSB 16
5010 /// DIGGAIN80ANT1 field width
5011 #define RIU_DIGGAIN80ANT1_WIDTH ((uint32_t)0x00000007)
5012 /// DIGGAIN40ANT1 field mask
5013 #define RIU_DIGGAIN40ANT1_MASK ((uint32_t)0x00007F00)
5014 /// DIGGAIN40ANT1 field LSB position
5015 #define RIU_DIGGAIN40ANT1_LSB 8
5016 /// DIGGAIN40ANT1 field width
5017 #define RIU_DIGGAIN40ANT1_WIDTH ((uint32_t)0x00000007)
5018 /// DIGGAIN20ANT1 field mask
5019 #define RIU_DIGGAIN20ANT1_MASK ((uint32_t)0x0000007F)
5020 /// DIGGAIN20ANT1 field LSB position
5021 #define RIU_DIGGAIN20ANT1_LSB 0
5022 /// DIGGAIN20ANT1 field width
5023 #define RIU_DIGGAIN20ANT1_WIDTH ((uint32_t)0x00000007)
5024
5025 /// DIGGAIN80ANT1 field reset value
5026 #define RIU_DIGGAIN80ANT1_RST 0x0
5027 /// DIGGAIN40ANT1 field reset value
5028 #define RIU_DIGGAIN40ANT1_RST 0x0
5029 /// DIGGAIN20ANT1 field reset value
5030 #define RIU_DIGGAIN20ANT1_RST 0x0
5031
5032 /**
5033 * @brief Unpacks AGCDIGGAIN1STAT's fields from current value of the AGCDIGGAIN1STAT register.
5034 *
5035 * Reads the AGCDIGGAIN1STAT register and populates all the _field variables with the corresponding
5036 * values from the register.
5037 *
5038 * @param[out] diggain80ant1 - Will be populated with the current value of this field from the register.
5039 * @param[out] diggain40ant1 - Will be populated with the current value of this field from the register.
5040 * @param[out] diggain20ant1 - Will be populated with the current value of this field from the register.
5041 */
riu_agcdiggain1stat_unpack(uint8_t * diggain80ant1,uint8_t * diggain40ant1,uint8_t * diggain20ant1)5042 __INLINE void riu_agcdiggain1stat_unpack(uint8_t* diggain80ant1, uint8_t* diggain40ant1, uint8_t* diggain20ant1)
5043 {
5044 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCDIGGAIN1STAT_ADDR);
5045
5046 *diggain80ant1 = (localVal & ((uint32_t)0x007F0000)) >> 16;
5047 *diggain40ant1 = (localVal & ((uint32_t)0x00007F00)) >> 8;
5048 *diggain20ant1 = (localVal & ((uint32_t)0x0000007F)) >> 0;
5049 }
5050
5051 /**
5052 * @brief Returns the current value of the DIGGAIN80ANT1 field in the AGCDIGGAIN1STAT register.
5053 *
5054 * The AGCDIGGAIN1STAT register will be read and the DIGGAIN80ANT1 field's value will be returned.
5055 *
5056 * @return The current value of the DIGGAIN80ANT1 field in the AGCDIGGAIN1STAT register.
5057 */
riu_diggain80ant1_getf(void)5058 __INLINE uint8_t riu_diggain80ant1_getf(void)
5059 {
5060 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCDIGGAIN1STAT_ADDR);
5061 return ((localVal & ((uint32_t)0x007F0000)) >> 16);
5062 }
5063
5064 /**
5065 * @brief Returns the current value of the DIGGAIN40ANT1 field in the AGCDIGGAIN1STAT register.
5066 *
5067 * The AGCDIGGAIN1STAT register will be read and the DIGGAIN40ANT1 field's value will be returned.
5068 *
5069 * @return The current value of the DIGGAIN40ANT1 field in the AGCDIGGAIN1STAT register.
5070 */
riu_diggain40ant1_getf(void)5071 __INLINE uint8_t riu_diggain40ant1_getf(void)
5072 {
5073 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCDIGGAIN1STAT_ADDR);
5074 return ((localVal & ((uint32_t)0x00007F00)) >> 8);
5075 }
5076
5077 /**
5078 * @brief Returns the current value of the DIGGAIN20ANT1 field in the AGCDIGGAIN1STAT register.
5079 *
5080 * The AGCDIGGAIN1STAT register will be read and the DIGGAIN20ANT1 field's value will be returned.
5081 *
5082 * @return The current value of the DIGGAIN20ANT1 field in the AGCDIGGAIN1STAT register.
5083 */
riu_diggain20ant1_getf(void)5084 __INLINE uint8_t riu_diggain20ant1_getf(void)
5085 {
5086 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCDIGGAIN1STAT_ADDR);
5087 return ((localVal & ((uint32_t)0x0000007F)) >> 0);
5088 }
5089
5090 /// @}
5091
5092 #if RW_RADAR_EN
5093 /**
5094 * @name RADARFIFOSTAT register definitions
5095 * <table>
5096 * <caption id="RADARFIFOSTAT_BF">RADARFIFOSTAT bitfields</caption>
5097 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5098 * <tr><td>00 <td> RADFIFOEMPTY <td>W <td>R <td>1
5099 * </table>
5100 *
5101 * @{
5102 */
5103
5104 /// Address of the RADARFIFOSTAT register
5105 #define RIU_RADARFIFOSTAT_ADDR 0x4033B220
5106 /// Offset of the RADARFIFOSTAT register from the base address
5107 #define RIU_RADARFIFOSTAT_OFFSET 0x00000220
5108 /// Index of the RADARFIFOSTAT register
5109 #define RIU_RADARFIFOSTAT_INDEX 0x00000088
5110 /// Reset value of the RADARFIFOSTAT register
5111 #define RIU_RADARFIFOSTAT_RESET 0x00000001
5112
5113 /**
5114 * @brief Returns the current value of the RADARFIFOSTAT register.
5115 * The RADARFIFOSTAT register will be read and its value returned.
5116 * @return The current value of the RADARFIFOSTAT register.
5117 */
riu_radarfifostat_get(void)5118 __INLINE uint32_t riu_radarfifostat_get(void)
5119 {
5120 return PLATFORM_REG_READ(RIU_RADARFIFOSTAT_ADDR);
5121 }
5122
5123 // field definitions
5124 /// RADFIFOEMPTY field bit
5125 #define RIU_RADFIFOEMPTY_BIT ((uint32_t)0x00000001)
5126 /// RADFIFOEMPTY field position
5127 #define RIU_RADFIFOEMPTY_POS 0
5128
5129 /// RADFIFOEMPTY field reset value
5130 #define RIU_RADFIFOEMPTY_RST 0x1
5131
5132 /**
5133 * @brief Returns the current value of the RADFIFOEMPTY field in the RADARFIFOSTAT register.
5134 *
5135 * The RADARFIFOSTAT register will be read and the RADFIFOEMPTY field's value will be returned.
5136 *
5137 * @return The current value of the RADFIFOEMPTY field in the RADARFIFOSTAT register.
5138 */
riu_radfifoempty_getf(void)5139 __INLINE uint8_t riu_radfifoempty_getf(void)
5140 {
5141 uint32_t localVal = PLATFORM_REG_READ(RIU_RADARFIFOSTAT_ADDR);
5142 return (localVal >> 0);
5143 }
5144
5145 #endif // RW_RADAR_EN
5146 /// @}
5147
5148 /**
5149 * @name AGCINBDPOW20PNOISESTAT register definitions
5150 * <table>
5151 * <caption id="AGCINBDPOW20PNOISESTAT_BF">AGCINBDPOW20PNOISESTAT bitfields</caption>
5152 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5153 * <tr><td>15:08 <td>INBDPOW20PNOISEDBM1 <td>W <td>R <td>0x0
5154 * <tr><td>07:00 <td>INBDPOW20PNOISEDBM0 <td>W <td>R <td>0x0
5155 * </table>
5156 *
5157 * @{
5158 */
5159
5160 /// Address of the AGCINBDPOW20PNOISESTAT register
5161 #define RIU_AGCINBDPOW20PNOISESTAT_ADDR 0x4033B228
5162 /// Offset of the AGCINBDPOW20PNOISESTAT register from the base address
5163 #define RIU_AGCINBDPOW20PNOISESTAT_OFFSET 0x00000228
5164 /// Index of the AGCINBDPOW20PNOISESTAT register
5165 #define RIU_AGCINBDPOW20PNOISESTAT_INDEX 0x0000008A
5166 /// Reset value of the AGCINBDPOW20PNOISESTAT register
5167 #define RIU_AGCINBDPOW20PNOISESTAT_RESET 0x00000000
5168
5169 /**
5170 * @brief Returns the current value of the AGCINBDPOW20PNOISESTAT register.
5171 * The AGCINBDPOW20PNOISESTAT register will be read and its value returned.
5172 * @return The current value of the AGCINBDPOW20PNOISESTAT register.
5173 */
riu_agcinbdpow20pnoisestat_get(void)5174 __INLINE uint32_t riu_agcinbdpow20pnoisestat_get(void)
5175 {
5176 return PLATFORM_REG_READ(RIU_AGCINBDPOW20PNOISESTAT_ADDR);
5177 }
5178
5179 // field definitions
5180 /// INBDPOW20PNOISEDBM1 field mask
5181 #define RIU_INBDPOW20PNOISEDBM1_MASK ((uint32_t)0x0000FF00)
5182 /// INBDPOW20PNOISEDBM1 field LSB position
5183 #define RIU_INBDPOW20PNOISEDBM1_LSB 8
5184 /// INBDPOW20PNOISEDBM1 field width
5185 #define RIU_INBDPOW20PNOISEDBM1_WIDTH ((uint32_t)0x00000008)
5186 /// INBDPOW20PNOISEDBM0 field mask
5187 #define RIU_INBDPOW20PNOISEDBM0_MASK ((uint32_t)0x000000FF)
5188 /// INBDPOW20PNOISEDBM0 field LSB position
5189 #define RIU_INBDPOW20PNOISEDBM0_LSB 0
5190 /// INBDPOW20PNOISEDBM0 field width
5191 #define RIU_INBDPOW20PNOISEDBM0_WIDTH ((uint32_t)0x00000008)
5192
5193 /// INBDPOW20PNOISEDBM1 field reset value
5194 #define RIU_INBDPOW20PNOISEDBM1_RST 0x0
5195 /// INBDPOW20PNOISEDBM0 field reset value
5196 #define RIU_INBDPOW20PNOISEDBM0_RST 0x0
5197
5198 /**
5199 * @brief Unpacks AGCINBDPOW20PNOISESTAT's fields from current value of the AGCINBDPOW20PNOISESTAT register.
5200 *
5201 * Reads the AGCINBDPOW20PNOISESTAT register and populates all the _field variables with the corresponding
5202 * values from the register.
5203 *
5204 * @param[out] inbdpow20pnoisedbm1 - Will be populated with the current value of this field from the register.
5205 * @param[out] inbdpow20pnoisedbm0 - Will be populated with the current value of this field from the register.
5206 */
riu_agcinbdpow20pnoisestat_unpack(uint8_t * inbdpow20pnoisedbm1,uint8_t * inbdpow20pnoisedbm0)5207 __INLINE void riu_agcinbdpow20pnoisestat_unpack(uint8_t* inbdpow20pnoisedbm1, uint8_t* inbdpow20pnoisedbm0)
5208 {
5209 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCINBDPOW20PNOISESTAT_ADDR);
5210
5211 *inbdpow20pnoisedbm1 = (localVal & ((uint32_t)0x0000FF00)) >> 8;
5212 *inbdpow20pnoisedbm0 = (localVal & ((uint32_t)0x000000FF)) >> 0;
5213 }
5214
5215 /**
5216 * @brief Returns the current value of the INBDPOW20PNOISEDBM1 field in the AGCINBDPOW20PNOISESTAT register.
5217 *
5218 * The AGCINBDPOW20PNOISESTAT register will be read and the INBDPOW20PNOISEDBM1 field's value will be returned.
5219 *
5220 * @return The current value of the INBDPOW20PNOISEDBM1 field in the AGCINBDPOW20PNOISESTAT register.
5221 */
riu_inbdpow20pnoisedbm1_getf(void)5222 __INLINE uint8_t riu_inbdpow20pnoisedbm1_getf(void)
5223 {
5224 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCINBDPOW20PNOISESTAT_ADDR);
5225 return ((localVal & ((uint32_t)0x0000FF00)) >> 8);
5226 }
5227
5228 /**
5229 * @brief Returns the current value of the INBDPOW20PNOISEDBM0 field in the AGCINBDPOW20PNOISESTAT register.
5230 *
5231 * The AGCINBDPOW20PNOISESTAT register will be read and the INBDPOW20PNOISEDBM0 field's value will be returned.
5232 *
5233 * @return The current value of the INBDPOW20PNOISEDBM0 field in the AGCINBDPOW20PNOISESTAT register.
5234 */
riu_inbdpow20pnoisedbm0_getf(void)5235 __INLINE uint8_t riu_inbdpow20pnoisedbm0_getf(void)
5236 {
5237 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCINBDPOW20PNOISESTAT_ADDR);
5238 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
5239 }
5240
5241 /// @}
5242
5243 /**
5244 * @name AGCINBDPOWSECSTAT register definitions
5245 * <table>
5246 * <caption id="AGCINBDPOWSECSTAT_BF">AGCINBDPOWSECSTAT bitfields</caption>
5247 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5248 * <tr><td>23:16 <td> INBDPOW40SDBM <td>W <td>R <td>0x0
5249 * <tr><td>07:00 <td> INBDPOW20SDBM <td>W <td>R <td>0x0
5250 * </table>
5251 *
5252 * @{
5253 */
5254
5255 /// Address of the AGCINBDPOWSECSTAT register
5256 #define RIU_AGCINBDPOWSECSTAT_ADDR 0x4033B22C
5257 /// Offset of the AGCINBDPOWSECSTAT register from the base address
5258 #define RIU_AGCINBDPOWSECSTAT_OFFSET 0x0000022C
5259 /// Index of the AGCINBDPOWSECSTAT register
5260 #define RIU_AGCINBDPOWSECSTAT_INDEX 0x0000008B
5261 /// Reset value of the AGCINBDPOWSECSTAT register
5262 #define RIU_AGCINBDPOWSECSTAT_RESET 0x00000000
5263
5264 /**
5265 * @brief Returns the current value of the AGCINBDPOWSECSTAT register.
5266 * The AGCINBDPOWSECSTAT register will be read and its value returned.
5267 * @return The current value of the AGCINBDPOWSECSTAT register.
5268 */
riu_agcinbdpowsecstat_get(void)5269 __INLINE uint32_t riu_agcinbdpowsecstat_get(void)
5270 {
5271 return PLATFORM_REG_READ(RIU_AGCINBDPOWSECSTAT_ADDR);
5272 }
5273
5274 // field definitions
5275 /// INBDPOW40SDBM field mask
5276 #define RIU_INBDPOW40SDBM_MASK ((uint32_t)0x00FF0000)
5277 /// INBDPOW40SDBM field LSB position
5278 #define RIU_INBDPOW40SDBM_LSB 16
5279 /// INBDPOW40SDBM field width
5280 #define RIU_INBDPOW40SDBM_WIDTH ((uint32_t)0x00000008)
5281 /// INBDPOW20SDBM field mask
5282 #define RIU_INBDPOW20SDBM_MASK ((uint32_t)0x000000FF)
5283 /// INBDPOW20SDBM field LSB position
5284 #define RIU_INBDPOW20SDBM_LSB 0
5285 /// INBDPOW20SDBM field width
5286 #define RIU_INBDPOW20SDBM_WIDTH ((uint32_t)0x00000008)
5287
5288 /// INBDPOW40SDBM field reset value
5289 #define RIU_INBDPOW40SDBM_RST 0x0
5290 /// INBDPOW20SDBM field reset value
5291 #define RIU_INBDPOW20SDBM_RST 0x0
5292
5293 /**
5294 * @brief Unpacks AGCINBDPOWSECSTAT's fields from current value of the AGCINBDPOWSECSTAT register.
5295 *
5296 * Reads the AGCINBDPOWSECSTAT register and populates all the _field variables with the corresponding
5297 * values from the register.
5298 *
5299 * @param[out] inbdpow40sdbm - Will be populated with the current value of this field from the register.
5300 * @param[out] inbdpow20sdbm - Will be populated with the current value of this field from the register.
5301 */
riu_agcinbdpowsecstat_unpack(uint8_t * inbdpow40sdbm,uint8_t * inbdpow20sdbm)5302 __INLINE void riu_agcinbdpowsecstat_unpack(uint8_t* inbdpow40sdbm, uint8_t* inbdpow20sdbm)
5303 {
5304 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCINBDPOWSECSTAT_ADDR);
5305
5306 *inbdpow40sdbm = (localVal & ((uint32_t)0x00FF0000)) >> 16;
5307 *inbdpow20sdbm = (localVal & ((uint32_t)0x000000FF)) >> 0;
5308 }
5309
5310 /**
5311 * @brief Returns the current value of the INBDPOW40SDBM field in the AGCINBDPOWSECSTAT register.
5312 *
5313 * The AGCINBDPOWSECSTAT register will be read and the INBDPOW40SDBM field's value will be returned.
5314 *
5315 * @return The current value of the INBDPOW40SDBM field in the AGCINBDPOWSECSTAT register.
5316 */
riu_inbdpow40sdbm_getf(void)5317 __INLINE uint8_t riu_inbdpow40sdbm_getf(void)
5318 {
5319 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCINBDPOWSECSTAT_ADDR);
5320 return ((localVal & ((uint32_t)0x00FF0000)) >> 16);
5321 }
5322
5323 /**
5324 * @brief Returns the current value of the INBDPOW20SDBM field in the AGCINBDPOWSECSTAT register.
5325 *
5326 * The AGCINBDPOWSECSTAT register will be read and the INBDPOW20SDBM field's value will be returned.
5327 *
5328 * @return The current value of the INBDPOW20SDBM field in the AGCINBDPOWSECSTAT register.
5329 */
riu_inbdpow20sdbm_getf(void)5330 __INLINE uint8_t riu_inbdpow20sdbm_getf(void)
5331 {
5332 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCINBDPOWSECSTAT_ADDR);
5333 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
5334 }
5335
5336 /// @}
5337
5338 /**
5339 * @name AGCINBDPOWSECNOISESTAT register definitions
5340 * <table>
5341 * <caption id="AGCINBDPOWSECNOISESTAT_BF">AGCINBDPOWSECNOISESTAT bitfields</caption>
5342 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5343 * <tr><td>23:16 <td>INBDPOW40SNOISEDBM <td>W <td>R <td>0x0
5344 * <tr><td>07:00 <td>INBDPOW20SNOISEDBM <td>W <td>R <td>0x0
5345 * </table>
5346 *
5347 * @{
5348 */
5349
5350 /// Address of the AGCINBDPOWSECNOISESTAT register
5351 #define RIU_AGCINBDPOWSECNOISESTAT_ADDR 0x4033B230
5352 /// Offset of the AGCINBDPOWSECNOISESTAT register from the base address
5353 #define RIU_AGCINBDPOWSECNOISESTAT_OFFSET 0x00000230
5354 /// Index of the AGCINBDPOWSECNOISESTAT register
5355 #define RIU_AGCINBDPOWSECNOISESTAT_INDEX 0x0000008C
5356 /// Reset value of the AGCINBDPOWSECNOISESTAT register
5357 #define RIU_AGCINBDPOWSECNOISESTAT_RESET 0x00000000
5358
5359 /**
5360 * @brief Returns the current value of the AGCINBDPOWSECNOISESTAT register.
5361 * The AGCINBDPOWSECNOISESTAT register will be read and its value returned.
5362 * @return The current value of the AGCINBDPOWSECNOISESTAT register.
5363 */
riu_agcinbdpowsecnoisestat_get(void)5364 __INLINE uint32_t riu_agcinbdpowsecnoisestat_get(void)
5365 {
5366 return PLATFORM_REG_READ(RIU_AGCINBDPOWSECNOISESTAT_ADDR);
5367 }
5368
5369 // field definitions
5370 /// INBDPOW40SNOISEDBM field mask
5371 #define RIU_INBDPOW40SNOISEDBM_MASK ((uint32_t)0x00FF0000)
5372 /// INBDPOW40SNOISEDBM field LSB position
5373 #define RIU_INBDPOW40SNOISEDBM_LSB 16
5374 /// INBDPOW40SNOISEDBM field width
5375 #define RIU_INBDPOW40SNOISEDBM_WIDTH ((uint32_t)0x00000008)
5376 /// INBDPOW20SNOISEDBM field mask
5377 #define RIU_INBDPOW20SNOISEDBM_MASK ((uint32_t)0x000000FF)
5378 /// INBDPOW20SNOISEDBM field LSB position
5379 #define RIU_INBDPOW20SNOISEDBM_LSB 0
5380 /// INBDPOW20SNOISEDBM field width
5381 #define RIU_INBDPOW20SNOISEDBM_WIDTH ((uint32_t)0x00000008)
5382
5383 /// INBDPOW40SNOISEDBM field reset value
5384 #define RIU_INBDPOW40SNOISEDBM_RST 0x0
5385 /// INBDPOW20SNOISEDBM field reset value
5386 #define RIU_INBDPOW20SNOISEDBM_RST 0x0
5387
5388 /**
5389 * @brief Unpacks AGCINBDPOWSECNOISESTAT's fields from current value of the AGCINBDPOWSECNOISESTAT register.
5390 *
5391 * Reads the AGCINBDPOWSECNOISESTAT register and populates all the _field variables with the corresponding
5392 * values from the register.
5393 *
5394 * @param[out] inbdpow40snoisedbm - Will be populated with the current value of this field from the register.
5395 * @param[out] inbdpow20snoisedbm - Will be populated with the current value of this field from the register.
5396 */
riu_agcinbdpowsecnoisestat_unpack(uint8_t * inbdpow40snoisedbm,uint8_t * inbdpow20snoisedbm)5397 __INLINE void riu_agcinbdpowsecnoisestat_unpack(uint8_t* inbdpow40snoisedbm, uint8_t* inbdpow20snoisedbm)
5398 {
5399 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCINBDPOWSECNOISESTAT_ADDR);
5400
5401 *inbdpow40snoisedbm = (localVal & ((uint32_t)0x00FF0000)) >> 16;
5402 *inbdpow20snoisedbm = (localVal & ((uint32_t)0x000000FF)) >> 0;
5403 }
5404
5405 /**
5406 * @brief Returns the current value of the INBDPOW40SNOISEDBM field in the AGCINBDPOWSECNOISESTAT register.
5407 *
5408 * The AGCINBDPOWSECNOISESTAT register will be read and the INBDPOW40SNOISEDBM field's value will be returned.
5409 *
5410 * @return The current value of the INBDPOW40SNOISEDBM field in the AGCINBDPOWSECNOISESTAT register.
5411 */
riu_inbdpow40snoisedbm_getf(void)5412 __INLINE uint8_t riu_inbdpow40snoisedbm_getf(void)
5413 {
5414 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCINBDPOWSECNOISESTAT_ADDR);
5415 return ((localVal & ((uint32_t)0x00FF0000)) >> 16);
5416 }
5417
5418 /**
5419 * @brief Returns the current value of the INBDPOW20SNOISEDBM field in the AGCINBDPOWSECNOISESTAT register.
5420 *
5421 * The AGCINBDPOWSECNOISESTAT register will be read and the INBDPOW20SNOISEDBM field's value will be returned.
5422 *
5423 * @return The current value of the INBDPOW20SNOISEDBM field in the AGCINBDPOWSECNOISESTAT register.
5424 */
riu_inbdpow20snoisedbm_getf(void)5425 __INLINE uint8_t riu_inbdpow20snoisedbm_getf(void)
5426 {
5427 uint32_t localVal = PLATFORM_REG_READ(RIU_AGCINBDPOWSECNOISESTAT_ADDR);
5428 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
5429 }
5430
5431 /// @}
5432
5433 #if RW_NX_IQ_COMP_EN
5434 /**
5435 * @name RWNXFERXIQSTATVARI0 register definitions
5436 * <table>
5437 * <caption id="RWNXFERXIQSTATVARI0_BF">RWNXFERXIQSTATVARI0 bitfields</caption>
5438 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5439 * <tr><td>21:00 <td> RXIQVARI0 <td>W <td>R <td>0x0
5440 * </table>
5441 *
5442 * @{
5443 */
5444
5445 /// Address of the RWNXFERXIQSTATVARI0 register
5446 #define RIU_RWNXFERXIQSTATVARI0_ADDR 0x4033B240
5447 /// Offset of the RWNXFERXIQSTATVARI0 register from the base address
5448 #define RIU_RWNXFERXIQSTATVARI0_OFFSET 0x00000240
5449 /// Index of the RWNXFERXIQSTATVARI0 register
5450 #define RIU_RWNXFERXIQSTATVARI0_INDEX 0x00000090
5451 /// Reset value of the RWNXFERXIQSTATVARI0 register
5452 #define RIU_RWNXFERXIQSTATVARI0_RESET 0x00000000
5453
5454 /**
5455 * @brief Returns the current value of the RWNXFERXIQSTATVARI0 register.
5456 * The RWNXFERXIQSTATVARI0 register will be read and its value returned.
5457 * @return The current value of the RWNXFERXIQSTATVARI0 register.
5458 */
riu_rwnxferxiqstatvari0_get(void)5459 __INLINE uint32_t riu_rwnxferxiqstatvari0_get(void)
5460 {
5461 return PLATFORM_REG_READ(RIU_RWNXFERXIQSTATVARI0_ADDR);
5462 }
5463
5464 // field definitions
5465 /// RXIQVARI0 field mask
5466 #define RIU_RXIQVARI0_MASK ((uint32_t)0x003FFFFF)
5467 /// RXIQVARI0 field LSB position
5468 #define RIU_RXIQVARI0_LSB 0
5469 /// RXIQVARI0 field width
5470 #define RIU_RXIQVARI0_WIDTH ((uint32_t)0x00000016)
5471
5472 /// RXIQVARI0 field reset value
5473 #define RIU_RXIQVARI0_RST 0x0
5474
5475 /**
5476 * @brief Returns the current value of the RXIQVARI0 field in the RWNXFERXIQSTATVARI0 register.
5477 *
5478 * The RWNXFERXIQSTATVARI0 register will be read and the RXIQVARI0 field's value will be returned.
5479 *
5480 * @return The current value of the RXIQVARI0 field in the RWNXFERXIQSTATVARI0 register.
5481 */
riu_rxiqvari0_getf(void)5482 __INLINE uint32_t riu_rxiqvari0_getf(void)
5483 {
5484 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQSTATVARI0_ADDR);
5485 return (localVal >> 0);
5486 }
5487
5488 #endif // RW_NX_IQ_COMP_EN
5489 /// @}
5490
5491 #if RW_NX_IQ_COMP_EN
5492 /**
5493 * @name RWNXFERXIQSTATVARQ0 register definitions
5494 * <table>
5495 * <caption id="RWNXFERXIQSTATVARQ0_BF">RWNXFERXIQSTATVARQ0 bitfields</caption>
5496 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5497 * <tr><td>21:00 <td> RXIQVARQ0 <td>W <td>R <td>0x0
5498 * </table>
5499 *
5500 * @{
5501 */
5502
5503 /// Address of the RWNXFERXIQSTATVARQ0 register
5504 #define RIU_RWNXFERXIQSTATVARQ0_ADDR 0x4033B244
5505 /// Offset of the RWNXFERXIQSTATVARQ0 register from the base address
5506 #define RIU_RWNXFERXIQSTATVARQ0_OFFSET 0x00000244
5507 /// Index of the RWNXFERXIQSTATVARQ0 register
5508 #define RIU_RWNXFERXIQSTATVARQ0_INDEX 0x00000091
5509 /// Reset value of the RWNXFERXIQSTATVARQ0 register
5510 #define RIU_RWNXFERXIQSTATVARQ0_RESET 0x00000000
5511
5512 /**
5513 * @brief Returns the current value of the RWNXFERXIQSTATVARQ0 register.
5514 * The RWNXFERXIQSTATVARQ0 register will be read and its value returned.
5515 * @return The current value of the RWNXFERXIQSTATVARQ0 register.
5516 */
riu_rwnxferxiqstatvarq0_get(void)5517 __INLINE uint32_t riu_rwnxferxiqstatvarq0_get(void)
5518 {
5519 return PLATFORM_REG_READ(RIU_RWNXFERXIQSTATVARQ0_ADDR);
5520 }
5521
5522 // field definitions
5523 /// RXIQVARQ0 field mask
5524 #define RIU_RXIQVARQ0_MASK ((uint32_t)0x003FFFFF)
5525 /// RXIQVARQ0 field LSB position
5526 #define RIU_RXIQVARQ0_LSB 0
5527 /// RXIQVARQ0 field width
5528 #define RIU_RXIQVARQ0_WIDTH ((uint32_t)0x00000016)
5529
5530 /// RXIQVARQ0 field reset value
5531 #define RIU_RXIQVARQ0_RST 0x0
5532
5533 /**
5534 * @brief Returns the current value of the RXIQVARQ0 field in the RWNXFERXIQSTATVARQ0 register.
5535 *
5536 * The RWNXFERXIQSTATVARQ0 register will be read and the RXIQVARQ0 field's value will be returned.
5537 *
5538 * @return The current value of the RXIQVARQ0 field in the RWNXFERXIQSTATVARQ0 register.
5539 */
riu_rxiqvarq0_getf(void)5540 __INLINE uint32_t riu_rxiqvarq0_getf(void)
5541 {
5542 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQSTATVARQ0_ADDR);
5543 return (localVal >> 0);
5544 }
5545
5546 #endif // RW_NX_IQ_COMP_EN
5547 /// @}
5548
5549 #if RW_NX_IQ_COMP_EN
5550 /**
5551 * @name RWNXFERXIQSTATMIQ0 register definitions
5552 * <table>
5553 * <caption id="RWNXFERXIQSTATMIQ0_BF">RWNXFERXIQSTATMIQ0 bitfields</caption>
5554 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5555 * <tr><td>22:00 <td> RXIQSTATMIQ0 <td>W <td>R <td>0x0
5556 * </table>
5557 *
5558 * @{
5559 */
5560
5561 /// Address of the RWNXFERXIQSTATMIQ0 register
5562 #define RIU_RWNXFERXIQSTATMIQ0_ADDR 0x4033B248
5563 /// Offset of the RWNXFERXIQSTATMIQ0 register from the base address
5564 #define RIU_RWNXFERXIQSTATMIQ0_OFFSET 0x00000248
5565 /// Index of the RWNXFERXIQSTATMIQ0 register
5566 #define RIU_RWNXFERXIQSTATMIQ0_INDEX 0x00000092
5567 /// Reset value of the RWNXFERXIQSTATMIQ0 register
5568 #define RIU_RWNXFERXIQSTATMIQ0_RESET 0x00000000
5569
5570 /**
5571 * @brief Returns the current value of the RWNXFERXIQSTATMIQ0 register.
5572 * The RWNXFERXIQSTATMIQ0 register will be read and its value returned.
5573 * @return The current value of the RWNXFERXIQSTATMIQ0 register.
5574 */
riu_rwnxferxiqstatmiq0_get(void)5575 __INLINE uint32_t riu_rwnxferxiqstatmiq0_get(void)
5576 {
5577 return PLATFORM_REG_READ(RIU_RWNXFERXIQSTATMIQ0_ADDR);
5578 }
5579
5580 // field definitions
5581 /// RXIQSTATMIQ0 field mask
5582 #define RIU_RXIQSTATMIQ0_MASK ((uint32_t)0x007FFFFF)
5583 /// RXIQSTATMIQ0 field LSB position
5584 #define RIU_RXIQSTATMIQ0_LSB 0
5585 /// RXIQSTATMIQ0 field width
5586 #define RIU_RXIQSTATMIQ0_WIDTH ((uint32_t)0x00000017)
5587
5588 /// RXIQSTATMIQ0 field reset value
5589 #define RIU_RXIQSTATMIQ0_RST 0x0
5590
5591 /**
5592 * @brief Returns the current value of the RXIQSTATMIQ0 field in the RWNXFERXIQSTATMIQ0 register.
5593 *
5594 * The RWNXFERXIQSTATMIQ0 register will be read and the RXIQSTATMIQ0 field's value will be returned.
5595 *
5596 * @return The current value of the RXIQSTATMIQ0 field in the RWNXFERXIQSTATMIQ0 register.
5597 */
riu_rxiqstatmiq0_getf(void)5598 __INLINE uint32_t riu_rxiqstatmiq0_getf(void)
5599 {
5600 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQSTATMIQ0_ADDR);
5601 return (localVal >> 0);
5602 }
5603
5604 #endif // RW_NX_IQ_COMP_EN
5605 /// @}
5606
5607 #if RW_NX_IQ_COMP_EN
5608 /**
5609 * @name RWNXFERXIQSTAT0 register definitions
5610 * <table>
5611 * <caption id="RWNXFERXIQSTAT0_BF">RWNXFERXIQSTAT0 bitfields</caption>
5612 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5613 * <tr><td>24:16 <td> RXIQSTATPHASE0 <td>W <td>R <td>0x0
5614 * <tr><td>10:00 <td> RXIQSTATGAIN0 <td>W <td>R <td>0x0
5615 * </table>
5616 *
5617 * @{
5618 */
5619
5620 /// Address of the RWNXFERXIQSTAT0 register
5621 #define RIU_RWNXFERXIQSTAT0_ADDR 0x4033B24C
5622 /// Offset of the RWNXFERXIQSTAT0 register from the base address
5623 #define RIU_RWNXFERXIQSTAT0_OFFSET 0x0000024C
5624 /// Index of the RWNXFERXIQSTAT0 register
5625 #define RIU_RWNXFERXIQSTAT0_INDEX 0x00000093
5626 /// Reset value of the RWNXFERXIQSTAT0 register
5627 #define RIU_RWNXFERXIQSTAT0_RESET 0x00000000
5628
5629 /**
5630 * @brief Returns the current value of the RWNXFERXIQSTAT0 register.
5631 * The RWNXFERXIQSTAT0 register will be read and its value returned.
5632 * @return The current value of the RWNXFERXIQSTAT0 register.
5633 */
riu_rwnxferxiqstat0_get(void)5634 __INLINE uint32_t riu_rwnxferxiqstat0_get(void)
5635 {
5636 return PLATFORM_REG_READ(RIU_RWNXFERXIQSTAT0_ADDR);
5637 }
5638
5639 // field definitions
5640 /// RXIQSTATPHASE0 field mask
5641 #define RIU_RXIQSTATPHASE0_MASK ((uint32_t)0x01FF0000)
5642 /// RXIQSTATPHASE0 field LSB position
5643 #define RIU_RXIQSTATPHASE0_LSB 16
5644 /// RXIQSTATPHASE0 field width
5645 #define RIU_RXIQSTATPHASE0_WIDTH ((uint32_t)0x00000009)
5646 /// RXIQSTATGAIN0 field mask
5647 #define RIU_RXIQSTATGAIN0_MASK ((uint32_t)0x000007FF)
5648 /// RXIQSTATGAIN0 field LSB position
5649 #define RIU_RXIQSTATGAIN0_LSB 0
5650 /// RXIQSTATGAIN0 field width
5651 #define RIU_RXIQSTATGAIN0_WIDTH ((uint32_t)0x0000000B)
5652
5653 /// RXIQSTATPHASE0 field reset value
5654 #define RIU_RXIQSTATPHASE0_RST 0x0
5655 /// RXIQSTATGAIN0 field reset value
5656 #define RIU_RXIQSTATGAIN0_RST 0x0
5657
5658 /**
5659 * @brief Unpacks RWNXFERXIQSTAT0's fields from current value of the RWNXFERXIQSTAT0 register.
5660 *
5661 * Reads the RWNXFERXIQSTAT0 register and populates all the _field variables with the corresponding
5662 * values from the register.
5663 *
5664 * @param[out] rxiqstatphase0 - Will be populated with the current value of this field from the register.
5665 * @param[out] rxiqstatgain0 - Will be populated with the current value of this field from the register.
5666 */
riu_rwnxferxiqstat0_unpack(uint16_t * rxiqstatphase0,uint16_t * rxiqstatgain0)5667 __INLINE void riu_rwnxferxiqstat0_unpack(uint16_t* rxiqstatphase0, uint16_t* rxiqstatgain0)
5668 {
5669 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQSTAT0_ADDR);
5670
5671 *rxiqstatphase0 = (localVal & ((uint32_t)0x01FF0000)) >> 16;
5672 *rxiqstatgain0 = (localVal & ((uint32_t)0x000007FF)) >> 0;
5673 }
5674
5675 /**
5676 * @brief Returns the current value of the RXIQSTATPHASE0 field in the RWNXFERXIQSTAT0 register.
5677 *
5678 * The RWNXFERXIQSTAT0 register will be read and the RXIQSTATPHASE0 field's value will be returned.
5679 *
5680 * @return The current value of the RXIQSTATPHASE0 field in the RWNXFERXIQSTAT0 register.
5681 */
riu_rxiqstatphase0_getf(void)5682 __INLINE uint16_t riu_rxiqstatphase0_getf(void)
5683 {
5684 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQSTAT0_ADDR);
5685 return ((localVal & ((uint32_t)0x01FF0000)) >> 16);
5686 }
5687
5688 /**
5689 * @brief Returns the current value of the RXIQSTATGAIN0 field in the RWNXFERXIQSTAT0 register.
5690 *
5691 * The RWNXFERXIQSTAT0 register will be read and the RXIQSTATGAIN0 field's value will be returned.
5692 *
5693 * @return The current value of the RXIQSTATGAIN0 field in the RWNXFERXIQSTAT0 register.
5694 */
riu_rxiqstatgain0_getf(void)5695 __INLINE uint16_t riu_rxiqstatgain0_getf(void)
5696 {
5697 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQSTAT0_ADDR);
5698 return ((localVal & ((uint32_t)0x000007FF)) >> 0);
5699 }
5700
5701 #endif // RW_NX_IQ_COMP_EN
5702 /// @}
5703
5704 #if RW_NX_IQ_COMP_EN
5705 /**
5706 * @name RWNXFERXIQSTATVARI1 register definitions
5707 * <table>
5708 * <caption id="RWNXFERXIQSTATVARI1_BF">RWNXFERXIQSTATVARI1 bitfields</caption>
5709 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5710 * <tr><td>21:00 <td> RXIQVARI1 <td>W <td>R <td>0x0
5711 * </table>
5712 *
5713 * @{
5714 */
5715
5716 /// Address of the RWNXFERXIQSTATVARI1 register
5717 #define RIU_RWNXFERXIQSTATVARI1_ADDR 0x4033B250
5718 /// Offset of the RWNXFERXIQSTATVARI1 register from the base address
5719 #define RIU_RWNXFERXIQSTATVARI1_OFFSET 0x00000250
5720 /// Index of the RWNXFERXIQSTATVARI1 register
5721 #define RIU_RWNXFERXIQSTATVARI1_INDEX 0x00000094
5722 /// Reset value of the RWNXFERXIQSTATVARI1 register
5723 #define RIU_RWNXFERXIQSTATVARI1_RESET 0x00000000
5724
5725 /**
5726 * @brief Returns the current value of the RWNXFERXIQSTATVARI1 register.
5727 * The RWNXFERXIQSTATVARI1 register will be read and its value returned.
5728 * @return The current value of the RWNXFERXIQSTATVARI1 register.
5729 */
riu_rwnxferxiqstatvari1_get(void)5730 __INLINE uint32_t riu_rwnxferxiqstatvari1_get(void)
5731 {
5732 return PLATFORM_REG_READ(RIU_RWNXFERXIQSTATVARI1_ADDR);
5733 }
5734
5735 // field definitions
5736 /// RXIQVARI1 field mask
5737 #define RIU_RXIQVARI1_MASK ((uint32_t)0x003FFFFF)
5738 /// RXIQVARI1 field LSB position
5739 #define RIU_RXIQVARI1_LSB 0
5740 /// RXIQVARI1 field width
5741 #define RIU_RXIQVARI1_WIDTH ((uint32_t)0x00000016)
5742
5743 /// RXIQVARI1 field reset value
5744 #define RIU_RXIQVARI1_RST 0x0
5745
5746 /**
5747 * @brief Returns the current value of the RXIQVARI1 field in the RWNXFERXIQSTATVARI1 register.
5748 *
5749 * The RWNXFERXIQSTATVARI1 register will be read and the RXIQVARI1 field's value will be returned.
5750 *
5751 * @return The current value of the RXIQVARI1 field in the RWNXFERXIQSTATVARI1 register.
5752 */
riu_rxiqvari1_getf(void)5753 __INLINE uint32_t riu_rxiqvari1_getf(void)
5754 {
5755 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQSTATVARI1_ADDR);
5756 return (localVal >> 0);
5757 }
5758
5759 #endif // RW_NX_IQ_COMP_EN
5760 /// @}
5761
5762 #if RW_NX_IQ_COMP_EN
5763 /**
5764 * @name RWNXFERXIQSTATVARQ1 register definitions
5765 * <table>
5766 * <caption id="RWNXFERXIQSTATVARQ1_BF">RWNXFERXIQSTATVARQ1 bitfields</caption>
5767 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5768 * <tr><td>21:00 <td> RXIQVARQ1 <td>W <td>R <td>0x0
5769 * </table>
5770 *
5771 * @{
5772 */
5773
5774 /// Address of the RWNXFERXIQSTATVARQ1 register
5775 #define RIU_RWNXFERXIQSTATVARQ1_ADDR 0x4033B254
5776 /// Offset of the RWNXFERXIQSTATVARQ1 register from the base address
5777 #define RIU_RWNXFERXIQSTATVARQ1_OFFSET 0x00000254
5778 /// Index of the RWNXFERXIQSTATVARQ1 register
5779 #define RIU_RWNXFERXIQSTATVARQ1_INDEX 0x00000095
5780 /// Reset value of the RWNXFERXIQSTATVARQ1 register
5781 #define RIU_RWNXFERXIQSTATVARQ1_RESET 0x00000000
5782
5783 /**
5784 * @brief Returns the current value of the RWNXFERXIQSTATVARQ1 register.
5785 * The RWNXFERXIQSTATVARQ1 register will be read and its value returned.
5786 * @return The current value of the RWNXFERXIQSTATVARQ1 register.
5787 */
riu_rwnxferxiqstatvarq1_get(void)5788 __INLINE uint32_t riu_rwnxferxiqstatvarq1_get(void)
5789 {
5790 return PLATFORM_REG_READ(RIU_RWNXFERXIQSTATVARQ1_ADDR);
5791 }
5792
5793 // field definitions
5794 /// RXIQVARQ1 field mask
5795 #define RIU_RXIQVARQ1_MASK ((uint32_t)0x003FFFFF)
5796 /// RXIQVARQ1 field LSB position
5797 #define RIU_RXIQVARQ1_LSB 0
5798 /// RXIQVARQ1 field width
5799 #define RIU_RXIQVARQ1_WIDTH ((uint32_t)0x00000016)
5800
5801 /// RXIQVARQ1 field reset value
5802 #define RIU_RXIQVARQ1_RST 0x0
5803
5804 /**
5805 * @brief Returns the current value of the RXIQVARQ1 field in the RWNXFERXIQSTATVARQ1 register.
5806 *
5807 * The RWNXFERXIQSTATVARQ1 register will be read and the RXIQVARQ1 field's value will be returned.
5808 *
5809 * @return The current value of the RXIQVARQ1 field in the RWNXFERXIQSTATVARQ1 register.
5810 */
riu_rxiqvarq1_getf(void)5811 __INLINE uint32_t riu_rxiqvarq1_getf(void)
5812 {
5813 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQSTATVARQ1_ADDR);
5814 return (localVal >> 0);
5815 }
5816
5817 #endif // RW_NX_IQ_COMP_EN
5818 /// @}
5819
5820 #if RW_NX_IQ_COMP_EN
5821 /**
5822 * @name RWNXFERXIQSTATMIQ1 register definitions
5823 * <table>
5824 * <caption id="RWNXFERXIQSTATMIQ1_BF">RWNXFERXIQSTATMIQ1 bitfields</caption>
5825 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5826 * <tr><td>22:00 <td> RXIQSTATMIQ1 <td>W <td>R <td>0x0
5827 * </table>
5828 *
5829 * @{
5830 */
5831
5832 /// Address of the RWNXFERXIQSTATMIQ1 register
5833 #define RIU_RWNXFERXIQSTATMIQ1_ADDR 0x4033B258
5834 /// Offset of the RWNXFERXIQSTATMIQ1 register from the base address
5835 #define RIU_RWNXFERXIQSTATMIQ1_OFFSET 0x00000258
5836 /// Index of the RWNXFERXIQSTATMIQ1 register
5837 #define RIU_RWNXFERXIQSTATMIQ1_INDEX 0x00000096
5838 /// Reset value of the RWNXFERXIQSTATMIQ1 register
5839 #define RIU_RWNXFERXIQSTATMIQ1_RESET 0x00000000
5840
5841 /**
5842 * @brief Returns the current value of the RWNXFERXIQSTATMIQ1 register.
5843 * The RWNXFERXIQSTATMIQ1 register will be read and its value returned.
5844 * @return The current value of the RWNXFERXIQSTATMIQ1 register.
5845 */
riu_rwnxferxiqstatmiq1_get(void)5846 __INLINE uint32_t riu_rwnxferxiqstatmiq1_get(void)
5847 {
5848 return PLATFORM_REG_READ(RIU_RWNXFERXIQSTATMIQ1_ADDR);
5849 }
5850
5851 // field definitions
5852 /// RXIQSTATMIQ1 field mask
5853 #define RIU_RXIQSTATMIQ1_MASK ((uint32_t)0x007FFFFF)
5854 /// RXIQSTATMIQ1 field LSB position
5855 #define RIU_RXIQSTATMIQ1_LSB 0
5856 /// RXIQSTATMIQ1 field width
5857 #define RIU_RXIQSTATMIQ1_WIDTH ((uint32_t)0x00000017)
5858
5859 /// RXIQSTATMIQ1 field reset value
5860 #define RIU_RXIQSTATMIQ1_RST 0x0
5861
5862 /**
5863 * @brief Returns the current value of the RXIQSTATMIQ1 field in the RWNXFERXIQSTATMIQ1 register.
5864 *
5865 * The RWNXFERXIQSTATMIQ1 register will be read and the RXIQSTATMIQ1 field's value will be returned.
5866 *
5867 * @return The current value of the RXIQSTATMIQ1 field in the RWNXFERXIQSTATMIQ1 register.
5868 */
riu_rxiqstatmiq1_getf(void)5869 __INLINE uint32_t riu_rxiqstatmiq1_getf(void)
5870 {
5871 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQSTATMIQ1_ADDR);
5872 return (localVal >> 0);
5873 }
5874
5875 #endif // RW_NX_IQ_COMP_EN
5876 /// @}
5877
5878 #if RW_NX_IQ_COMP_EN
5879 /**
5880 * @name RWNXFERXIQSTAT1 register definitions
5881 * <table>
5882 * <caption id="RWNXFERXIQSTAT1_BF">RWNXFERXIQSTAT1 bitfields</caption>
5883 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5884 * <tr><td>24:16 <td> RXIQSTATPHASE1 <td>W <td>R <td>0x0
5885 * <tr><td>10:00 <td> RXIQSTATGAIN1 <td>W <td>R <td>0x0
5886 * </table>
5887 *
5888 * @{
5889 */
5890
5891 /// Address of the RWNXFERXIQSTAT1 register
5892 #define RIU_RWNXFERXIQSTAT1_ADDR 0x4033B25C
5893 /// Offset of the RWNXFERXIQSTAT1 register from the base address
5894 #define RIU_RWNXFERXIQSTAT1_OFFSET 0x0000025C
5895 /// Index of the RWNXFERXIQSTAT1 register
5896 #define RIU_RWNXFERXIQSTAT1_INDEX 0x00000097
5897 /// Reset value of the RWNXFERXIQSTAT1 register
5898 #define RIU_RWNXFERXIQSTAT1_RESET 0x00000000
5899
5900 /**
5901 * @brief Returns the current value of the RWNXFERXIQSTAT1 register.
5902 * The RWNXFERXIQSTAT1 register will be read and its value returned.
5903 * @return The current value of the RWNXFERXIQSTAT1 register.
5904 */
riu_rwnxferxiqstat1_get(void)5905 __INLINE uint32_t riu_rwnxferxiqstat1_get(void)
5906 {
5907 return PLATFORM_REG_READ(RIU_RWNXFERXIQSTAT1_ADDR);
5908 }
5909
5910 // field definitions
5911 /// RXIQSTATPHASE1 field mask
5912 #define RIU_RXIQSTATPHASE1_MASK ((uint32_t)0x01FF0000)
5913 /// RXIQSTATPHASE1 field LSB position
5914 #define RIU_RXIQSTATPHASE1_LSB 16
5915 /// RXIQSTATPHASE1 field width
5916 #define RIU_RXIQSTATPHASE1_WIDTH ((uint32_t)0x00000009)
5917 /// RXIQSTATGAIN1 field mask
5918 #define RIU_RXIQSTATGAIN1_MASK ((uint32_t)0x000007FF)
5919 /// RXIQSTATGAIN1 field LSB position
5920 #define RIU_RXIQSTATGAIN1_LSB 0
5921 /// RXIQSTATGAIN1 field width
5922 #define RIU_RXIQSTATGAIN1_WIDTH ((uint32_t)0x0000000B)
5923
5924 /// RXIQSTATPHASE1 field reset value
5925 #define RIU_RXIQSTATPHASE1_RST 0x0
5926 /// RXIQSTATGAIN1 field reset value
5927 #define RIU_RXIQSTATGAIN1_RST 0x0
5928
5929 /**
5930 * @brief Unpacks RWNXFERXIQSTAT1's fields from current value of the RWNXFERXIQSTAT1 register.
5931 *
5932 * Reads the RWNXFERXIQSTAT1 register and populates all the _field variables with the corresponding
5933 * values from the register.
5934 *
5935 * @param[out] rxiqstatphase1 - Will be populated with the current value of this field from the register.
5936 * @param[out] rxiqstatgain1 - Will be populated with the current value of this field from the register.
5937 */
riu_rwnxferxiqstat1_unpack(uint16_t * rxiqstatphase1,uint16_t * rxiqstatgain1)5938 __INLINE void riu_rwnxferxiqstat1_unpack(uint16_t* rxiqstatphase1, uint16_t* rxiqstatgain1)
5939 {
5940 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQSTAT1_ADDR);
5941
5942 *rxiqstatphase1 = (localVal & ((uint32_t)0x01FF0000)) >> 16;
5943 *rxiqstatgain1 = (localVal & ((uint32_t)0x000007FF)) >> 0;
5944 }
5945
5946 /**
5947 * @brief Returns the current value of the RXIQSTATPHASE1 field in the RWNXFERXIQSTAT1 register.
5948 *
5949 * The RWNXFERXIQSTAT1 register will be read and the RXIQSTATPHASE1 field's value will be returned.
5950 *
5951 * @return The current value of the RXIQSTATPHASE1 field in the RWNXFERXIQSTAT1 register.
5952 */
riu_rxiqstatphase1_getf(void)5953 __INLINE uint16_t riu_rxiqstatphase1_getf(void)
5954 {
5955 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQSTAT1_ADDR);
5956 return ((localVal & ((uint32_t)0x01FF0000)) >> 16);
5957 }
5958
5959 /**
5960 * @brief Returns the current value of the RXIQSTATGAIN1 field in the RWNXFERXIQSTAT1 register.
5961 *
5962 * The RWNXFERXIQSTAT1 register will be read and the RXIQSTATGAIN1 field's value will be returned.
5963 *
5964 * @return The current value of the RXIQSTATGAIN1 field in the RWNXFERXIQSTAT1 register.
5965 */
riu_rxiqstatgain1_getf(void)5966 __INLINE uint16_t riu_rxiqstatgain1_getf(void)
5967 {
5968 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFERXIQSTAT1_ADDR);
5969 return ((localVal & ((uint32_t)0x000007FF)) >> 0);
5970 }
5971
5972 #endif // RW_NX_IQ_COMP_EN
5973 /// @}
5974
5975 #if RW_NX_FIQ_COMP_EN
5976 /**
5977 * @name RWNXFEFIQDONE register definitions
5978 * <table>
5979 * <caption id="RWNXFEFIQDONE_BF">RWNXFEFIQDONE bitfields</caption>
5980 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
5981 * <tr><td>16 <td> FIQESTDONE <td>W <td>R <td>1
5982 * <tr><td>00 <td> FIQCOLLDONE <td>W <td>R <td>1
5983 * </table>
5984 *
5985 * @{
5986 */
5987
5988 /// Address of the RWNXFEFIQDONE register
5989 #define RIU_RWNXFEFIQDONE_ADDR 0x4033B260
5990 /// Offset of the RWNXFEFIQDONE register from the base address
5991 #define RIU_RWNXFEFIQDONE_OFFSET 0x00000260
5992 /// Index of the RWNXFEFIQDONE register
5993 #define RIU_RWNXFEFIQDONE_INDEX 0x00000098
5994 /// Reset value of the RWNXFEFIQDONE register
5995 #define RIU_RWNXFEFIQDONE_RESET 0x00010001
5996
5997 /**
5998 * @brief Returns the current value of the RWNXFEFIQDONE register.
5999 * The RWNXFEFIQDONE register will be read and its value returned.
6000 * @return The current value of the RWNXFEFIQDONE register.
6001 */
riu_rwnxfefiqdone_get(void)6002 __INLINE uint32_t riu_rwnxfefiqdone_get(void)
6003 {
6004 return PLATFORM_REG_READ(RIU_RWNXFEFIQDONE_ADDR);
6005 }
6006
6007 // field definitions
6008 /// FIQESTDONE field bit
6009 #define RIU_FIQESTDONE_BIT ((uint32_t)0x00010000)
6010 /// FIQESTDONE field position
6011 #define RIU_FIQESTDONE_POS 16
6012 /// FIQCOLLDONE field bit
6013 #define RIU_FIQCOLLDONE_BIT ((uint32_t)0x00000001)
6014 /// FIQCOLLDONE field position
6015 #define RIU_FIQCOLLDONE_POS 0
6016
6017 /// FIQESTDONE field reset value
6018 #define RIU_FIQESTDONE_RST 0x1
6019 /// FIQCOLLDONE field reset value
6020 #define RIU_FIQCOLLDONE_RST 0x1
6021
6022 /**
6023 * @brief Unpacks RWNXFEFIQDONE's fields from current value of the RWNXFEFIQDONE register.
6024 *
6025 * Reads the RWNXFEFIQDONE register and populates all the _field variables with the corresponding
6026 * values from the register.
6027 *
6028 * @param[out] fiqestdone - Will be populated with the current value of this field from the register.
6029 * @param[out] fiqcolldone - Will be populated with the current value of this field from the register.
6030 */
riu_rwnxfefiqdone_unpack(uint8_t * fiqestdone,uint8_t * fiqcolldone)6031 __INLINE void riu_rwnxfefiqdone_unpack(uint8_t* fiqestdone, uint8_t* fiqcolldone)
6032 {
6033 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQDONE_ADDR);
6034
6035 *fiqestdone = (localVal & ((uint32_t)0x00010000)) >> 16;
6036 *fiqcolldone = (localVal & ((uint32_t)0x00000001)) >> 0;
6037 }
6038
6039 /**
6040 * @brief Returns the current value of the FIQESTDONE field in the RWNXFEFIQDONE register.
6041 *
6042 * The RWNXFEFIQDONE register will be read and the FIQESTDONE field's value will be returned.
6043 *
6044 * @return The current value of the FIQESTDONE field in the RWNXFEFIQDONE register.
6045 */
riu_fiqestdone_getf(void)6046 __INLINE uint8_t riu_fiqestdone_getf(void)
6047 {
6048 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQDONE_ADDR);
6049 return ((localVal & ((uint32_t)0x00010000)) >> 16);
6050 }
6051
6052 /**
6053 * @brief Returns the current value of the FIQCOLLDONE field in the RWNXFEFIQDONE register.
6054 *
6055 * The RWNXFEFIQDONE register will be read and the FIQCOLLDONE field's value will be returned.
6056 *
6057 * @return The current value of the FIQCOLLDONE field in the RWNXFEFIQDONE register.
6058 */
riu_fiqcolldone_getf(void)6059 __INLINE uint8_t riu_fiqcolldone_getf(void)
6060 {
6061 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQDONE_ADDR);
6062 return ((localVal & ((uint32_t)0x00000001)) >> 0);
6063 }
6064
6065 #endif // RW_NX_FIQ_COMP_EN
6066 /// @}
6067
6068 #if RW_NX_FIQ_COMP_EN
6069 /**
6070 * @name RWNXFEFIQSTAT0 register definitions
6071 * <table>
6072 * <caption id="RWNXFEFIQSTAT0_BF">RWNXFEFIQSTAT0 bitfields</caption>
6073 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
6074 * <tr><td>28:16 <td> FIQTXESTERROR0 <td>W <td>R <td>0x0
6075 * <tr><td>12:00 <td> FIQRXESTERROR0 <td>W <td>R <td>0x0
6076 * </table>
6077 *
6078 * @{
6079 */
6080
6081 /// Address of the RWNXFEFIQSTAT0 register
6082 #define RIU_RWNXFEFIQSTAT0_ADDR 0x4033B264
6083 /// Offset of the RWNXFEFIQSTAT0 register from the base address
6084 #define RIU_RWNXFEFIQSTAT0_OFFSET 0x00000264
6085 /// Index of the RWNXFEFIQSTAT0 register
6086 #define RIU_RWNXFEFIQSTAT0_INDEX 0x00000099
6087 /// Reset value of the RWNXFEFIQSTAT0 register
6088 #define RIU_RWNXFEFIQSTAT0_RESET 0x00000000
6089
6090 /**
6091 * @brief Returns the current value of the RWNXFEFIQSTAT0 register.
6092 * The RWNXFEFIQSTAT0 register will be read and its value returned.
6093 * @return The current value of the RWNXFEFIQSTAT0 register.
6094 */
riu_rwnxfefiqstat0_get(void)6095 __INLINE uint32_t riu_rwnxfefiqstat0_get(void)
6096 {
6097 return PLATFORM_REG_READ(RIU_RWNXFEFIQSTAT0_ADDR);
6098 }
6099
6100 // field definitions
6101 /// FIQTXESTERROR0 field mask
6102 #define RIU_FIQTXESTERROR0_MASK ((uint32_t)0x1FFF0000)
6103 /// FIQTXESTERROR0 field LSB position
6104 #define RIU_FIQTXESTERROR0_LSB 16
6105 /// FIQTXESTERROR0 field width
6106 #define RIU_FIQTXESTERROR0_WIDTH ((uint32_t)0x0000000D)
6107 /// FIQRXESTERROR0 field mask
6108 #define RIU_FIQRXESTERROR0_MASK ((uint32_t)0x00001FFF)
6109 /// FIQRXESTERROR0 field LSB position
6110 #define RIU_FIQRXESTERROR0_LSB 0
6111 /// FIQRXESTERROR0 field width
6112 #define RIU_FIQRXESTERROR0_WIDTH ((uint32_t)0x0000000D)
6113
6114 /// FIQTXESTERROR0 field reset value
6115 #define RIU_FIQTXESTERROR0_RST 0x0
6116 /// FIQRXESTERROR0 field reset value
6117 #define RIU_FIQRXESTERROR0_RST 0x0
6118
6119 /**
6120 * @brief Unpacks RWNXFEFIQSTAT0's fields from current value of the RWNXFEFIQSTAT0 register.
6121 *
6122 * Reads the RWNXFEFIQSTAT0 register and populates all the _field variables with the corresponding
6123 * values from the register.
6124 *
6125 * @param[out] fiqtxesterror0 - Will be populated with the current value of this field from the register.
6126 * @param[out] fiqrxesterror0 - Will be populated with the current value of this field from the register.
6127 */
riu_rwnxfefiqstat0_unpack(uint16_t * fiqtxesterror0,uint16_t * fiqrxesterror0)6128 __INLINE void riu_rwnxfefiqstat0_unpack(uint16_t* fiqtxesterror0, uint16_t* fiqrxesterror0)
6129 {
6130 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQSTAT0_ADDR);
6131
6132 *fiqtxesterror0 = (localVal & ((uint32_t)0x1FFF0000)) >> 16;
6133 *fiqrxesterror0 = (localVal & ((uint32_t)0x00001FFF)) >> 0;
6134 }
6135
6136 /**
6137 * @brief Returns the current value of the FIQTXESTERROR0 field in the RWNXFEFIQSTAT0 register.
6138 *
6139 * The RWNXFEFIQSTAT0 register will be read and the FIQTXESTERROR0 field's value will be returned.
6140 *
6141 * @return The current value of the FIQTXESTERROR0 field in the RWNXFEFIQSTAT0 register.
6142 */
riu_fiqtxesterror0_getf(void)6143 __INLINE uint16_t riu_fiqtxesterror0_getf(void)
6144 {
6145 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQSTAT0_ADDR);
6146 return ((localVal & ((uint32_t)0x1FFF0000)) >> 16);
6147 }
6148
6149 /**
6150 * @brief Returns the current value of the FIQRXESTERROR0 field in the RWNXFEFIQSTAT0 register.
6151 *
6152 * The RWNXFEFIQSTAT0 register will be read and the FIQRXESTERROR0 field's value will be returned.
6153 *
6154 * @return The current value of the FIQRXESTERROR0 field in the RWNXFEFIQSTAT0 register.
6155 */
riu_fiqrxesterror0_getf(void)6156 __INLINE uint16_t riu_fiqrxesterror0_getf(void)
6157 {
6158 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQSTAT0_ADDR);
6159 return ((localVal & ((uint32_t)0x00001FFF)) >> 0);
6160 }
6161
6162 #endif // RW_NX_FIQ_COMP_EN
6163 /// @}
6164
6165 #if RW_NX_FIQ_COMP_EN
6166 /**
6167 * @name RWNXFEFIQSTAT1 register definitions
6168 * <table>
6169 * <caption id="RWNXFEFIQSTAT1_BF">RWNXFEFIQSTAT1 bitfields</caption>
6170 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
6171 * <tr><td>28:16 <td> FIQTXESTERROR1 <td>W <td>R <td>0x0
6172 * <tr><td>12:00 <td> FIQRXESTERROR1 <td>W <td>R <td>0x0
6173 * </table>
6174 *
6175 * @{
6176 */
6177
6178 /// Address of the RWNXFEFIQSTAT1 register
6179 #define RIU_RWNXFEFIQSTAT1_ADDR 0x4033B268
6180 /// Offset of the RWNXFEFIQSTAT1 register from the base address
6181 #define RIU_RWNXFEFIQSTAT1_OFFSET 0x00000268
6182 /// Index of the RWNXFEFIQSTAT1 register
6183 #define RIU_RWNXFEFIQSTAT1_INDEX 0x0000009A
6184 /// Reset value of the RWNXFEFIQSTAT1 register
6185 #define RIU_RWNXFEFIQSTAT1_RESET 0x00000000
6186
6187 /**
6188 * @brief Returns the current value of the RWNXFEFIQSTAT1 register.
6189 * The RWNXFEFIQSTAT1 register will be read and its value returned.
6190 * @return The current value of the RWNXFEFIQSTAT1 register.
6191 */
riu_rwnxfefiqstat1_get(void)6192 __INLINE uint32_t riu_rwnxfefiqstat1_get(void)
6193 {
6194 return PLATFORM_REG_READ(RIU_RWNXFEFIQSTAT1_ADDR);
6195 }
6196
6197 // field definitions
6198 /// FIQTXESTERROR1 field mask
6199 #define RIU_FIQTXESTERROR1_MASK ((uint32_t)0x1FFF0000)
6200 /// FIQTXESTERROR1 field LSB position
6201 #define RIU_FIQTXESTERROR1_LSB 16
6202 /// FIQTXESTERROR1 field width
6203 #define RIU_FIQTXESTERROR1_WIDTH ((uint32_t)0x0000000D)
6204 /// FIQRXESTERROR1 field mask
6205 #define RIU_FIQRXESTERROR1_MASK ((uint32_t)0x00001FFF)
6206 /// FIQRXESTERROR1 field LSB position
6207 #define RIU_FIQRXESTERROR1_LSB 0
6208 /// FIQRXESTERROR1 field width
6209 #define RIU_FIQRXESTERROR1_WIDTH ((uint32_t)0x0000000D)
6210
6211 /// FIQTXESTERROR1 field reset value
6212 #define RIU_FIQTXESTERROR1_RST 0x0
6213 /// FIQRXESTERROR1 field reset value
6214 #define RIU_FIQRXESTERROR1_RST 0x0
6215
6216 /**
6217 * @brief Unpacks RWNXFEFIQSTAT1's fields from current value of the RWNXFEFIQSTAT1 register.
6218 *
6219 * Reads the RWNXFEFIQSTAT1 register and populates all the _field variables with the corresponding
6220 * values from the register.
6221 *
6222 * @param[out] fiqtxesterror1 - Will be populated with the current value of this field from the register.
6223 * @param[out] fiqrxesterror1 - Will be populated with the current value of this field from the register.
6224 */
riu_rwnxfefiqstat1_unpack(uint16_t * fiqtxesterror1,uint16_t * fiqrxesterror1)6225 __INLINE void riu_rwnxfefiqstat1_unpack(uint16_t* fiqtxesterror1, uint16_t* fiqrxesterror1)
6226 {
6227 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQSTAT1_ADDR);
6228
6229 *fiqtxesterror1 = (localVal & ((uint32_t)0x1FFF0000)) >> 16;
6230 *fiqrxesterror1 = (localVal & ((uint32_t)0x00001FFF)) >> 0;
6231 }
6232
6233 /**
6234 * @brief Returns the current value of the FIQTXESTERROR1 field in the RWNXFEFIQSTAT1 register.
6235 *
6236 * The RWNXFEFIQSTAT1 register will be read and the FIQTXESTERROR1 field's value will be returned.
6237 *
6238 * @return The current value of the FIQTXESTERROR1 field in the RWNXFEFIQSTAT1 register.
6239 */
riu_fiqtxesterror1_getf(void)6240 __INLINE uint16_t riu_fiqtxesterror1_getf(void)
6241 {
6242 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQSTAT1_ADDR);
6243 return ((localVal & ((uint32_t)0x1FFF0000)) >> 16);
6244 }
6245
6246 /**
6247 * @brief Returns the current value of the FIQRXESTERROR1 field in the RWNXFEFIQSTAT1 register.
6248 *
6249 * The RWNXFEFIQSTAT1 register will be read and the FIQRXESTERROR1 field's value will be returned.
6250 *
6251 * @return The current value of the FIQRXESTERROR1 field in the RWNXFEFIQSTAT1 register.
6252 */
riu_fiqrxesterror1_getf(void)6253 __INLINE uint16_t riu_fiqrxesterror1_getf(void)
6254 {
6255 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQSTAT1_ADDR);
6256 return ((localVal & ((uint32_t)0x00001FFF)) >> 0);
6257 }
6258
6259 #endif // RW_NX_FIQ_COMP_EN
6260 /// @}
6261
6262 #if RW_NX_FIQ_COMP_EN
6263 /**
6264 * @name RWNXFEFIQSTATCOEFF register definitions
6265 * <table>
6266 * <caption id="RWNXFEFIQSTATCOEFF_BF">RWNXFEFIQSTATCOEFF bitfields</caption>
6267 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
6268 * <tr><td>15:00 <td> FIQSTATCOEFF <td>W <td>R <td>0x0
6269 * </table>
6270 *
6271 * @{
6272 */
6273
6274 /// Address of the RWNXFEFIQSTATCOEFF register
6275 #define RIU_RWNXFEFIQSTATCOEFF_ADDR 0x4033B26C
6276 /// Offset of the RWNXFEFIQSTATCOEFF register from the base address
6277 #define RIU_RWNXFEFIQSTATCOEFF_OFFSET 0x0000026C
6278 /// Index of the RWNXFEFIQSTATCOEFF register
6279 #define RIU_RWNXFEFIQSTATCOEFF_INDEX 0x0000009B
6280 /// Reset value of the RWNXFEFIQSTATCOEFF register
6281 #define RIU_RWNXFEFIQSTATCOEFF_RESET 0x00000000
6282 /// Number of elements of the RWNXFEFIQSTATCOEFF register array
6283 #define RIU_RWNXFEFIQSTATCOEFF_COUNT 20
6284
6285 /**
6286 * @brief Returns the current value of the RWNXFEFIQSTATCOEFF register.
6287 * The RWNXFEFIQSTATCOEFF register will be read and its value returned.
6288 * @param[in] reg_idx Index of the register
6289 * @return The current value of the RWNXFEFIQSTATCOEFF register.
6290 */
riu_rwnxfefiqstatcoeff_get(int reg_idx)6291 __INLINE uint32_t riu_rwnxfefiqstatcoeff_get(int reg_idx)
6292 {
6293 return PLATFORM_REG_READ(RIU_RWNXFEFIQSTATCOEFF_ADDR + reg_idx * 4);
6294 }
6295
6296 // field definitions
6297 /// FIQSTATCOEFF field mask
6298 #define RIU_FIQSTATCOEFF_MASK ((uint32_t)0x0000FFFF)
6299 /// FIQSTATCOEFF field LSB position
6300 #define RIU_FIQSTATCOEFF_LSB 0
6301 /// FIQSTATCOEFF field width
6302 #define RIU_FIQSTATCOEFF_WIDTH ((uint32_t)0x00000010)
6303
6304 /// FIQSTATCOEFF field reset value
6305 #define RIU_FIQSTATCOEFF_RST 0x0
6306
6307 /**
6308 * @brief Returns the current value of the FIQSTATCOEFF field in the RWNXFEFIQSTATCOEFF register.
6309 *
6310 * The RWNXFEFIQSTATCOEFF register will be read and the FIQSTATCOEFF field's value will be returned.
6311 *
6312 * @param[in] reg_idx Index of the register
6313 * @return The current value of the FIQSTATCOEFF field in the RWNXFEFIQSTATCOEFF register.
6314 */
riu_fiqstatcoeff_getf(int reg_idx)6315 __INLINE uint16_t riu_fiqstatcoeff_getf(int reg_idx)
6316 {
6317 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEFIQSTATCOEFF_ADDR + reg_idx * 4);
6318 return (localVal >> 0);
6319 }
6320
6321 #endif // RW_NX_FIQ_COMP_EN
6322 /// @}
6323
6324 /**
6325 * @name RWNXAGCANTLOSS register definitions
6326 * <table>
6327 * <caption id="RWNXAGCANTLOSS_BF">RWNXAGCANTLOSS bitfields</caption>
6328 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
6329 * <tr><td>11:08 <td> RFLOSSANT1DB <td>R <td>R/W <td>0x0
6330 * <tr><td>03:00 <td> RFLOSSANT0DB <td>R <td>R/W <td>0x0
6331 * </table>
6332 *
6333 * @{
6334 */
6335
6336 /// Address of the RWNXAGCANTLOSS register
6337 #define RIU_RWNXAGCANTLOSS_ADDR 0x4033B300
6338 /// Offset of the RWNXAGCANTLOSS register from the base address
6339 #define RIU_RWNXAGCANTLOSS_OFFSET 0x00000300
6340 /// Index of the RWNXAGCANTLOSS register
6341 #define RIU_RWNXAGCANTLOSS_INDEX 0x000000C0
6342 /// Reset value of the RWNXAGCANTLOSS register
6343 #define RIU_RWNXAGCANTLOSS_RESET 0x00000000
6344
6345 /**
6346 * @brief Returns the current value of the RWNXAGCANTLOSS register.
6347 * The RWNXAGCANTLOSS register will be read and its value returned.
6348 * @return The current value of the RWNXAGCANTLOSS register.
6349 */
riu_rwnxagcantloss_get(void)6350 __INLINE uint32_t riu_rwnxagcantloss_get(void)
6351 {
6352 return PLATFORM_REG_READ(RIU_RWNXAGCANTLOSS_ADDR);
6353 }
6354
6355 /**
6356 * @brief Sets the RWNXAGCANTLOSS register to a value.
6357 * The RWNXAGCANTLOSS register will be written.
6358 * @param value - The value to write.
6359 */
riu_rwnxagcantloss_set(uint32_t value)6360 __INLINE void riu_rwnxagcantloss_set(uint32_t value)
6361 {
6362 PLATFORM_REG_WRITE(RIU_RWNXAGCANTLOSS_ADDR, value);
6363 }
6364
6365 // field definitions
6366 /// RFLOSSANT1DB field mask
6367 #define RIU_RFLOSSANT1DB_MASK ((uint32_t)0x00000F00)
6368 /// RFLOSSANT1DB field LSB position
6369 #define RIU_RFLOSSANT1DB_LSB 8
6370 /// RFLOSSANT1DB field width
6371 #define RIU_RFLOSSANT1DB_WIDTH ((uint32_t)0x00000004)
6372 /// RFLOSSANT0DB field mask
6373 #define RIU_RFLOSSANT0DB_MASK ((uint32_t)0x0000000F)
6374 /// RFLOSSANT0DB field LSB position
6375 #define RIU_RFLOSSANT0DB_LSB 0
6376 /// RFLOSSANT0DB field width
6377 #define RIU_RFLOSSANT0DB_WIDTH ((uint32_t)0x00000004)
6378
6379 /// RFLOSSANT1DB field reset value
6380 #define RIU_RFLOSSANT1DB_RST 0x0
6381 /// RFLOSSANT0DB field reset value
6382 #define RIU_RFLOSSANT0DB_RST 0x0
6383
6384 /**
6385 * @brief Constructs a value for the RWNXAGCANTLOSS register given values for its fields
6386 * and writes the value to the register.
6387 *
6388 * @param[in] rflossant1db - The value to use for the RFLOSSANT1DB field.
6389 * @param[in] rflossant0db - The value to use for the RFLOSSANT0DB field.
6390 */
riu_rwnxagcantloss_pack(uint8_t rflossant1db,uint8_t rflossant0db)6391 __INLINE void riu_rwnxagcantloss_pack(uint8_t rflossant1db, uint8_t rflossant0db)
6392 {
6393 PLATFORM_REG_WRITE(RIU_RWNXAGCANTLOSS_ADDR, ((uint32_t)rflossant1db << 8) | ((uint32_t)rflossant0db << 0));
6394 }
6395
6396 /**
6397 * @brief Unpacks RWNXAGCANTLOSS's fields from current value of the RWNXAGCANTLOSS register.
6398 *
6399 * Reads the RWNXAGCANTLOSS register and populates all the _field variables with the corresponding
6400 * values from the register.
6401 *
6402 * @param[out] rflossant1db - Will be populated with the current value of this field from the register.
6403 * @param[out] rflossant0db - Will be populated with the current value of this field from the register.
6404 */
riu_rwnxagcantloss_unpack(uint8_t * rflossant1db,uint8_t * rflossant0db)6405 __INLINE void riu_rwnxagcantloss_unpack(uint8_t* rflossant1db, uint8_t* rflossant0db)
6406 {
6407 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCANTLOSS_ADDR);
6408
6409 *rflossant1db = (localVal & ((uint32_t)0x00000F00)) >> 8;
6410 *rflossant0db = (localVal & ((uint32_t)0x0000000F)) >> 0;
6411 }
6412
6413 /**
6414 * @brief Returns the current value of the RFLOSSANT1DB field in the RWNXAGCANTLOSS register.
6415 *
6416 * The RWNXAGCANTLOSS register will be read and the RFLOSSANT1DB field's value will be returned.
6417 *
6418 * @return The current value of the RFLOSSANT1DB field in the RWNXAGCANTLOSS register.
6419 */
riu_rflossant1db_getf(void)6420 __INLINE uint8_t riu_rflossant1db_getf(void)
6421 {
6422 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCANTLOSS_ADDR);
6423 return ((localVal & ((uint32_t)0x00000F00)) >> 8);
6424 }
6425
6426 /**
6427 * @brief Sets the RFLOSSANT1DB field of the RWNXAGCANTLOSS register.
6428 *
6429 * The RWNXAGCANTLOSS register will be read, modified to contain the new field value, and written.
6430 *
6431 * @param[in] rflossant1db - The value to set the field to.
6432 */
riu_rflossant1db_setf(uint8_t rflossant1db)6433 __INLINE void riu_rflossant1db_setf(uint8_t rflossant1db)
6434 {
6435 PLATFORM_REG_WRITE(RIU_RWNXAGCANTLOSS_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCANTLOSS_ADDR) & ~((uint32_t)0x00000F00)) | ((uint32_t)rflossant1db << 8));
6436 }
6437
6438 /**
6439 * @brief Returns the current value of the RFLOSSANT0DB field in the RWNXAGCANTLOSS register.
6440 *
6441 * The RWNXAGCANTLOSS register will be read and the RFLOSSANT0DB field's value will be returned.
6442 *
6443 * @return The current value of the RFLOSSANT0DB field in the RWNXAGCANTLOSS register.
6444 */
riu_rflossant0db_getf(void)6445 __INLINE uint8_t riu_rflossant0db_getf(void)
6446 {
6447 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCANTLOSS_ADDR);
6448 return ((localVal & ((uint32_t)0x0000000F)) >> 0);
6449 }
6450
6451 /**
6452 * @brief Sets the RFLOSSANT0DB field of the RWNXAGCANTLOSS register.
6453 *
6454 * The RWNXAGCANTLOSS register will be read, modified to contain the new field value, and written.
6455 *
6456 * @param[in] rflossant0db - The value to set the field to.
6457 */
riu_rflossant0db_setf(uint8_t rflossant0db)6458 __INLINE void riu_rflossant0db_setf(uint8_t rflossant0db)
6459 {
6460 PLATFORM_REG_WRITE(RIU_RWNXAGCANTLOSS_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCANTLOSS_ADDR) & ~((uint32_t)0x0000000F)) | ((uint32_t)rflossant0db << 0));
6461 }
6462
6463 /// @}
6464
6465 /**
6466 * @name RWNXAGCGAINRANGE register definitions
6467 * <table>
6468 * <caption id="RWNXAGCGAINRANGE_BF">RWNXAGCGAINRANGE bitfields</caption>
6469 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
6470 * <tr><td>30:24 <td> RFGAINMAX4DETDB <td>R <td>R/W <td>0x42
6471 * <tr><td>22:16 <td> RFGAINMIN4DETDB <td>R <td>R/W <td>0x0
6472 * <tr><td>14:08 <td> RFGAINMAXDB <td>R <td>R/W <td>0x42
6473 * <tr><td>06:00 <td> RFGAINMINDB <td>R <td>R/W <td>0x0
6474 * </table>
6475 *
6476 * @{
6477 */
6478
6479 /// Address of the RWNXAGCGAINRANGE register
6480 #define RIU_RWNXAGCGAINRANGE_ADDR 0x4033B304
6481 /// Offset of the RWNXAGCGAINRANGE register from the base address
6482 #define RIU_RWNXAGCGAINRANGE_OFFSET 0x00000304
6483 /// Index of the RWNXAGCGAINRANGE register
6484 #define RIU_RWNXAGCGAINRANGE_INDEX 0x000000C1
6485 /// Reset value of the RWNXAGCGAINRANGE register
6486 #define RIU_RWNXAGCGAINRANGE_RESET 0x42004200
6487
6488 /**
6489 * @brief Returns the current value of the RWNXAGCGAINRANGE register.
6490 * The RWNXAGCGAINRANGE register will be read and its value returned.
6491 * @return The current value of the RWNXAGCGAINRANGE register.
6492 */
riu_rwnxagcgainrange_get(void)6493 __INLINE uint32_t riu_rwnxagcgainrange_get(void)
6494 {
6495 return PLATFORM_REG_READ(RIU_RWNXAGCGAINRANGE_ADDR);
6496 }
6497
6498 /**
6499 * @brief Sets the RWNXAGCGAINRANGE register to a value.
6500 * The RWNXAGCGAINRANGE register will be written.
6501 * @param value - The value to write.
6502 */
riu_rwnxagcgainrange_set(uint32_t value)6503 __INLINE void riu_rwnxagcgainrange_set(uint32_t value)
6504 {
6505 PLATFORM_REG_WRITE(RIU_RWNXAGCGAINRANGE_ADDR, value);
6506 }
6507
6508 // field definitions
6509 /// RFGAINMAX4DETDB field mask
6510 #define RIU_RFGAINMAX4DETDB_MASK ((uint32_t)0x7F000000)
6511 /// RFGAINMAX4DETDB field LSB position
6512 #define RIU_RFGAINMAX4DETDB_LSB 24
6513 /// RFGAINMAX4DETDB field width
6514 #define RIU_RFGAINMAX4DETDB_WIDTH ((uint32_t)0x00000007)
6515 /// RFGAINMIN4DETDB field mask
6516 #define RIU_RFGAINMIN4DETDB_MASK ((uint32_t)0x007F0000)
6517 /// RFGAINMIN4DETDB field LSB position
6518 #define RIU_RFGAINMIN4DETDB_LSB 16
6519 /// RFGAINMIN4DETDB field width
6520 #define RIU_RFGAINMIN4DETDB_WIDTH ((uint32_t)0x00000007)
6521 /// RFGAINMAXDB field mask
6522 #define RIU_RFGAINMAXDB_MASK ((uint32_t)0x00007F00)
6523 /// RFGAINMAXDB field LSB position
6524 #define RIU_RFGAINMAXDB_LSB 8
6525 /// RFGAINMAXDB field width
6526 #define RIU_RFGAINMAXDB_WIDTH ((uint32_t)0x00000007)
6527 /// RFGAINMINDB field mask
6528 #define RIU_RFGAINMINDB_MASK ((uint32_t)0x0000007F)
6529 /// RFGAINMINDB field LSB position
6530 #define RIU_RFGAINMINDB_LSB 0
6531 /// RFGAINMINDB field width
6532 #define RIU_RFGAINMINDB_WIDTH ((uint32_t)0x00000007)
6533
6534 /// RFGAINMAX4DETDB field reset value
6535 #define RIU_RFGAINMAX4DETDB_RST 0x42
6536 /// RFGAINMIN4DETDB field reset value
6537 #define RIU_RFGAINMIN4DETDB_RST 0x0
6538 /// RFGAINMAXDB field reset value
6539 #define RIU_RFGAINMAXDB_RST 0x42
6540 /// RFGAINMINDB field reset value
6541 #define RIU_RFGAINMINDB_RST 0x0
6542
6543 /**
6544 * @brief Constructs a value for the RWNXAGCGAINRANGE register given values for its fields
6545 * and writes the value to the register.
6546 *
6547 * @param[in] rfgainmax4detdb - The value to use for the RFGAINMAX4DETDB field.
6548 * @param[in] rfgainmin4detdb - The value to use for the RFGAINMIN4DETDB field.
6549 * @param[in] rfgainmaxdb - The value to use for the RFGAINMAXDB field.
6550 * @param[in] rfgainmindb - The value to use for the RFGAINMINDB field.
6551 */
riu_rwnxagcgainrange_pack(uint8_t rfgainmax4detdb,uint8_t rfgainmin4detdb,uint8_t rfgainmaxdb,uint8_t rfgainmindb)6552 __INLINE void riu_rwnxagcgainrange_pack(uint8_t rfgainmax4detdb, uint8_t rfgainmin4detdb, uint8_t rfgainmaxdb, uint8_t rfgainmindb)
6553 {
6554 PLATFORM_REG_WRITE(RIU_RWNXAGCGAINRANGE_ADDR, ((uint32_t)rfgainmax4detdb << 24) | ((uint32_t)rfgainmin4detdb << 16) | ((uint32_t)rfgainmaxdb << 8) | ((uint32_t)rfgainmindb << 0));
6555 }
6556
6557 /**
6558 * @brief Unpacks RWNXAGCGAINRANGE's fields from current value of the RWNXAGCGAINRANGE register.
6559 *
6560 * Reads the RWNXAGCGAINRANGE register and populates all the _field variables with the corresponding
6561 * values from the register.
6562 *
6563 * @param[out] rfgainmax4detdb - Will be populated with the current value of this field from the register.
6564 * @param[out] rfgainmin4detdb - Will be populated with the current value of this field from the register.
6565 * @param[out] rfgainmaxdb - Will be populated with the current value of this field from the register.
6566 * @param[out] rfgainmindb - Will be populated with the current value of this field from the register.
6567 */
riu_rwnxagcgainrange_unpack(uint8_t * rfgainmax4detdb,uint8_t * rfgainmin4detdb,uint8_t * rfgainmaxdb,uint8_t * rfgainmindb)6568 __INLINE void riu_rwnxagcgainrange_unpack(uint8_t* rfgainmax4detdb, uint8_t* rfgainmin4detdb, uint8_t* rfgainmaxdb, uint8_t* rfgainmindb)
6569 {
6570 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCGAINRANGE_ADDR);
6571
6572 *rfgainmax4detdb = (localVal & ((uint32_t)0x7F000000)) >> 24;
6573 *rfgainmin4detdb = (localVal & ((uint32_t)0x007F0000)) >> 16;
6574 *rfgainmaxdb = (localVal & ((uint32_t)0x00007F00)) >> 8;
6575 *rfgainmindb = (localVal & ((uint32_t)0x0000007F)) >> 0;
6576 }
6577
6578 /**
6579 * @brief Returns the current value of the RFGAINMAX4DETDB field in the RWNXAGCGAINRANGE register.
6580 *
6581 * The RWNXAGCGAINRANGE register will be read and the RFGAINMAX4DETDB field's value will be returned.
6582 *
6583 * @return The current value of the RFGAINMAX4DETDB field in the RWNXAGCGAINRANGE register.
6584 */
riu_rfgainmax4detdb_getf(void)6585 __INLINE uint8_t riu_rfgainmax4detdb_getf(void)
6586 {
6587 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCGAINRANGE_ADDR);
6588 return ((localVal & ((uint32_t)0x7F000000)) >> 24);
6589 }
6590
6591 /**
6592 * @brief Sets the RFGAINMAX4DETDB field of the RWNXAGCGAINRANGE register.
6593 *
6594 * The RWNXAGCGAINRANGE register will be read, modified to contain the new field value, and written.
6595 *
6596 * @param[in] rfgainmax4detdb - The value to set the field to.
6597 */
riu_rfgainmax4detdb_setf(uint8_t rfgainmax4detdb)6598 __INLINE void riu_rfgainmax4detdb_setf(uint8_t rfgainmax4detdb)
6599 {
6600 PLATFORM_REG_WRITE(RIU_RWNXAGCGAINRANGE_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCGAINRANGE_ADDR) & ~((uint32_t)0x7F000000)) | ((uint32_t)rfgainmax4detdb << 24));
6601 }
6602
6603 /**
6604 * @brief Returns the current value of the RFGAINMIN4DETDB field in the RWNXAGCGAINRANGE register.
6605 *
6606 * The RWNXAGCGAINRANGE register will be read and the RFGAINMIN4DETDB field's value will be returned.
6607 *
6608 * @return The current value of the RFGAINMIN4DETDB field in the RWNXAGCGAINRANGE register.
6609 */
riu_rfgainmin4detdb_getf(void)6610 __INLINE uint8_t riu_rfgainmin4detdb_getf(void)
6611 {
6612 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCGAINRANGE_ADDR);
6613 return ((localVal & ((uint32_t)0x007F0000)) >> 16);
6614 }
6615
6616 /**
6617 * @brief Sets the RFGAINMIN4DETDB field of the RWNXAGCGAINRANGE register.
6618 *
6619 * The RWNXAGCGAINRANGE register will be read, modified to contain the new field value, and written.
6620 *
6621 * @param[in] rfgainmin4detdb - The value to set the field to.
6622 */
riu_rfgainmin4detdb_setf(uint8_t rfgainmin4detdb)6623 __INLINE void riu_rfgainmin4detdb_setf(uint8_t rfgainmin4detdb)
6624 {
6625 PLATFORM_REG_WRITE(RIU_RWNXAGCGAINRANGE_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCGAINRANGE_ADDR) & ~((uint32_t)0x007F0000)) | ((uint32_t)rfgainmin4detdb << 16));
6626 }
6627
6628 /**
6629 * @brief Returns the current value of the RFGAINMAXDB field in the RWNXAGCGAINRANGE register.
6630 *
6631 * The RWNXAGCGAINRANGE register will be read and the RFGAINMAXDB field's value will be returned.
6632 *
6633 * @return The current value of the RFGAINMAXDB field in the RWNXAGCGAINRANGE register.
6634 */
riu_rfgainmaxdb_getf(void)6635 __INLINE uint8_t riu_rfgainmaxdb_getf(void)
6636 {
6637 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCGAINRANGE_ADDR);
6638 return ((localVal & ((uint32_t)0x00007F00)) >> 8);
6639 }
6640
6641 /**
6642 * @brief Sets the RFGAINMAXDB field of the RWNXAGCGAINRANGE register.
6643 *
6644 * The RWNXAGCGAINRANGE register will be read, modified to contain the new field value, and written.
6645 *
6646 * @param[in] rfgainmaxdb - The value to set the field to.
6647 */
riu_rfgainmaxdb_setf(uint8_t rfgainmaxdb)6648 __INLINE void riu_rfgainmaxdb_setf(uint8_t rfgainmaxdb)
6649 {
6650 PLATFORM_REG_WRITE(RIU_RWNXAGCGAINRANGE_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCGAINRANGE_ADDR) & ~((uint32_t)0x00007F00)) | ((uint32_t)rfgainmaxdb << 8));
6651 }
6652
6653 /**
6654 * @brief Returns the current value of the RFGAINMINDB field in the RWNXAGCGAINRANGE register.
6655 *
6656 * The RWNXAGCGAINRANGE register will be read and the RFGAINMINDB field's value will be returned.
6657 *
6658 * @return The current value of the RFGAINMINDB field in the RWNXAGCGAINRANGE register.
6659 */
riu_rfgainmindb_getf(void)6660 __INLINE uint8_t riu_rfgainmindb_getf(void)
6661 {
6662 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCGAINRANGE_ADDR);
6663 return ((localVal & ((uint32_t)0x0000007F)) >> 0);
6664 }
6665
6666 /**
6667 * @brief Sets the RFGAINMINDB field of the RWNXAGCGAINRANGE register.
6668 *
6669 * The RWNXAGCGAINRANGE register will be read, modified to contain the new field value, and written.
6670 *
6671 * @param[in] rfgainmindb - The value to set the field to.
6672 */
riu_rfgainmindb_setf(uint8_t rfgainmindb)6673 __INLINE void riu_rfgainmindb_setf(uint8_t rfgainmindb)
6674 {
6675 PLATFORM_REG_WRITE(RIU_RWNXAGCGAINRANGE_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCGAINRANGE_ADDR) & ~((uint32_t)0x0000007F)) | ((uint32_t)rfgainmindb << 0));
6676 }
6677
6678 /// @}
6679
6680 /**
6681 * @name RWNXAGCDIGGAINCONF register definitions
6682 * <table>
6683 * <caption id="RWNXAGCDIGGAINCONF_BF">RWNXAGCDIGGAINCONF bitfields</caption>
6684 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
6685 * <tr><td>19:16 <td> DIGGAIN80VS20 <td>R <td>R/W <td>0x0
6686 * <tr><td>03:00 <td> DIGGAIN40VS20 <td>R <td>R/W <td>0x0
6687 * </table>
6688 *
6689 * @{
6690 */
6691
6692 /// Address of the RWNXAGCDIGGAINCONF register
6693 #define RIU_RWNXAGCDIGGAINCONF_ADDR 0x4033B308
6694 /// Offset of the RWNXAGCDIGGAINCONF register from the base address
6695 #define RIU_RWNXAGCDIGGAINCONF_OFFSET 0x00000308
6696 /// Index of the RWNXAGCDIGGAINCONF register
6697 #define RIU_RWNXAGCDIGGAINCONF_INDEX 0x000000C2
6698 /// Reset value of the RWNXAGCDIGGAINCONF register
6699 #define RIU_RWNXAGCDIGGAINCONF_RESET 0x00000000
6700
6701 /**
6702 * @brief Returns the current value of the RWNXAGCDIGGAINCONF register.
6703 * The RWNXAGCDIGGAINCONF register will be read and its value returned.
6704 * @return The current value of the RWNXAGCDIGGAINCONF register.
6705 */
riu_rwnxagcdiggainconf_get(void)6706 __INLINE uint32_t riu_rwnxagcdiggainconf_get(void)
6707 {
6708 return PLATFORM_REG_READ(RIU_RWNXAGCDIGGAINCONF_ADDR);
6709 }
6710
6711 /**
6712 * @brief Sets the RWNXAGCDIGGAINCONF register to a value.
6713 * The RWNXAGCDIGGAINCONF register will be written.
6714 * @param value - The value to write.
6715 */
riu_rwnxagcdiggainconf_set(uint32_t value)6716 __INLINE void riu_rwnxagcdiggainconf_set(uint32_t value)
6717 {
6718 PLATFORM_REG_WRITE(RIU_RWNXAGCDIGGAINCONF_ADDR, value);
6719 }
6720
6721 // field definitions
6722 /// DIGGAIN80VS20 field mask
6723 #define RIU_DIGGAIN80VS20_MASK ((uint32_t)0x000F0000)
6724 /// DIGGAIN80VS20 field LSB position
6725 #define RIU_DIGGAIN80VS20_LSB 16
6726 /// DIGGAIN80VS20 field width
6727 #define RIU_DIGGAIN80VS20_WIDTH ((uint32_t)0x00000004)
6728 /// DIGGAIN40VS20 field mask
6729 #define RIU_DIGGAIN40VS20_MASK ((uint32_t)0x0000000F)
6730 /// DIGGAIN40VS20 field LSB position
6731 #define RIU_DIGGAIN40VS20_LSB 0
6732 /// DIGGAIN40VS20 field width
6733 #define RIU_DIGGAIN40VS20_WIDTH ((uint32_t)0x00000004)
6734
6735 /// DIGGAIN80VS20 field reset value
6736 #define RIU_DIGGAIN80VS20_RST 0x0
6737 /// DIGGAIN40VS20 field reset value
6738 #define RIU_DIGGAIN40VS20_RST 0x0
6739
6740 /**
6741 * @brief Constructs a value for the RWNXAGCDIGGAINCONF register given values for its fields
6742 * and writes the value to the register.
6743 *
6744 * @param[in] diggain80vs20 - The value to use for the DIGGAIN80VS20 field.
6745 * @param[in] diggain40vs20 - The value to use for the DIGGAIN40VS20 field.
6746 */
riu_rwnxagcdiggainconf_pack(uint8_t diggain80vs20,uint8_t diggain40vs20)6747 __INLINE void riu_rwnxagcdiggainconf_pack(uint8_t diggain80vs20, uint8_t diggain40vs20)
6748 {
6749 PLATFORM_REG_WRITE(RIU_RWNXAGCDIGGAINCONF_ADDR, ((uint32_t)diggain80vs20 << 16) | ((uint32_t)diggain40vs20 << 0));
6750 }
6751
6752 /**
6753 * @brief Unpacks RWNXAGCDIGGAINCONF's fields from current value of the RWNXAGCDIGGAINCONF register.
6754 *
6755 * Reads the RWNXAGCDIGGAINCONF register and populates all the _field variables with the corresponding
6756 * values from the register.
6757 *
6758 * @param[out] diggain80vs20 - Will be populated with the current value of this field from the register.
6759 * @param[out] diggain40vs20 - Will be populated with the current value of this field from the register.
6760 */
riu_rwnxagcdiggainconf_unpack(uint8_t * diggain80vs20,uint8_t * diggain40vs20)6761 __INLINE void riu_rwnxagcdiggainconf_unpack(uint8_t* diggain80vs20, uint8_t* diggain40vs20)
6762 {
6763 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDIGGAINCONF_ADDR);
6764
6765 *diggain80vs20 = (localVal & ((uint32_t)0x000F0000)) >> 16;
6766 *diggain40vs20 = (localVal & ((uint32_t)0x0000000F)) >> 0;
6767 }
6768
6769 /**
6770 * @brief Returns the current value of the DIGGAIN80VS20 field in the RWNXAGCDIGGAINCONF register.
6771 *
6772 * The RWNXAGCDIGGAINCONF register will be read and the DIGGAIN80VS20 field's value will be returned.
6773 *
6774 * @return The current value of the DIGGAIN80VS20 field in the RWNXAGCDIGGAINCONF register.
6775 */
riu_diggain80vs20_getf(void)6776 __INLINE uint8_t riu_diggain80vs20_getf(void)
6777 {
6778 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDIGGAINCONF_ADDR);
6779 return ((localVal & ((uint32_t)0x000F0000)) >> 16);
6780 }
6781
6782 /**
6783 * @brief Sets the DIGGAIN80VS20 field of the RWNXAGCDIGGAINCONF register.
6784 *
6785 * The RWNXAGCDIGGAINCONF register will be read, modified to contain the new field value, and written.
6786 *
6787 * @param[in] diggain80vs20 - The value to set the field to.
6788 */
riu_diggain80vs20_setf(uint8_t diggain80vs20)6789 __INLINE void riu_diggain80vs20_setf(uint8_t diggain80vs20)
6790 {
6791 PLATFORM_REG_WRITE(RIU_RWNXAGCDIGGAINCONF_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDIGGAINCONF_ADDR) & ~((uint32_t)0x000F0000)) | ((uint32_t)diggain80vs20 << 16));
6792 }
6793
6794 /**
6795 * @brief Returns the current value of the DIGGAIN40VS20 field in the RWNXAGCDIGGAINCONF register.
6796 *
6797 * The RWNXAGCDIGGAINCONF register will be read and the DIGGAIN40VS20 field's value will be returned.
6798 *
6799 * @return The current value of the DIGGAIN40VS20 field in the RWNXAGCDIGGAINCONF register.
6800 */
riu_diggain40vs20_getf(void)6801 __INLINE uint8_t riu_diggain40vs20_getf(void)
6802 {
6803 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDIGGAINCONF_ADDR);
6804 return ((localVal & ((uint32_t)0x0000000F)) >> 0);
6805 }
6806
6807 /**
6808 * @brief Sets the DIGGAIN40VS20 field of the RWNXAGCDIGGAINCONF register.
6809 *
6810 * The RWNXAGCDIGGAINCONF register will be read, modified to contain the new field value, and written.
6811 *
6812 * @param[in] diggain40vs20 - The value to set the field to.
6813 */
riu_diggain40vs20_setf(uint8_t diggain40vs20)6814 __INLINE void riu_diggain40vs20_setf(uint8_t diggain40vs20)
6815 {
6816 PLATFORM_REG_WRITE(RIU_RWNXAGCDIGGAINCONF_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDIGGAINCONF_ADDR) & ~((uint32_t)0x0000000F)) | ((uint32_t)diggain40vs20 << 0));
6817 }
6818
6819 /// @}
6820
6821 #if RW_NX_AGC_SNR_EN
6822 /**
6823 * @name RWNXAGCNOISECONF register definitions
6824 * <table>
6825 * <caption id="RWNXAGCNOISECONF_BF">RWNXAGCNOISECONF bitfields</caption>
6826 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
6827 * <tr><td>16 <td> SNRMEASSEL <td>R <td>R/W <td>0
6828 * </table>
6829 *
6830 * @{
6831 */
6832
6833 /// Address of the RWNXAGCNOISECONF register
6834 #define RIU_RWNXAGCNOISECONF_ADDR 0x4033B30C
6835 /// Offset of the RWNXAGCNOISECONF register from the base address
6836 #define RIU_RWNXAGCNOISECONF_OFFSET 0x0000030C
6837 /// Index of the RWNXAGCNOISECONF register
6838 #define RIU_RWNXAGCNOISECONF_INDEX 0x000000C3
6839 /// Reset value of the RWNXAGCNOISECONF register
6840 #define RIU_RWNXAGCNOISECONF_RESET 0x00000000
6841
6842 /**
6843 * @brief Returns the current value of the RWNXAGCNOISECONF register.
6844 * The RWNXAGCNOISECONF register will be read and its value returned.
6845 * @return The current value of the RWNXAGCNOISECONF register.
6846 */
riu_rwnxagcnoiseconf_get(void)6847 __INLINE uint32_t riu_rwnxagcnoiseconf_get(void)
6848 {
6849 return PLATFORM_REG_READ(RIU_RWNXAGCNOISECONF_ADDR);
6850 }
6851
6852 /**
6853 * @brief Sets the RWNXAGCNOISECONF register to a value.
6854 * The RWNXAGCNOISECONF register will be written.
6855 * @param value - The value to write.
6856 */
riu_rwnxagcnoiseconf_set(uint32_t value)6857 __INLINE void riu_rwnxagcnoiseconf_set(uint32_t value)
6858 {
6859 PLATFORM_REG_WRITE(RIU_RWNXAGCNOISECONF_ADDR, value);
6860 }
6861
6862 // field definitions
6863 /// SNRMEASSEL field bit
6864 #define RIU_SNRMEASSEL_BIT ((uint32_t)0x00010000)
6865 /// SNRMEASSEL field position
6866 #define RIU_SNRMEASSEL_POS 16
6867
6868 /// SNRMEASSEL field reset value
6869 #define RIU_SNRMEASSEL_RST 0x0
6870
6871 /**
6872 * @brief Returns the current value of the SNRMEASSEL field in the RWNXAGCNOISECONF register.
6873 *
6874 * The RWNXAGCNOISECONF register will be read and the SNRMEASSEL field's value will be returned.
6875 *
6876 * @return The current value of the SNRMEASSEL field in the RWNXAGCNOISECONF register.
6877 */
riu_snrmeassel_getf(void)6878 __INLINE uint8_t riu_snrmeassel_getf(void)
6879 {
6880 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCNOISECONF_ADDR);
6881 return (localVal >> 16);
6882 }
6883
6884 /**
6885 * @brief Sets the SNRMEASSEL field of the RWNXAGCNOISECONF register.
6886 *
6887 * The RWNXAGCNOISECONF register will be read, modified to contain the new field value, and written.
6888 *
6889 * @param[in] snrmeassel - The value to set the field to.
6890 */
riu_snrmeassel_setf(uint8_t snrmeassel)6891 __INLINE void riu_snrmeassel_setf(uint8_t snrmeassel)
6892 {
6893 PLATFORM_REG_WRITE(RIU_RWNXAGCNOISECONF_ADDR, (uint32_t)snrmeassel << 16);
6894 }
6895
6896 #endif // RW_NX_AGC_SNR_EN
6897 /// @}
6898
6899 /**
6900 * @name RWNXAGCACI20MARG0 register definitions
6901 * <table>
6902 * <caption id="RWNXAGCACI20MARG0_BF">RWNXAGCACI20MARG0 bitfields</caption>
6903 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
6904 * <tr><td>29:24 <td> ACI20MARGMCS3 <td>R <td>R/W <td>0x2
6905 * <tr><td>21:16 <td> ACI20MARGMCS2 <td>R <td>R/W <td>0x4
6906 * <tr><td>13:08 <td> ACI20MARGMCS1 <td>R <td>R/W <td>0x5
6907 * <tr><td>05:00 <td> ACI20MARGMCS0 <td>R <td>R/W <td>0x7
6908 * </table>
6909 *
6910 * @{
6911 */
6912
6913 /// Address of the RWNXAGCACI20MARG0 register
6914 #define RIU_RWNXAGCACI20MARG0_ADDR 0x4033B340
6915 /// Offset of the RWNXAGCACI20MARG0 register from the base address
6916 #define RIU_RWNXAGCACI20MARG0_OFFSET 0x00000340
6917 /// Index of the RWNXAGCACI20MARG0 register
6918 #define RIU_RWNXAGCACI20MARG0_INDEX 0x000000D0
6919 /// Reset value of the RWNXAGCACI20MARG0 register
6920 #define RIU_RWNXAGCACI20MARG0_RESET 0x02040507
6921
6922 /**
6923 * @brief Returns the current value of the RWNXAGCACI20MARG0 register.
6924 * The RWNXAGCACI20MARG0 register will be read and its value returned.
6925 * @return The current value of the RWNXAGCACI20MARG0 register.
6926 */
riu_rwnxagcaci20marg0_get(void)6927 __INLINE uint32_t riu_rwnxagcaci20marg0_get(void)
6928 {
6929 return PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG0_ADDR);
6930 }
6931
6932 /**
6933 * @brief Sets the RWNXAGCACI20MARG0 register to a value.
6934 * The RWNXAGCACI20MARG0 register will be written.
6935 * @param value - The value to write.
6936 */
riu_rwnxagcaci20marg0_set(uint32_t value)6937 __INLINE void riu_rwnxagcaci20marg0_set(uint32_t value)
6938 {
6939 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG0_ADDR, value);
6940 }
6941
6942 // field definitions
6943 /// ACI20MARGMCS3 field mask
6944 #define RIU_ACI20MARGMCS3_MASK ((uint32_t)0x3F000000)
6945 /// ACI20MARGMCS3 field LSB position
6946 #define RIU_ACI20MARGMCS3_LSB 24
6947 /// ACI20MARGMCS3 field width
6948 #define RIU_ACI20MARGMCS3_WIDTH ((uint32_t)0x00000006)
6949 /// ACI20MARGMCS2 field mask
6950 #define RIU_ACI20MARGMCS2_MASK ((uint32_t)0x003F0000)
6951 /// ACI20MARGMCS2 field LSB position
6952 #define RIU_ACI20MARGMCS2_LSB 16
6953 /// ACI20MARGMCS2 field width
6954 #define RIU_ACI20MARGMCS2_WIDTH ((uint32_t)0x00000006)
6955 /// ACI20MARGMCS1 field mask
6956 #define RIU_ACI20MARGMCS1_MASK ((uint32_t)0x00003F00)
6957 /// ACI20MARGMCS1 field LSB position
6958 #define RIU_ACI20MARGMCS1_LSB 8
6959 /// ACI20MARGMCS1 field width
6960 #define RIU_ACI20MARGMCS1_WIDTH ((uint32_t)0x00000006)
6961 /// ACI20MARGMCS0 field mask
6962 #define RIU_ACI20MARGMCS0_MASK ((uint32_t)0x0000003F)
6963 /// ACI20MARGMCS0 field LSB position
6964 #define RIU_ACI20MARGMCS0_LSB 0
6965 /// ACI20MARGMCS0 field width
6966 #define RIU_ACI20MARGMCS0_WIDTH ((uint32_t)0x00000006)
6967
6968 /// ACI20MARGMCS3 field reset value
6969 #define RIU_ACI20MARGMCS3_RST 0x2
6970 /// ACI20MARGMCS2 field reset value
6971 #define RIU_ACI20MARGMCS2_RST 0x4
6972 /// ACI20MARGMCS1 field reset value
6973 #define RIU_ACI20MARGMCS1_RST 0x5
6974 /// ACI20MARGMCS0 field reset value
6975 #define RIU_ACI20MARGMCS0_RST 0x7
6976
6977 /**
6978 * @brief Constructs a value for the RWNXAGCACI20MARG0 register given values for its fields
6979 * and writes the value to the register.
6980 *
6981 * @param[in] aci20margmcs3 - The value to use for the ACI20MARGMCS3 field.
6982 * @param[in] aci20margmcs2 - The value to use for the ACI20MARGMCS2 field.
6983 * @param[in] aci20margmcs1 - The value to use for the ACI20MARGMCS1 field.
6984 * @param[in] aci20margmcs0 - The value to use for the ACI20MARGMCS0 field.
6985 */
riu_rwnxagcaci20marg0_pack(uint8_t aci20margmcs3,uint8_t aci20margmcs2,uint8_t aci20margmcs1,uint8_t aci20margmcs0)6986 __INLINE void riu_rwnxagcaci20marg0_pack(uint8_t aci20margmcs3, uint8_t aci20margmcs2, uint8_t aci20margmcs1, uint8_t aci20margmcs0)
6987 {
6988 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG0_ADDR, ((uint32_t)aci20margmcs3 << 24) | ((uint32_t)aci20margmcs2 << 16) | ((uint32_t)aci20margmcs1 << 8) | ((uint32_t)aci20margmcs0 << 0));
6989 }
6990
6991 /**
6992 * @brief Unpacks RWNXAGCACI20MARG0's fields from current value of the RWNXAGCACI20MARG0 register.
6993 *
6994 * Reads the RWNXAGCACI20MARG0 register and populates all the _field variables with the corresponding
6995 * values from the register.
6996 *
6997 * @param[out] aci20margmcs3 - Will be populated with the current value of this field from the register.
6998 * @param[out] aci20margmcs2 - Will be populated with the current value of this field from the register.
6999 * @param[out] aci20margmcs1 - Will be populated with the current value of this field from the register.
7000 * @param[out] aci20margmcs0 - Will be populated with the current value of this field from the register.
7001 */
riu_rwnxagcaci20marg0_unpack(uint8_t * aci20margmcs3,uint8_t * aci20margmcs2,uint8_t * aci20margmcs1,uint8_t * aci20margmcs0)7002 __INLINE void riu_rwnxagcaci20marg0_unpack(uint8_t* aci20margmcs3, uint8_t* aci20margmcs2, uint8_t* aci20margmcs1, uint8_t* aci20margmcs0)
7003 {
7004 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG0_ADDR);
7005
7006 *aci20margmcs3 = (localVal & ((uint32_t)0x3F000000)) >> 24;
7007 *aci20margmcs2 = (localVal & ((uint32_t)0x003F0000)) >> 16;
7008 *aci20margmcs1 = (localVal & ((uint32_t)0x00003F00)) >> 8;
7009 *aci20margmcs0 = (localVal & ((uint32_t)0x0000003F)) >> 0;
7010 }
7011
7012 /**
7013 * @brief Returns the current value of the ACI20MARGMCS3 field in the RWNXAGCACI20MARG0 register.
7014 *
7015 * The RWNXAGCACI20MARG0 register will be read and the ACI20MARGMCS3 field's value will be returned.
7016 *
7017 * @return The current value of the ACI20MARGMCS3 field in the RWNXAGCACI20MARG0 register.
7018 */
riu_aci20margmcs3_getf(void)7019 __INLINE uint8_t riu_aci20margmcs3_getf(void)
7020 {
7021 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG0_ADDR);
7022 return ((localVal & ((uint32_t)0x3F000000)) >> 24);
7023 }
7024
7025 /**
7026 * @brief Sets the ACI20MARGMCS3 field of the RWNXAGCACI20MARG0 register.
7027 *
7028 * The RWNXAGCACI20MARG0 register will be read, modified to contain the new field value, and written.
7029 *
7030 * @param[in] aci20margmcs3 - The value to set the field to.
7031 */
riu_aci20margmcs3_setf(uint8_t aci20margmcs3)7032 __INLINE void riu_aci20margmcs3_setf(uint8_t aci20margmcs3)
7033 {
7034 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG0_ADDR) & ~((uint32_t)0x3F000000)) | ((uint32_t)aci20margmcs3 << 24));
7035 }
7036
7037 /**
7038 * @brief Returns the current value of the ACI20MARGMCS2 field in the RWNXAGCACI20MARG0 register.
7039 *
7040 * The RWNXAGCACI20MARG0 register will be read and the ACI20MARGMCS2 field's value will be returned.
7041 *
7042 * @return The current value of the ACI20MARGMCS2 field in the RWNXAGCACI20MARG0 register.
7043 */
riu_aci20margmcs2_getf(void)7044 __INLINE uint8_t riu_aci20margmcs2_getf(void)
7045 {
7046 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG0_ADDR);
7047 return ((localVal & ((uint32_t)0x003F0000)) >> 16);
7048 }
7049
7050 /**
7051 * @brief Sets the ACI20MARGMCS2 field of the RWNXAGCACI20MARG0 register.
7052 *
7053 * The RWNXAGCACI20MARG0 register will be read, modified to contain the new field value, and written.
7054 *
7055 * @param[in] aci20margmcs2 - The value to set the field to.
7056 */
riu_aci20margmcs2_setf(uint8_t aci20margmcs2)7057 __INLINE void riu_aci20margmcs2_setf(uint8_t aci20margmcs2)
7058 {
7059 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG0_ADDR) & ~((uint32_t)0x003F0000)) | ((uint32_t)aci20margmcs2 << 16));
7060 }
7061
7062 /**
7063 * @brief Returns the current value of the ACI20MARGMCS1 field in the RWNXAGCACI20MARG0 register.
7064 *
7065 * The RWNXAGCACI20MARG0 register will be read and the ACI20MARGMCS1 field's value will be returned.
7066 *
7067 * @return The current value of the ACI20MARGMCS1 field in the RWNXAGCACI20MARG0 register.
7068 */
riu_aci20margmcs1_getf(void)7069 __INLINE uint8_t riu_aci20margmcs1_getf(void)
7070 {
7071 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG0_ADDR);
7072 return ((localVal & ((uint32_t)0x00003F00)) >> 8);
7073 }
7074
7075 /**
7076 * @brief Sets the ACI20MARGMCS1 field of the RWNXAGCACI20MARG0 register.
7077 *
7078 * The RWNXAGCACI20MARG0 register will be read, modified to contain the new field value, and written.
7079 *
7080 * @param[in] aci20margmcs1 - The value to set the field to.
7081 */
riu_aci20margmcs1_setf(uint8_t aci20margmcs1)7082 __INLINE void riu_aci20margmcs1_setf(uint8_t aci20margmcs1)
7083 {
7084 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG0_ADDR) & ~((uint32_t)0x00003F00)) | ((uint32_t)aci20margmcs1 << 8));
7085 }
7086
7087 /**
7088 * @brief Returns the current value of the ACI20MARGMCS0 field in the RWNXAGCACI20MARG0 register.
7089 *
7090 * The RWNXAGCACI20MARG0 register will be read and the ACI20MARGMCS0 field's value will be returned.
7091 *
7092 * @return The current value of the ACI20MARGMCS0 field in the RWNXAGCACI20MARG0 register.
7093 */
riu_aci20margmcs0_getf(void)7094 __INLINE uint8_t riu_aci20margmcs0_getf(void)
7095 {
7096 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG0_ADDR);
7097 return ((localVal & ((uint32_t)0x0000003F)) >> 0);
7098 }
7099
7100 /**
7101 * @brief Sets the ACI20MARGMCS0 field of the RWNXAGCACI20MARG0 register.
7102 *
7103 * The RWNXAGCACI20MARG0 register will be read, modified to contain the new field value, and written.
7104 *
7105 * @param[in] aci20margmcs0 - The value to set the field to.
7106 */
riu_aci20margmcs0_setf(uint8_t aci20margmcs0)7107 __INLINE void riu_aci20margmcs0_setf(uint8_t aci20margmcs0)
7108 {
7109 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG0_ADDR) & ~((uint32_t)0x0000003F)) | ((uint32_t)aci20margmcs0 << 0));
7110 }
7111
7112 /// @}
7113
7114 /**
7115 * @name RWNXAGCACI20MARG1 register definitions
7116 * <table>
7117 * <caption id="RWNXAGCACI20MARG1_BF">RWNXAGCACI20MARG1 bitfields</caption>
7118 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
7119 * <tr><td>29:24 <td> ACI20MARGMCS7 <td>R <td>R/W <td>0x0
7120 * <tr><td>21:16 <td> ACI20MARGMCS6 <td>R <td>R/W <td>0x0
7121 * <tr><td>13:08 <td> ACI20MARGMCS5 <td>R <td>R/W <td>0x0
7122 * <tr><td>05:00 <td> ACI20MARGMCS4 <td>R <td>R/W <td>0x1
7123 * </table>
7124 *
7125 * @{
7126 */
7127
7128 /// Address of the RWNXAGCACI20MARG1 register
7129 #define RIU_RWNXAGCACI20MARG1_ADDR 0x4033B344
7130 /// Offset of the RWNXAGCACI20MARG1 register from the base address
7131 #define RIU_RWNXAGCACI20MARG1_OFFSET 0x00000344
7132 /// Index of the RWNXAGCACI20MARG1 register
7133 #define RIU_RWNXAGCACI20MARG1_INDEX 0x000000D1
7134 /// Reset value of the RWNXAGCACI20MARG1 register
7135 #define RIU_RWNXAGCACI20MARG1_RESET 0x00000001
7136
7137 /**
7138 * @brief Returns the current value of the RWNXAGCACI20MARG1 register.
7139 * The RWNXAGCACI20MARG1 register will be read and its value returned.
7140 * @return The current value of the RWNXAGCACI20MARG1 register.
7141 */
riu_rwnxagcaci20marg1_get(void)7142 __INLINE uint32_t riu_rwnxagcaci20marg1_get(void)
7143 {
7144 return PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG1_ADDR);
7145 }
7146
7147 /**
7148 * @brief Sets the RWNXAGCACI20MARG1 register to a value.
7149 * The RWNXAGCACI20MARG1 register will be written.
7150 * @param value - The value to write.
7151 */
riu_rwnxagcaci20marg1_set(uint32_t value)7152 __INLINE void riu_rwnxagcaci20marg1_set(uint32_t value)
7153 {
7154 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG1_ADDR, value);
7155 }
7156
7157 // field definitions
7158 /// ACI20MARGMCS7 field mask
7159 #define RIU_ACI20MARGMCS7_MASK ((uint32_t)0x3F000000)
7160 /// ACI20MARGMCS7 field LSB position
7161 #define RIU_ACI20MARGMCS7_LSB 24
7162 /// ACI20MARGMCS7 field width
7163 #define RIU_ACI20MARGMCS7_WIDTH ((uint32_t)0x00000006)
7164 /// ACI20MARGMCS6 field mask
7165 #define RIU_ACI20MARGMCS6_MASK ((uint32_t)0x003F0000)
7166 /// ACI20MARGMCS6 field LSB position
7167 #define RIU_ACI20MARGMCS6_LSB 16
7168 /// ACI20MARGMCS6 field width
7169 #define RIU_ACI20MARGMCS6_WIDTH ((uint32_t)0x00000006)
7170 /// ACI20MARGMCS5 field mask
7171 #define RIU_ACI20MARGMCS5_MASK ((uint32_t)0x00003F00)
7172 /// ACI20MARGMCS5 field LSB position
7173 #define RIU_ACI20MARGMCS5_LSB 8
7174 /// ACI20MARGMCS5 field width
7175 #define RIU_ACI20MARGMCS5_WIDTH ((uint32_t)0x00000006)
7176 /// ACI20MARGMCS4 field mask
7177 #define RIU_ACI20MARGMCS4_MASK ((uint32_t)0x0000003F)
7178 /// ACI20MARGMCS4 field LSB position
7179 #define RIU_ACI20MARGMCS4_LSB 0
7180 /// ACI20MARGMCS4 field width
7181 #define RIU_ACI20MARGMCS4_WIDTH ((uint32_t)0x00000006)
7182
7183 /// ACI20MARGMCS7 field reset value
7184 #define RIU_ACI20MARGMCS7_RST 0x0
7185 /// ACI20MARGMCS6 field reset value
7186 #define RIU_ACI20MARGMCS6_RST 0x0
7187 /// ACI20MARGMCS5 field reset value
7188 #define RIU_ACI20MARGMCS5_RST 0x0
7189 /// ACI20MARGMCS4 field reset value
7190 #define RIU_ACI20MARGMCS4_RST 0x1
7191
7192 /**
7193 * @brief Constructs a value for the RWNXAGCACI20MARG1 register given values for its fields
7194 * and writes the value to the register.
7195 *
7196 * @param[in] aci20margmcs7 - The value to use for the ACI20MARGMCS7 field.
7197 * @param[in] aci20margmcs6 - The value to use for the ACI20MARGMCS6 field.
7198 * @param[in] aci20margmcs5 - The value to use for the ACI20MARGMCS5 field.
7199 * @param[in] aci20margmcs4 - The value to use for the ACI20MARGMCS4 field.
7200 */
riu_rwnxagcaci20marg1_pack(uint8_t aci20margmcs7,uint8_t aci20margmcs6,uint8_t aci20margmcs5,uint8_t aci20margmcs4)7201 __INLINE void riu_rwnxagcaci20marg1_pack(uint8_t aci20margmcs7, uint8_t aci20margmcs6, uint8_t aci20margmcs5, uint8_t aci20margmcs4)
7202 {
7203 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG1_ADDR, ((uint32_t)aci20margmcs7 << 24) | ((uint32_t)aci20margmcs6 << 16) | ((uint32_t)aci20margmcs5 << 8) | ((uint32_t)aci20margmcs4 << 0));
7204 }
7205
7206 /**
7207 * @brief Unpacks RWNXAGCACI20MARG1's fields from current value of the RWNXAGCACI20MARG1 register.
7208 *
7209 * Reads the RWNXAGCACI20MARG1 register and populates all the _field variables with the corresponding
7210 * values from the register.
7211 *
7212 * @param[out] aci20margmcs7 - Will be populated with the current value of this field from the register.
7213 * @param[out] aci20margmcs6 - Will be populated with the current value of this field from the register.
7214 * @param[out] aci20margmcs5 - Will be populated with the current value of this field from the register.
7215 * @param[out] aci20margmcs4 - Will be populated with the current value of this field from the register.
7216 */
riu_rwnxagcaci20marg1_unpack(uint8_t * aci20margmcs7,uint8_t * aci20margmcs6,uint8_t * aci20margmcs5,uint8_t * aci20margmcs4)7217 __INLINE void riu_rwnxagcaci20marg1_unpack(uint8_t* aci20margmcs7, uint8_t* aci20margmcs6, uint8_t* aci20margmcs5, uint8_t* aci20margmcs4)
7218 {
7219 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG1_ADDR);
7220
7221 *aci20margmcs7 = (localVal & ((uint32_t)0x3F000000)) >> 24;
7222 *aci20margmcs6 = (localVal & ((uint32_t)0x003F0000)) >> 16;
7223 *aci20margmcs5 = (localVal & ((uint32_t)0x00003F00)) >> 8;
7224 *aci20margmcs4 = (localVal & ((uint32_t)0x0000003F)) >> 0;
7225 }
7226
7227 /**
7228 * @brief Returns the current value of the ACI20MARGMCS7 field in the RWNXAGCACI20MARG1 register.
7229 *
7230 * The RWNXAGCACI20MARG1 register will be read and the ACI20MARGMCS7 field's value will be returned.
7231 *
7232 * @return The current value of the ACI20MARGMCS7 field in the RWNXAGCACI20MARG1 register.
7233 */
riu_aci20margmcs7_getf(void)7234 __INLINE uint8_t riu_aci20margmcs7_getf(void)
7235 {
7236 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG1_ADDR);
7237 return ((localVal & ((uint32_t)0x3F000000)) >> 24);
7238 }
7239
7240 /**
7241 * @brief Sets the ACI20MARGMCS7 field of the RWNXAGCACI20MARG1 register.
7242 *
7243 * The RWNXAGCACI20MARG1 register will be read, modified to contain the new field value, and written.
7244 *
7245 * @param[in] aci20margmcs7 - The value to set the field to.
7246 */
riu_aci20margmcs7_setf(uint8_t aci20margmcs7)7247 __INLINE void riu_aci20margmcs7_setf(uint8_t aci20margmcs7)
7248 {
7249 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG1_ADDR) & ~((uint32_t)0x3F000000)) | ((uint32_t)aci20margmcs7 << 24));
7250 }
7251
7252 /**
7253 * @brief Returns the current value of the ACI20MARGMCS6 field in the RWNXAGCACI20MARG1 register.
7254 *
7255 * The RWNXAGCACI20MARG1 register will be read and the ACI20MARGMCS6 field's value will be returned.
7256 *
7257 * @return The current value of the ACI20MARGMCS6 field in the RWNXAGCACI20MARG1 register.
7258 */
riu_aci20margmcs6_getf(void)7259 __INLINE uint8_t riu_aci20margmcs6_getf(void)
7260 {
7261 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG1_ADDR);
7262 return ((localVal & ((uint32_t)0x003F0000)) >> 16);
7263 }
7264
7265 /**
7266 * @brief Sets the ACI20MARGMCS6 field of the RWNXAGCACI20MARG1 register.
7267 *
7268 * The RWNXAGCACI20MARG1 register will be read, modified to contain the new field value, and written.
7269 *
7270 * @param[in] aci20margmcs6 - The value to set the field to.
7271 */
riu_aci20margmcs6_setf(uint8_t aci20margmcs6)7272 __INLINE void riu_aci20margmcs6_setf(uint8_t aci20margmcs6)
7273 {
7274 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG1_ADDR) & ~((uint32_t)0x003F0000)) | ((uint32_t)aci20margmcs6 << 16));
7275 }
7276
7277 /**
7278 * @brief Returns the current value of the ACI20MARGMCS5 field in the RWNXAGCACI20MARG1 register.
7279 *
7280 * The RWNXAGCACI20MARG1 register will be read and the ACI20MARGMCS5 field's value will be returned.
7281 *
7282 * @return The current value of the ACI20MARGMCS5 field in the RWNXAGCACI20MARG1 register.
7283 */
riu_aci20margmcs5_getf(void)7284 __INLINE uint8_t riu_aci20margmcs5_getf(void)
7285 {
7286 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG1_ADDR);
7287 return ((localVal & ((uint32_t)0x00003F00)) >> 8);
7288 }
7289
7290 /**
7291 * @brief Sets the ACI20MARGMCS5 field of the RWNXAGCACI20MARG1 register.
7292 *
7293 * The RWNXAGCACI20MARG1 register will be read, modified to contain the new field value, and written.
7294 *
7295 * @param[in] aci20margmcs5 - The value to set the field to.
7296 */
riu_aci20margmcs5_setf(uint8_t aci20margmcs5)7297 __INLINE void riu_aci20margmcs5_setf(uint8_t aci20margmcs5)
7298 {
7299 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG1_ADDR) & ~((uint32_t)0x00003F00)) | ((uint32_t)aci20margmcs5 << 8));
7300 }
7301
7302 /**
7303 * @brief Returns the current value of the ACI20MARGMCS4 field in the RWNXAGCACI20MARG1 register.
7304 *
7305 * The RWNXAGCACI20MARG1 register will be read and the ACI20MARGMCS4 field's value will be returned.
7306 *
7307 * @return The current value of the ACI20MARGMCS4 field in the RWNXAGCACI20MARG1 register.
7308 */
riu_aci20margmcs4_getf(void)7309 __INLINE uint8_t riu_aci20margmcs4_getf(void)
7310 {
7311 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG1_ADDR);
7312 return ((localVal & ((uint32_t)0x0000003F)) >> 0);
7313 }
7314
7315 /**
7316 * @brief Sets the ACI20MARGMCS4 field of the RWNXAGCACI20MARG1 register.
7317 *
7318 * The RWNXAGCACI20MARG1 register will be read, modified to contain the new field value, and written.
7319 *
7320 * @param[in] aci20margmcs4 - The value to set the field to.
7321 */
riu_aci20margmcs4_setf(uint8_t aci20margmcs4)7322 __INLINE void riu_aci20margmcs4_setf(uint8_t aci20margmcs4)
7323 {
7324 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG1_ADDR) & ~((uint32_t)0x0000003F)) | ((uint32_t)aci20margmcs4 << 0));
7325 }
7326
7327 /// @}
7328
7329 /**
7330 * @name RWNXAGCACI20MARG2 register definitions
7331 * <table>
7332 * <caption id="RWNXAGCACI20MARG2_BF">RWNXAGCACI20MARG2 bitfields</caption>
7333 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
7334 * <tr><td>13:08 <td> ACI20MARGMCS9 <td>R <td>R/W <td>0x0
7335 * <tr><td>05:00 <td> ACI20MARGMCS8 <td>R <td>R/W <td>0x0
7336 * </table>
7337 *
7338 * @{
7339 */
7340
7341 /// Address of the RWNXAGCACI20MARG2 register
7342 #define RIU_RWNXAGCACI20MARG2_ADDR 0x4033B348
7343 /// Offset of the RWNXAGCACI20MARG2 register from the base address
7344 #define RIU_RWNXAGCACI20MARG2_OFFSET 0x00000348
7345 /// Index of the RWNXAGCACI20MARG2 register
7346 #define RIU_RWNXAGCACI20MARG2_INDEX 0x000000D2
7347 /// Reset value of the RWNXAGCACI20MARG2 register
7348 #define RIU_RWNXAGCACI20MARG2_RESET 0x00000000
7349
7350 /**
7351 * @brief Returns the current value of the RWNXAGCACI20MARG2 register.
7352 * The RWNXAGCACI20MARG2 register will be read and its value returned.
7353 * @return The current value of the RWNXAGCACI20MARG2 register.
7354 */
riu_rwnxagcaci20marg2_get(void)7355 __INLINE uint32_t riu_rwnxagcaci20marg2_get(void)
7356 {
7357 return PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG2_ADDR);
7358 }
7359
7360 /**
7361 * @brief Sets the RWNXAGCACI20MARG2 register to a value.
7362 * The RWNXAGCACI20MARG2 register will be written.
7363 * @param value - The value to write.
7364 */
riu_rwnxagcaci20marg2_set(uint32_t value)7365 __INLINE void riu_rwnxagcaci20marg2_set(uint32_t value)
7366 {
7367 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG2_ADDR, value);
7368 }
7369
7370 // field definitions
7371 /// ACI20MARGMCS9 field mask
7372 #define RIU_ACI20MARGMCS9_MASK ((uint32_t)0x00003F00)
7373 /// ACI20MARGMCS9 field LSB position
7374 #define RIU_ACI20MARGMCS9_LSB 8
7375 /// ACI20MARGMCS9 field width
7376 #define RIU_ACI20MARGMCS9_WIDTH ((uint32_t)0x00000006)
7377 /// ACI20MARGMCS8 field mask
7378 #define RIU_ACI20MARGMCS8_MASK ((uint32_t)0x0000003F)
7379 /// ACI20MARGMCS8 field LSB position
7380 #define RIU_ACI20MARGMCS8_LSB 0
7381 /// ACI20MARGMCS8 field width
7382 #define RIU_ACI20MARGMCS8_WIDTH ((uint32_t)0x00000006)
7383
7384 /// ACI20MARGMCS9 field reset value
7385 #define RIU_ACI20MARGMCS9_RST 0x0
7386 /// ACI20MARGMCS8 field reset value
7387 #define RIU_ACI20MARGMCS8_RST 0x0
7388
7389 /**
7390 * @brief Constructs a value for the RWNXAGCACI20MARG2 register given values for its fields
7391 * and writes the value to the register.
7392 *
7393 * @param[in] aci20margmcs9 - The value to use for the ACI20MARGMCS9 field.
7394 * @param[in] aci20margmcs8 - The value to use for the ACI20MARGMCS8 field.
7395 */
riu_rwnxagcaci20marg2_pack(uint8_t aci20margmcs9,uint8_t aci20margmcs8)7396 __INLINE void riu_rwnxagcaci20marg2_pack(uint8_t aci20margmcs9, uint8_t aci20margmcs8)
7397 {
7398 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG2_ADDR, ((uint32_t)aci20margmcs9 << 8) | ((uint32_t)aci20margmcs8 << 0));
7399 }
7400
7401 /**
7402 * @brief Unpacks RWNXAGCACI20MARG2's fields from current value of the RWNXAGCACI20MARG2 register.
7403 *
7404 * Reads the RWNXAGCACI20MARG2 register and populates all the _field variables with the corresponding
7405 * values from the register.
7406 *
7407 * @param[out] aci20margmcs9 - Will be populated with the current value of this field from the register.
7408 * @param[out] aci20margmcs8 - Will be populated with the current value of this field from the register.
7409 */
riu_rwnxagcaci20marg2_unpack(uint8_t * aci20margmcs9,uint8_t * aci20margmcs8)7410 __INLINE void riu_rwnxagcaci20marg2_unpack(uint8_t* aci20margmcs9, uint8_t* aci20margmcs8)
7411 {
7412 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG2_ADDR);
7413
7414 *aci20margmcs9 = (localVal & ((uint32_t)0x00003F00)) >> 8;
7415 *aci20margmcs8 = (localVal & ((uint32_t)0x0000003F)) >> 0;
7416 }
7417
7418 /**
7419 * @brief Returns the current value of the ACI20MARGMCS9 field in the RWNXAGCACI20MARG2 register.
7420 *
7421 * The RWNXAGCACI20MARG2 register will be read and the ACI20MARGMCS9 field's value will be returned.
7422 *
7423 * @return The current value of the ACI20MARGMCS9 field in the RWNXAGCACI20MARG2 register.
7424 */
riu_aci20margmcs9_getf(void)7425 __INLINE uint8_t riu_aci20margmcs9_getf(void)
7426 {
7427 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG2_ADDR);
7428 return ((localVal & ((uint32_t)0x00003F00)) >> 8);
7429 }
7430
7431 /**
7432 * @brief Sets the ACI20MARGMCS9 field of the RWNXAGCACI20MARG2 register.
7433 *
7434 * The RWNXAGCACI20MARG2 register will be read, modified to contain the new field value, and written.
7435 *
7436 * @param[in] aci20margmcs9 - The value to set the field to.
7437 */
riu_aci20margmcs9_setf(uint8_t aci20margmcs9)7438 __INLINE void riu_aci20margmcs9_setf(uint8_t aci20margmcs9)
7439 {
7440 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG2_ADDR) & ~((uint32_t)0x00003F00)) | ((uint32_t)aci20margmcs9 << 8));
7441 }
7442
7443 /**
7444 * @brief Returns the current value of the ACI20MARGMCS8 field in the RWNXAGCACI20MARG2 register.
7445 *
7446 * The RWNXAGCACI20MARG2 register will be read and the ACI20MARGMCS8 field's value will be returned.
7447 *
7448 * @return The current value of the ACI20MARGMCS8 field in the RWNXAGCACI20MARG2 register.
7449 */
riu_aci20margmcs8_getf(void)7450 __INLINE uint8_t riu_aci20margmcs8_getf(void)
7451 {
7452 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG2_ADDR);
7453 return ((localVal & ((uint32_t)0x0000003F)) >> 0);
7454 }
7455
7456 /**
7457 * @brief Sets the ACI20MARGMCS8 field of the RWNXAGCACI20MARG2 register.
7458 *
7459 * The RWNXAGCACI20MARG2 register will be read, modified to contain the new field value, and written.
7460 *
7461 * @param[in] aci20margmcs8 - The value to set the field to.
7462 */
riu_aci20margmcs8_setf(uint8_t aci20margmcs8)7463 __INLINE void riu_aci20margmcs8_setf(uint8_t aci20margmcs8)
7464 {
7465 PLATFORM_REG_WRITE(RIU_RWNXAGCACI20MARG2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI20MARG2_ADDR) & ~((uint32_t)0x0000003F)) | ((uint32_t)aci20margmcs8 << 0));
7466 }
7467
7468 /// @}
7469
7470 /**
7471 * @name RWNXAGCACI40MARG0 register definitions
7472 * <table>
7473 * <caption id="RWNXAGCACI40MARG0_BF">RWNXAGCACI40MARG0 bitfields</caption>
7474 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
7475 * <tr><td>29:24 <td> ACI40MARGMCS3 <td>R <td>R/W <td>0x9
7476 * <tr><td>21:16 <td> ACI40MARGMCS2 <td>R <td>R/W <td>0xB
7477 * <tr><td>13:08 <td> ACI40MARGMCS1 <td>R <td>R/W <td>0xD
7478 * <tr><td>05:00 <td> ACI40MARGMCS0 <td>R <td>R/W <td>0x10
7479 * </table>
7480 *
7481 * @{
7482 */
7483
7484 /// Address of the RWNXAGCACI40MARG0 register
7485 #define RIU_RWNXAGCACI40MARG0_ADDR 0x4033B34C
7486 /// Offset of the RWNXAGCACI40MARG0 register from the base address
7487 #define RIU_RWNXAGCACI40MARG0_OFFSET 0x0000034C
7488 /// Index of the RWNXAGCACI40MARG0 register
7489 #define RIU_RWNXAGCACI40MARG0_INDEX 0x000000D3
7490 /// Reset value of the RWNXAGCACI40MARG0 register
7491 #define RIU_RWNXAGCACI40MARG0_RESET 0x090B0D10
7492
7493 /**
7494 * @brief Returns the current value of the RWNXAGCACI40MARG0 register.
7495 * The RWNXAGCACI40MARG0 register will be read and its value returned.
7496 * @return The current value of the RWNXAGCACI40MARG0 register.
7497 */
riu_rwnxagcaci40marg0_get(void)7498 __INLINE uint32_t riu_rwnxagcaci40marg0_get(void)
7499 {
7500 return PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG0_ADDR);
7501 }
7502
7503 /**
7504 * @brief Sets the RWNXAGCACI40MARG0 register to a value.
7505 * The RWNXAGCACI40MARG0 register will be written.
7506 * @param value - The value to write.
7507 */
riu_rwnxagcaci40marg0_set(uint32_t value)7508 __INLINE void riu_rwnxagcaci40marg0_set(uint32_t value)
7509 {
7510 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG0_ADDR, value);
7511 }
7512
7513 // field definitions
7514 /// ACI40MARGMCS3 field mask
7515 #define RIU_ACI40MARGMCS3_MASK ((uint32_t)0x3F000000)
7516 /// ACI40MARGMCS3 field LSB position
7517 #define RIU_ACI40MARGMCS3_LSB 24
7518 /// ACI40MARGMCS3 field width
7519 #define RIU_ACI40MARGMCS3_WIDTH ((uint32_t)0x00000006)
7520 /// ACI40MARGMCS2 field mask
7521 #define RIU_ACI40MARGMCS2_MASK ((uint32_t)0x003F0000)
7522 /// ACI40MARGMCS2 field LSB position
7523 #define RIU_ACI40MARGMCS2_LSB 16
7524 /// ACI40MARGMCS2 field width
7525 #define RIU_ACI40MARGMCS2_WIDTH ((uint32_t)0x00000006)
7526 /// ACI40MARGMCS1 field mask
7527 #define RIU_ACI40MARGMCS1_MASK ((uint32_t)0x00003F00)
7528 /// ACI40MARGMCS1 field LSB position
7529 #define RIU_ACI40MARGMCS1_LSB 8
7530 /// ACI40MARGMCS1 field width
7531 #define RIU_ACI40MARGMCS1_WIDTH ((uint32_t)0x00000006)
7532 /// ACI40MARGMCS0 field mask
7533 #define RIU_ACI40MARGMCS0_MASK ((uint32_t)0x0000003F)
7534 /// ACI40MARGMCS0 field LSB position
7535 #define RIU_ACI40MARGMCS0_LSB 0
7536 /// ACI40MARGMCS0 field width
7537 #define RIU_ACI40MARGMCS0_WIDTH ((uint32_t)0x00000006)
7538
7539 /// ACI40MARGMCS3 field reset value
7540 #define RIU_ACI40MARGMCS3_RST 0x9
7541 /// ACI40MARGMCS2 field reset value
7542 #define RIU_ACI40MARGMCS2_RST 0xB
7543 /// ACI40MARGMCS1 field reset value
7544 #define RIU_ACI40MARGMCS1_RST 0xD
7545 /// ACI40MARGMCS0 field reset value
7546 #define RIU_ACI40MARGMCS0_RST 0x10
7547
7548 /**
7549 * @brief Constructs a value for the RWNXAGCACI40MARG0 register given values for its fields
7550 * and writes the value to the register.
7551 *
7552 * @param[in] aci40margmcs3 - The value to use for the ACI40MARGMCS3 field.
7553 * @param[in] aci40margmcs2 - The value to use for the ACI40MARGMCS2 field.
7554 * @param[in] aci40margmcs1 - The value to use for the ACI40MARGMCS1 field.
7555 * @param[in] aci40margmcs0 - The value to use for the ACI40MARGMCS0 field.
7556 */
riu_rwnxagcaci40marg0_pack(uint8_t aci40margmcs3,uint8_t aci40margmcs2,uint8_t aci40margmcs1,uint8_t aci40margmcs0)7557 __INLINE void riu_rwnxagcaci40marg0_pack(uint8_t aci40margmcs3, uint8_t aci40margmcs2, uint8_t aci40margmcs1, uint8_t aci40margmcs0)
7558 {
7559 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG0_ADDR, ((uint32_t)aci40margmcs3 << 24) | ((uint32_t)aci40margmcs2 << 16) | ((uint32_t)aci40margmcs1 << 8) | ((uint32_t)aci40margmcs0 << 0));
7560 }
7561
7562 /**
7563 * @brief Unpacks RWNXAGCACI40MARG0's fields from current value of the RWNXAGCACI40MARG0 register.
7564 *
7565 * Reads the RWNXAGCACI40MARG0 register and populates all the _field variables with the corresponding
7566 * values from the register.
7567 *
7568 * @param[out] aci40margmcs3 - Will be populated with the current value of this field from the register.
7569 * @param[out] aci40margmcs2 - Will be populated with the current value of this field from the register.
7570 * @param[out] aci40margmcs1 - Will be populated with the current value of this field from the register.
7571 * @param[out] aci40margmcs0 - Will be populated with the current value of this field from the register.
7572 */
riu_rwnxagcaci40marg0_unpack(uint8_t * aci40margmcs3,uint8_t * aci40margmcs2,uint8_t * aci40margmcs1,uint8_t * aci40margmcs0)7573 __INLINE void riu_rwnxagcaci40marg0_unpack(uint8_t* aci40margmcs3, uint8_t* aci40margmcs2, uint8_t* aci40margmcs1, uint8_t* aci40margmcs0)
7574 {
7575 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG0_ADDR);
7576
7577 *aci40margmcs3 = (localVal & ((uint32_t)0x3F000000)) >> 24;
7578 *aci40margmcs2 = (localVal & ((uint32_t)0x003F0000)) >> 16;
7579 *aci40margmcs1 = (localVal & ((uint32_t)0x00003F00)) >> 8;
7580 *aci40margmcs0 = (localVal & ((uint32_t)0x0000003F)) >> 0;
7581 }
7582
7583 /**
7584 * @brief Returns the current value of the ACI40MARGMCS3 field in the RWNXAGCACI40MARG0 register.
7585 *
7586 * The RWNXAGCACI40MARG0 register will be read and the ACI40MARGMCS3 field's value will be returned.
7587 *
7588 * @return The current value of the ACI40MARGMCS3 field in the RWNXAGCACI40MARG0 register.
7589 */
riu_aci40margmcs3_getf(void)7590 __INLINE uint8_t riu_aci40margmcs3_getf(void)
7591 {
7592 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG0_ADDR);
7593 return ((localVal & ((uint32_t)0x3F000000)) >> 24);
7594 }
7595
7596 /**
7597 * @brief Sets the ACI40MARGMCS3 field of the RWNXAGCACI40MARG0 register.
7598 *
7599 * The RWNXAGCACI40MARG0 register will be read, modified to contain the new field value, and written.
7600 *
7601 * @param[in] aci40margmcs3 - The value to set the field to.
7602 */
riu_aci40margmcs3_setf(uint8_t aci40margmcs3)7603 __INLINE void riu_aci40margmcs3_setf(uint8_t aci40margmcs3)
7604 {
7605 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG0_ADDR) & ~((uint32_t)0x3F000000)) | ((uint32_t)aci40margmcs3 << 24));
7606 }
7607
7608 /**
7609 * @brief Returns the current value of the ACI40MARGMCS2 field in the RWNXAGCACI40MARG0 register.
7610 *
7611 * The RWNXAGCACI40MARG0 register will be read and the ACI40MARGMCS2 field's value will be returned.
7612 *
7613 * @return The current value of the ACI40MARGMCS2 field in the RWNXAGCACI40MARG0 register.
7614 */
riu_aci40margmcs2_getf(void)7615 __INLINE uint8_t riu_aci40margmcs2_getf(void)
7616 {
7617 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG0_ADDR);
7618 return ((localVal & ((uint32_t)0x003F0000)) >> 16);
7619 }
7620
7621 /**
7622 * @brief Sets the ACI40MARGMCS2 field of the RWNXAGCACI40MARG0 register.
7623 *
7624 * The RWNXAGCACI40MARG0 register will be read, modified to contain the new field value, and written.
7625 *
7626 * @param[in] aci40margmcs2 - The value to set the field to.
7627 */
riu_aci40margmcs2_setf(uint8_t aci40margmcs2)7628 __INLINE void riu_aci40margmcs2_setf(uint8_t aci40margmcs2)
7629 {
7630 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG0_ADDR) & ~((uint32_t)0x003F0000)) | ((uint32_t)aci40margmcs2 << 16));
7631 }
7632
7633 /**
7634 * @brief Returns the current value of the ACI40MARGMCS1 field in the RWNXAGCACI40MARG0 register.
7635 *
7636 * The RWNXAGCACI40MARG0 register will be read and the ACI40MARGMCS1 field's value will be returned.
7637 *
7638 * @return The current value of the ACI40MARGMCS1 field in the RWNXAGCACI40MARG0 register.
7639 */
riu_aci40margmcs1_getf(void)7640 __INLINE uint8_t riu_aci40margmcs1_getf(void)
7641 {
7642 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG0_ADDR);
7643 return ((localVal & ((uint32_t)0x00003F00)) >> 8);
7644 }
7645
7646 /**
7647 * @brief Sets the ACI40MARGMCS1 field of the RWNXAGCACI40MARG0 register.
7648 *
7649 * The RWNXAGCACI40MARG0 register will be read, modified to contain the new field value, and written.
7650 *
7651 * @param[in] aci40margmcs1 - The value to set the field to.
7652 */
riu_aci40margmcs1_setf(uint8_t aci40margmcs1)7653 __INLINE void riu_aci40margmcs1_setf(uint8_t aci40margmcs1)
7654 {
7655 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG0_ADDR) & ~((uint32_t)0x00003F00)) | ((uint32_t)aci40margmcs1 << 8));
7656 }
7657
7658 /**
7659 * @brief Returns the current value of the ACI40MARGMCS0 field in the RWNXAGCACI40MARG0 register.
7660 *
7661 * The RWNXAGCACI40MARG0 register will be read and the ACI40MARGMCS0 field's value will be returned.
7662 *
7663 * @return The current value of the ACI40MARGMCS0 field in the RWNXAGCACI40MARG0 register.
7664 */
riu_aci40margmcs0_getf(void)7665 __INLINE uint8_t riu_aci40margmcs0_getf(void)
7666 {
7667 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG0_ADDR);
7668 return ((localVal & ((uint32_t)0x0000003F)) >> 0);
7669 }
7670
7671 /**
7672 * @brief Sets the ACI40MARGMCS0 field of the RWNXAGCACI40MARG0 register.
7673 *
7674 * The RWNXAGCACI40MARG0 register will be read, modified to contain the new field value, and written.
7675 *
7676 * @param[in] aci40margmcs0 - The value to set the field to.
7677 */
riu_aci40margmcs0_setf(uint8_t aci40margmcs0)7678 __INLINE void riu_aci40margmcs0_setf(uint8_t aci40margmcs0)
7679 {
7680 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG0_ADDR) & ~((uint32_t)0x0000003F)) | ((uint32_t)aci40margmcs0 << 0));
7681 }
7682
7683 /// @}
7684
7685 /**
7686 * @name RWNXAGCACI40MARG1 register definitions
7687 * <table>
7688 * <caption id="RWNXAGCACI40MARG1_BF">RWNXAGCACI40MARG1 bitfields</caption>
7689 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
7690 * <tr><td>29:24 <td> ACI40MARGMCS7 <td>R <td>R/W <td>0x2
7691 * <tr><td>21:16 <td> ACI40MARGMCS6 <td>R <td>R/W <td>0x3
7692 * <tr><td>13:08 <td> ACI40MARGMCS5 <td>R <td>R/W <td>0x3
7693 * <tr><td>05:00 <td> ACI40MARGMCS4 <td>R <td>R/W <td>0x5
7694 * </table>
7695 *
7696 * @{
7697 */
7698
7699 /// Address of the RWNXAGCACI40MARG1 register
7700 #define RIU_RWNXAGCACI40MARG1_ADDR 0x4033B350
7701 /// Offset of the RWNXAGCACI40MARG1 register from the base address
7702 #define RIU_RWNXAGCACI40MARG1_OFFSET 0x00000350
7703 /// Index of the RWNXAGCACI40MARG1 register
7704 #define RIU_RWNXAGCACI40MARG1_INDEX 0x000000D4
7705 /// Reset value of the RWNXAGCACI40MARG1 register
7706 #define RIU_RWNXAGCACI40MARG1_RESET 0x02030305
7707
7708 /**
7709 * @brief Returns the current value of the RWNXAGCACI40MARG1 register.
7710 * The RWNXAGCACI40MARG1 register will be read and its value returned.
7711 * @return The current value of the RWNXAGCACI40MARG1 register.
7712 */
riu_rwnxagcaci40marg1_get(void)7713 __INLINE uint32_t riu_rwnxagcaci40marg1_get(void)
7714 {
7715 return PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG1_ADDR);
7716 }
7717
7718 /**
7719 * @brief Sets the RWNXAGCACI40MARG1 register to a value.
7720 * The RWNXAGCACI40MARG1 register will be written.
7721 * @param value - The value to write.
7722 */
riu_rwnxagcaci40marg1_set(uint32_t value)7723 __INLINE void riu_rwnxagcaci40marg1_set(uint32_t value)
7724 {
7725 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG1_ADDR, value);
7726 }
7727
7728 // field definitions
7729 /// ACI40MARGMCS7 field mask
7730 #define RIU_ACI40MARGMCS7_MASK ((uint32_t)0x3F000000)
7731 /// ACI40MARGMCS7 field LSB position
7732 #define RIU_ACI40MARGMCS7_LSB 24
7733 /// ACI40MARGMCS7 field width
7734 #define RIU_ACI40MARGMCS7_WIDTH ((uint32_t)0x00000006)
7735 /// ACI40MARGMCS6 field mask
7736 #define RIU_ACI40MARGMCS6_MASK ((uint32_t)0x003F0000)
7737 /// ACI40MARGMCS6 field LSB position
7738 #define RIU_ACI40MARGMCS6_LSB 16
7739 /// ACI40MARGMCS6 field width
7740 #define RIU_ACI40MARGMCS6_WIDTH ((uint32_t)0x00000006)
7741 /// ACI40MARGMCS5 field mask
7742 #define RIU_ACI40MARGMCS5_MASK ((uint32_t)0x00003F00)
7743 /// ACI40MARGMCS5 field LSB position
7744 #define RIU_ACI40MARGMCS5_LSB 8
7745 /// ACI40MARGMCS5 field width
7746 #define RIU_ACI40MARGMCS5_WIDTH ((uint32_t)0x00000006)
7747 /// ACI40MARGMCS4 field mask
7748 #define RIU_ACI40MARGMCS4_MASK ((uint32_t)0x0000003F)
7749 /// ACI40MARGMCS4 field LSB position
7750 #define RIU_ACI40MARGMCS4_LSB 0
7751 /// ACI40MARGMCS4 field width
7752 #define RIU_ACI40MARGMCS4_WIDTH ((uint32_t)0x00000006)
7753
7754 /// ACI40MARGMCS7 field reset value
7755 #define RIU_ACI40MARGMCS7_RST 0x2
7756 /// ACI40MARGMCS6 field reset value
7757 #define RIU_ACI40MARGMCS6_RST 0x3
7758 /// ACI40MARGMCS5 field reset value
7759 #define RIU_ACI40MARGMCS5_RST 0x3
7760 /// ACI40MARGMCS4 field reset value
7761 #define RIU_ACI40MARGMCS4_RST 0x5
7762
7763 /**
7764 * @brief Constructs a value for the RWNXAGCACI40MARG1 register given values for its fields
7765 * and writes the value to the register.
7766 *
7767 * @param[in] aci40margmcs7 - The value to use for the ACI40MARGMCS7 field.
7768 * @param[in] aci40margmcs6 - The value to use for the ACI40MARGMCS6 field.
7769 * @param[in] aci40margmcs5 - The value to use for the ACI40MARGMCS5 field.
7770 * @param[in] aci40margmcs4 - The value to use for the ACI40MARGMCS4 field.
7771 */
riu_rwnxagcaci40marg1_pack(uint8_t aci40margmcs7,uint8_t aci40margmcs6,uint8_t aci40margmcs5,uint8_t aci40margmcs4)7772 __INLINE void riu_rwnxagcaci40marg1_pack(uint8_t aci40margmcs7, uint8_t aci40margmcs6, uint8_t aci40margmcs5, uint8_t aci40margmcs4)
7773 {
7774 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG1_ADDR, ((uint32_t)aci40margmcs7 << 24) | ((uint32_t)aci40margmcs6 << 16) | ((uint32_t)aci40margmcs5 << 8) | ((uint32_t)aci40margmcs4 << 0));
7775 }
7776
7777 /**
7778 * @brief Unpacks RWNXAGCACI40MARG1's fields from current value of the RWNXAGCACI40MARG1 register.
7779 *
7780 * Reads the RWNXAGCACI40MARG1 register and populates all the _field variables with the corresponding
7781 * values from the register.
7782 *
7783 * @param[out] aci40margmcs7 - Will be populated with the current value of this field from the register.
7784 * @param[out] aci40margmcs6 - Will be populated with the current value of this field from the register.
7785 * @param[out] aci40margmcs5 - Will be populated with the current value of this field from the register.
7786 * @param[out] aci40margmcs4 - Will be populated with the current value of this field from the register.
7787 */
riu_rwnxagcaci40marg1_unpack(uint8_t * aci40margmcs7,uint8_t * aci40margmcs6,uint8_t * aci40margmcs5,uint8_t * aci40margmcs4)7788 __INLINE void riu_rwnxagcaci40marg1_unpack(uint8_t* aci40margmcs7, uint8_t* aci40margmcs6, uint8_t* aci40margmcs5, uint8_t* aci40margmcs4)
7789 {
7790 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG1_ADDR);
7791
7792 *aci40margmcs7 = (localVal & ((uint32_t)0x3F000000)) >> 24;
7793 *aci40margmcs6 = (localVal & ((uint32_t)0x003F0000)) >> 16;
7794 *aci40margmcs5 = (localVal & ((uint32_t)0x00003F00)) >> 8;
7795 *aci40margmcs4 = (localVal & ((uint32_t)0x0000003F)) >> 0;
7796 }
7797
7798 /**
7799 * @brief Returns the current value of the ACI40MARGMCS7 field in the RWNXAGCACI40MARG1 register.
7800 *
7801 * The RWNXAGCACI40MARG1 register will be read and the ACI40MARGMCS7 field's value will be returned.
7802 *
7803 * @return The current value of the ACI40MARGMCS7 field in the RWNXAGCACI40MARG1 register.
7804 */
riu_aci40margmcs7_getf(void)7805 __INLINE uint8_t riu_aci40margmcs7_getf(void)
7806 {
7807 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG1_ADDR);
7808 return ((localVal & ((uint32_t)0x3F000000)) >> 24);
7809 }
7810
7811 /**
7812 * @brief Sets the ACI40MARGMCS7 field of the RWNXAGCACI40MARG1 register.
7813 *
7814 * The RWNXAGCACI40MARG1 register will be read, modified to contain the new field value, and written.
7815 *
7816 * @param[in] aci40margmcs7 - The value to set the field to.
7817 */
riu_aci40margmcs7_setf(uint8_t aci40margmcs7)7818 __INLINE void riu_aci40margmcs7_setf(uint8_t aci40margmcs7)
7819 {
7820 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG1_ADDR) & ~((uint32_t)0x3F000000)) | ((uint32_t)aci40margmcs7 << 24));
7821 }
7822
7823 /**
7824 * @brief Returns the current value of the ACI40MARGMCS6 field in the RWNXAGCACI40MARG1 register.
7825 *
7826 * The RWNXAGCACI40MARG1 register will be read and the ACI40MARGMCS6 field's value will be returned.
7827 *
7828 * @return The current value of the ACI40MARGMCS6 field in the RWNXAGCACI40MARG1 register.
7829 */
riu_aci40margmcs6_getf(void)7830 __INLINE uint8_t riu_aci40margmcs6_getf(void)
7831 {
7832 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG1_ADDR);
7833 return ((localVal & ((uint32_t)0x003F0000)) >> 16);
7834 }
7835
7836 /**
7837 * @brief Sets the ACI40MARGMCS6 field of the RWNXAGCACI40MARG1 register.
7838 *
7839 * The RWNXAGCACI40MARG1 register will be read, modified to contain the new field value, and written.
7840 *
7841 * @param[in] aci40margmcs6 - The value to set the field to.
7842 */
riu_aci40margmcs6_setf(uint8_t aci40margmcs6)7843 __INLINE void riu_aci40margmcs6_setf(uint8_t aci40margmcs6)
7844 {
7845 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG1_ADDR) & ~((uint32_t)0x003F0000)) | ((uint32_t)aci40margmcs6 << 16));
7846 }
7847
7848 /**
7849 * @brief Returns the current value of the ACI40MARGMCS5 field in the RWNXAGCACI40MARG1 register.
7850 *
7851 * The RWNXAGCACI40MARG1 register will be read and the ACI40MARGMCS5 field's value will be returned.
7852 *
7853 * @return The current value of the ACI40MARGMCS5 field in the RWNXAGCACI40MARG1 register.
7854 */
riu_aci40margmcs5_getf(void)7855 __INLINE uint8_t riu_aci40margmcs5_getf(void)
7856 {
7857 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG1_ADDR);
7858 return ((localVal & ((uint32_t)0x00003F00)) >> 8);
7859 }
7860
7861 /**
7862 * @brief Sets the ACI40MARGMCS5 field of the RWNXAGCACI40MARG1 register.
7863 *
7864 * The RWNXAGCACI40MARG1 register will be read, modified to contain the new field value, and written.
7865 *
7866 * @param[in] aci40margmcs5 - The value to set the field to.
7867 */
riu_aci40margmcs5_setf(uint8_t aci40margmcs5)7868 __INLINE void riu_aci40margmcs5_setf(uint8_t aci40margmcs5)
7869 {
7870 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG1_ADDR) & ~((uint32_t)0x00003F00)) | ((uint32_t)aci40margmcs5 << 8));
7871 }
7872
7873 /**
7874 * @brief Returns the current value of the ACI40MARGMCS4 field in the RWNXAGCACI40MARG1 register.
7875 *
7876 * The RWNXAGCACI40MARG1 register will be read and the ACI40MARGMCS4 field's value will be returned.
7877 *
7878 * @return The current value of the ACI40MARGMCS4 field in the RWNXAGCACI40MARG1 register.
7879 */
riu_aci40margmcs4_getf(void)7880 __INLINE uint8_t riu_aci40margmcs4_getf(void)
7881 {
7882 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG1_ADDR);
7883 return ((localVal & ((uint32_t)0x0000003F)) >> 0);
7884 }
7885
7886 /**
7887 * @brief Sets the ACI40MARGMCS4 field of the RWNXAGCACI40MARG1 register.
7888 *
7889 * The RWNXAGCACI40MARG1 register will be read, modified to contain the new field value, and written.
7890 *
7891 * @param[in] aci40margmcs4 - The value to set the field to.
7892 */
riu_aci40margmcs4_setf(uint8_t aci40margmcs4)7893 __INLINE void riu_aci40margmcs4_setf(uint8_t aci40margmcs4)
7894 {
7895 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG1_ADDR) & ~((uint32_t)0x0000003F)) | ((uint32_t)aci40margmcs4 << 0));
7896 }
7897
7898 /// @}
7899
7900 /**
7901 * @name RWNXAGCACI40MARG2 register definitions
7902 * <table>
7903 * <caption id="RWNXAGCACI40MARG2_BF">RWNXAGCACI40MARG2 bitfields</caption>
7904 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
7905 * <tr><td>13:08 <td> ACI40MARGMCS9 <td>R <td>R/W <td>0x1
7906 * <tr><td>05:00 <td> ACI40MARGMCS8 <td>R <td>R/W <td>0x1
7907 * </table>
7908 *
7909 * @{
7910 */
7911
7912 /// Address of the RWNXAGCACI40MARG2 register
7913 #define RIU_RWNXAGCACI40MARG2_ADDR 0x4033B354
7914 /// Offset of the RWNXAGCACI40MARG2 register from the base address
7915 #define RIU_RWNXAGCACI40MARG2_OFFSET 0x00000354
7916 /// Index of the RWNXAGCACI40MARG2 register
7917 #define RIU_RWNXAGCACI40MARG2_INDEX 0x000000D5
7918 /// Reset value of the RWNXAGCACI40MARG2 register
7919 #define RIU_RWNXAGCACI40MARG2_RESET 0x00000101
7920
7921 /**
7922 * @brief Returns the current value of the RWNXAGCACI40MARG2 register.
7923 * The RWNXAGCACI40MARG2 register will be read and its value returned.
7924 * @return The current value of the RWNXAGCACI40MARG2 register.
7925 */
riu_rwnxagcaci40marg2_get(void)7926 __INLINE uint32_t riu_rwnxagcaci40marg2_get(void)
7927 {
7928 return PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG2_ADDR);
7929 }
7930
7931 /**
7932 * @brief Sets the RWNXAGCACI40MARG2 register to a value.
7933 * The RWNXAGCACI40MARG2 register will be written.
7934 * @param value - The value to write.
7935 */
riu_rwnxagcaci40marg2_set(uint32_t value)7936 __INLINE void riu_rwnxagcaci40marg2_set(uint32_t value)
7937 {
7938 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG2_ADDR, value);
7939 }
7940
7941 // field definitions
7942 /// ACI40MARGMCS9 field mask
7943 #define RIU_ACI40MARGMCS9_MASK ((uint32_t)0x00003F00)
7944 /// ACI40MARGMCS9 field LSB position
7945 #define RIU_ACI40MARGMCS9_LSB 8
7946 /// ACI40MARGMCS9 field width
7947 #define RIU_ACI40MARGMCS9_WIDTH ((uint32_t)0x00000006)
7948 /// ACI40MARGMCS8 field mask
7949 #define RIU_ACI40MARGMCS8_MASK ((uint32_t)0x0000003F)
7950 /// ACI40MARGMCS8 field LSB position
7951 #define RIU_ACI40MARGMCS8_LSB 0
7952 /// ACI40MARGMCS8 field width
7953 #define RIU_ACI40MARGMCS8_WIDTH ((uint32_t)0x00000006)
7954
7955 /// ACI40MARGMCS9 field reset value
7956 #define RIU_ACI40MARGMCS9_RST 0x1
7957 /// ACI40MARGMCS8 field reset value
7958 #define RIU_ACI40MARGMCS8_RST 0x1
7959
7960 /**
7961 * @brief Constructs a value for the RWNXAGCACI40MARG2 register given values for its fields
7962 * and writes the value to the register.
7963 *
7964 * @param[in] aci40margmcs9 - The value to use for the ACI40MARGMCS9 field.
7965 * @param[in] aci40margmcs8 - The value to use for the ACI40MARGMCS8 field.
7966 */
riu_rwnxagcaci40marg2_pack(uint8_t aci40margmcs9,uint8_t aci40margmcs8)7967 __INLINE void riu_rwnxagcaci40marg2_pack(uint8_t aci40margmcs9, uint8_t aci40margmcs8)
7968 {
7969 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG2_ADDR, ((uint32_t)aci40margmcs9 << 8) | ((uint32_t)aci40margmcs8 << 0));
7970 }
7971
7972 /**
7973 * @brief Unpacks RWNXAGCACI40MARG2's fields from current value of the RWNXAGCACI40MARG2 register.
7974 *
7975 * Reads the RWNXAGCACI40MARG2 register and populates all the _field variables with the corresponding
7976 * values from the register.
7977 *
7978 * @param[out] aci40margmcs9 - Will be populated with the current value of this field from the register.
7979 * @param[out] aci40margmcs8 - Will be populated with the current value of this field from the register.
7980 */
riu_rwnxagcaci40marg2_unpack(uint8_t * aci40margmcs9,uint8_t * aci40margmcs8)7981 __INLINE void riu_rwnxagcaci40marg2_unpack(uint8_t* aci40margmcs9, uint8_t* aci40margmcs8)
7982 {
7983 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG2_ADDR);
7984
7985 *aci40margmcs9 = (localVal & ((uint32_t)0x00003F00)) >> 8;
7986 *aci40margmcs8 = (localVal & ((uint32_t)0x0000003F)) >> 0;
7987 }
7988
7989 /**
7990 * @brief Returns the current value of the ACI40MARGMCS9 field in the RWNXAGCACI40MARG2 register.
7991 *
7992 * The RWNXAGCACI40MARG2 register will be read and the ACI40MARGMCS9 field's value will be returned.
7993 *
7994 * @return The current value of the ACI40MARGMCS9 field in the RWNXAGCACI40MARG2 register.
7995 */
riu_aci40margmcs9_getf(void)7996 __INLINE uint8_t riu_aci40margmcs9_getf(void)
7997 {
7998 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG2_ADDR);
7999 return ((localVal & ((uint32_t)0x00003F00)) >> 8);
8000 }
8001
8002 /**
8003 * @brief Sets the ACI40MARGMCS9 field of the RWNXAGCACI40MARG2 register.
8004 *
8005 * The RWNXAGCACI40MARG2 register will be read, modified to contain the new field value, and written.
8006 *
8007 * @param[in] aci40margmcs9 - The value to set the field to.
8008 */
riu_aci40margmcs9_setf(uint8_t aci40margmcs9)8009 __INLINE void riu_aci40margmcs9_setf(uint8_t aci40margmcs9)
8010 {
8011 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG2_ADDR) & ~((uint32_t)0x00003F00)) | ((uint32_t)aci40margmcs9 << 8));
8012 }
8013
8014 /**
8015 * @brief Returns the current value of the ACI40MARGMCS8 field in the RWNXAGCACI40MARG2 register.
8016 *
8017 * The RWNXAGCACI40MARG2 register will be read and the ACI40MARGMCS8 field's value will be returned.
8018 *
8019 * @return The current value of the ACI40MARGMCS8 field in the RWNXAGCACI40MARG2 register.
8020 */
riu_aci40margmcs8_getf(void)8021 __INLINE uint8_t riu_aci40margmcs8_getf(void)
8022 {
8023 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG2_ADDR);
8024 return ((localVal & ((uint32_t)0x0000003F)) >> 0);
8025 }
8026
8027 /**
8028 * @brief Sets the ACI40MARGMCS8 field of the RWNXAGCACI40MARG2 register.
8029 *
8030 * The RWNXAGCACI40MARG2 register will be read, modified to contain the new field value, and written.
8031 *
8032 * @param[in] aci40margmcs8 - The value to set the field to.
8033 */
riu_aci40margmcs8_setf(uint8_t aci40margmcs8)8034 __INLINE void riu_aci40margmcs8_setf(uint8_t aci40margmcs8)
8035 {
8036 PLATFORM_REG_WRITE(RIU_RWNXAGCACI40MARG2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI40MARG2_ADDR) & ~((uint32_t)0x0000003F)) | ((uint32_t)aci40margmcs8 << 0));
8037 }
8038
8039 /// @}
8040
8041 /**
8042 * @name RWNXAGCACI80MARG0 register definitions
8043 * <table>
8044 * <caption id="RWNXAGCACI80MARG0_BF">RWNXAGCACI80MARG0 bitfields</caption>
8045 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
8046 * <tr><td>29:24 <td> ACI80MARGMCS3 <td>R <td>R/W <td>0x18
8047 * <tr><td>21:16 <td> ACI80MARGMCS2 <td>R <td>R/W <td>0x1B
8048 * <tr><td>13:08 <td> ACI80MARGMCS1 <td>R <td>R/W <td>0x1D
8049 * <tr><td>05:00 <td> ACI80MARGMCS0 <td>R <td>R/W <td>0x20
8050 * </table>
8051 *
8052 * @{
8053 */
8054
8055 /// Address of the RWNXAGCACI80MARG0 register
8056 #define RIU_RWNXAGCACI80MARG0_ADDR 0x4033B358
8057 /// Offset of the RWNXAGCACI80MARG0 register from the base address
8058 #define RIU_RWNXAGCACI80MARG0_OFFSET 0x00000358
8059 /// Index of the RWNXAGCACI80MARG0 register
8060 #define RIU_RWNXAGCACI80MARG0_INDEX 0x000000D6
8061 /// Reset value of the RWNXAGCACI80MARG0 register
8062 #define RIU_RWNXAGCACI80MARG0_RESET 0x181B1D20
8063
8064 /**
8065 * @brief Returns the current value of the RWNXAGCACI80MARG0 register.
8066 * The RWNXAGCACI80MARG0 register will be read and its value returned.
8067 * @return The current value of the RWNXAGCACI80MARG0 register.
8068 */
riu_rwnxagcaci80marg0_get(void)8069 __INLINE uint32_t riu_rwnxagcaci80marg0_get(void)
8070 {
8071 return PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG0_ADDR);
8072 }
8073
8074 /**
8075 * @brief Sets the RWNXAGCACI80MARG0 register to a value.
8076 * The RWNXAGCACI80MARG0 register will be written.
8077 * @param value - The value to write.
8078 */
riu_rwnxagcaci80marg0_set(uint32_t value)8079 __INLINE void riu_rwnxagcaci80marg0_set(uint32_t value)
8080 {
8081 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG0_ADDR, value);
8082 }
8083
8084 // field definitions
8085 /// ACI80MARGMCS3 field mask
8086 #define RIU_ACI80MARGMCS3_MASK ((uint32_t)0x3F000000)
8087 /// ACI80MARGMCS3 field LSB position
8088 #define RIU_ACI80MARGMCS3_LSB 24
8089 /// ACI80MARGMCS3 field width
8090 #define RIU_ACI80MARGMCS3_WIDTH ((uint32_t)0x00000006)
8091 /// ACI80MARGMCS2 field mask
8092 #define RIU_ACI80MARGMCS2_MASK ((uint32_t)0x003F0000)
8093 /// ACI80MARGMCS2 field LSB position
8094 #define RIU_ACI80MARGMCS2_LSB 16
8095 /// ACI80MARGMCS2 field width
8096 #define RIU_ACI80MARGMCS2_WIDTH ((uint32_t)0x00000006)
8097 /// ACI80MARGMCS1 field mask
8098 #define RIU_ACI80MARGMCS1_MASK ((uint32_t)0x00003F00)
8099 /// ACI80MARGMCS1 field LSB position
8100 #define RIU_ACI80MARGMCS1_LSB 8
8101 /// ACI80MARGMCS1 field width
8102 #define RIU_ACI80MARGMCS1_WIDTH ((uint32_t)0x00000006)
8103 /// ACI80MARGMCS0 field mask
8104 #define RIU_ACI80MARGMCS0_MASK ((uint32_t)0x0000003F)
8105 /// ACI80MARGMCS0 field LSB position
8106 #define RIU_ACI80MARGMCS0_LSB 0
8107 /// ACI80MARGMCS0 field width
8108 #define RIU_ACI80MARGMCS0_WIDTH ((uint32_t)0x00000006)
8109
8110 /// ACI80MARGMCS3 field reset value
8111 #define RIU_ACI80MARGMCS3_RST 0x18
8112 /// ACI80MARGMCS2 field reset value
8113 #define RIU_ACI80MARGMCS2_RST 0x1B
8114 /// ACI80MARGMCS1 field reset value
8115 #define RIU_ACI80MARGMCS1_RST 0x1D
8116 /// ACI80MARGMCS0 field reset value
8117 #define RIU_ACI80MARGMCS0_RST 0x20
8118
8119 /**
8120 * @brief Constructs a value for the RWNXAGCACI80MARG0 register given values for its fields
8121 * and writes the value to the register.
8122 *
8123 * @param[in] aci80margmcs3 - The value to use for the ACI80MARGMCS3 field.
8124 * @param[in] aci80margmcs2 - The value to use for the ACI80MARGMCS2 field.
8125 * @param[in] aci80margmcs1 - The value to use for the ACI80MARGMCS1 field.
8126 * @param[in] aci80margmcs0 - The value to use for the ACI80MARGMCS0 field.
8127 */
riu_rwnxagcaci80marg0_pack(uint8_t aci80margmcs3,uint8_t aci80margmcs2,uint8_t aci80margmcs1,uint8_t aci80margmcs0)8128 __INLINE void riu_rwnxagcaci80marg0_pack(uint8_t aci80margmcs3, uint8_t aci80margmcs2, uint8_t aci80margmcs1, uint8_t aci80margmcs0)
8129 {
8130 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG0_ADDR, ((uint32_t)aci80margmcs3 << 24) | ((uint32_t)aci80margmcs2 << 16) | ((uint32_t)aci80margmcs1 << 8) | ((uint32_t)aci80margmcs0 << 0));
8131 }
8132
8133 /**
8134 * @brief Unpacks RWNXAGCACI80MARG0's fields from current value of the RWNXAGCACI80MARG0 register.
8135 *
8136 * Reads the RWNXAGCACI80MARG0 register and populates all the _field variables with the corresponding
8137 * values from the register.
8138 *
8139 * @param[out] aci80margmcs3 - Will be populated with the current value of this field from the register.
8140 * @param[out] aci80margmcs2 - Will be populated with the current value of this field from the register.
8141 * @param[out] aci80margmcs1 - Will be populated with the current value of this field from the register.
8142 * @param[out] aci80margmcs0 - Will be populated with the current value of this field from the register.
8143 */
riu_rwnxagcaci80marg0_unpack(uint8_t * aci80margmcs3,uint8_t * aci80margmcs2,uint8_t * aci80margmcs1,uint8_t * aci80margmcs0)8144 __INLINE void riu_rwnxagcaci80marg0_unpack(uint8_t* aci80margmcs3, uint8_t* aci80margmcs2, uint8_t* aci80margmcs1, uint8_t* aci80margmcs0)
8145 {
8146 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG0_ADDR);
8147
8148 *aci80margmcs3 = (localVal & ((uint32_t)0x3F000000)) >> 24;
8149 *aci80margmcs2 = (localVal & ((uint32_t)0x003F0000)) >> 16;
8150 *aci80margmcs1 = (localVal & ((uint32_t)0x00003F00)) >> 8;
8151 *aci80margmcs0 = (localVal & ((uint32_t)0x0000003F)) >> 0;
8152 }
8153
8154 /**
8155 * @brief Returns the current value of the ACI80MARGMCS3 field in the RWNXAGCACI80MARG0 register.
8156 *
8157 * The RWNXAGCACI80MARG0 register will be read and the ACI80MARGMCS3 field's value will be returned.
8158 *
8159 * @return The current value of the ACI80MARGMCS3 field in the RWNXAGCACI80MARG0 register.
8160 */
riu_aci80margmcs3_getf(void)8161 __INLINE uint8_t riu_aci80margmcs3_getf(void)
8162 {
8163 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG0_ADDR);
8164 return ((localVal & ((uint32_t)0x3F000000)) >> 24);
8165 }
8166
8167 /**
8168 * @brief Sets the ACI80MARGMCS3 field of the RWNXAGCACI80MARG0 register.
8169 *
8170 * The RWNXAGCACI80MARG0 register will be read, modified to contain the new field value, and written.
8171 *
8172 * @param[in] aci80margmcs3 - The value to set the field to.
8173 */
riu_aci80margmcs3_setf(uint8_t aci80margmcs3)8174 __INLINE void riu_aci80margmcs3_setf(uint8_t aci80margmcs3)
8175 {
8176 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG0_ADDR) & ~((uint32_t)0x3F000000)) | ((uint32_t)aci80margmcs3 << 24));
8177 }
8178
8179 /**
8180 * @brief Returns the current value of the ACI80MARGMCS2 field in the RWNXAGCACI80MARG0 register.
8181 *
8182 * The RWNXAGCACI80MARG0 register will be read and the ACI80MARGMCS2 field's value will be returned.
8183 *
8184 * @return The current value of the ACI80MARGMCS2 field in the RWNXAGCACI80MARG0 register.
8185 */
riu_aci80margmcs2_getf(void)8186 __INLINE uint8_t riu_aci80margmcs2_getf(void)
8187 {
8188 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG0_ADDR);
8189 return ((localVal & ((uint32_t)0x003F0000)) >> 16);
8190 }
8191
8192 /**
8193 * @brief Sets the ACI80MARGMCS2 field of the RWNXAGCACI80MARG0 register.
8194 *
8195 * The RWNXAGCACI80MARG0 register will be read, modified to contain the new field value, and written.
8196 *
8197 * @param[in] aci80margmcs2 - The value to set the field to.
8198 */
riu_aci80margmcs2_setf(uint8_t aci80margmcs2)8199 __INLINE void riu_aci80margmcs2_setf(uint8_t aci80margmcs2)
8200 {
8201 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG0_ADDR) & ~((uint32_t)0x003F0000)) | ((uint32_t)aci80margmcs2 << 16));
8202 }
8203
8204 /**
8205 * @brief Returns the current value of the ACI80MARGMCS1 field in the RWNXAGCACI80MARG0 register.
8206 *
8207 * The RWNXAGCACI80MARG0 register will be read and the ACI80MARGMCS1 field's value will be returned.
8208 *
8209 * @return The current value of the ACI80MARGMCS1 field in the RWNXAGCACI80MARG0 register.
8210 */
riu_aci80margmcs1_getf(void)8211 __INLINE uint8_t riu_aci80margmcs1_getf(void)
8212 {
8213 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG0_ADDR);
8214 return ((localVal & ((uint32_t)0x00003F00)) >> 8);
8215 }
8216
8217 /**
8218 * @brief Sets the ACI80MARGMCS1 field of the RWNXAGCACI80MARG0 register.
8219 *
8220 * The RWNXAGCACI80MARG0 register will be read, modified to contain the new field value, and written.
8221 *
8222 * @param[in] aci80margmcs1 - The value to set the field to.
8223 */
riu_aci80margmcs1_setf(uint8_t aci80margmcs1)8224 __INLINE void riu_aci80margmcs1_setf(uint8_t aci80margmcs1)
8225 {
8226 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG0_ADDR) & ~((uint32_t)0x00003F00)) | ((uint32_t)aci80margmcs1 << 8));
8227 }
8228
8229 /**
8230 * @brief Returns the current value of the ACI80MARGMCS0 field in the RWNXAGCACI80MARG0 register.
8231 *
8232 * The RWNXAGCACI80MARG0 register will be read and the ACI80MARGMCS0 field's value will be returned.
8233 *
8234 * @return The current value of the ACI80MARGMCS0 field in the RWNXAGCACI80MARG0 register.
8235 */
riu_aci80margmcs0_getf(void)8236 __INLINE uint8_t riu_aci80margmcs0_getf(void)
8237 {
8238 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG0_ADDR);
8239 return ((localVal & ((uint32_t)0x0000003F)) >> 0);
8240 }
8241
8242 /**
8243 * @brief Sets the ACI80MARGMCS0 field of the RWNXAGCACI80MARG0 register.
8244 *
8245 * The RWNXAGCACI80MARG0 register will be read, modified to contain the new field value, and written.
8246 *
8247 * @param[in] aci80margmcs0 - The value to set the field to.
8248 */
riu_aci80margmcs0_setf(uint8_t aci80margmcs0)8249 __INLINE void riu_aci80margmcs0_setf(uint8_t aci80margmcs0)
8250 {
8251 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG0_ADDR) & ~((uint32_t)0x0000003F)) | ((uint32_t)aci80margmcs0 << 0));
8252 }
8253
8254 /// @}
8255
8256 /**
8257 * @name RWNXAGCACI80MARG1 register definitions
8258 * <table>
8259 * <caption id="RWNXAGCACI80MARG1_BF">RWNXAGCACI80MARG1 bitfields</caption>
8260 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
8261 * <tr><td>29:24 <td> ACI80MARGMCS7 <td>R <td>R/W <td>0xE
8262 * <tr><td>21:16 <td> ACI80MARGMCS6 <td>R <td>R/W <td>0xF
8263 * <tr><td>13:08 <td> ACI80MARGMCS5 <td>R <td>R/W <td>0x10
8264 * <tr><td>05:00 <td> ACI80MARGMCS4 <td>R <td>R/W <td>0x14
8265 * </table>
8266 *
8267 * @{
8268 */
8269
8270 /// Address of the RWNXAGCACI80MARG1 register
8271 #define RIU_RWNXAGCACI80MARG1_ADDR 0x4033B35C
8272 /// Offset of the RWNXAGCACI80MARG1 register from the base address
8273 #define RIU_RWNXAGCACI80MARG1_OFFSET 0x0000035C
8274 /// Index of the RWNXAGCACI80MARG1 register
8275 #define RIU_RWNXAGCACI80MARG1_INDEX 0x000000D7
8276 /// Reset value of the RWNXAGCACI80MARG1 register
8277 #define RIU_RWNXAGCACI80MARG1_RESET 0x0E0F1014
8278
8279 /**
8280 * @brief Returns the current value of the RWNXAGCACI80MARG1 register.
8281 * The RWNXAGCACI80MARG1 register will be read and its value returned.
8282 * @return The current value of the RWNXAGCACI80MARG1 register.
8283 */
riu_rwnxagcaci80marg1_get(void)8284 __INLINE uint32_t riu_rwnxagcaci80marg1_get(void)
8285 {
8286 return PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG1_ADDR);
8287 }
8288
8289 /**
8290 * @brief Sets the RWNXAGCACI80MARG1 register to a value.
8291 * The RWNXAGCACI80MARG1 register will be written.
8292 * @param value - The value to write.
8293 */
riu_rwnxagcaci80marg1_set(uint32_t value)8294 __INLINE void riu_rwnxagcaci80marg1_set(uint32_t value)
8295 {
8296 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG1_ADDR, value);
8297 }
8298
8299 // field definitions
8300 /// ACI80MARGMCS7 field mask
8301 #define RIU_ACI80MARGMCS7_MASK ((uint32_t)0x3F000000)
8302 /// ACI80MARGMCS7 field LSB position
8303 #define RIU_ACI80MARGMCS7_LSB 24
8304 /// ACI80MARGMCS7 field width
8305 #define RIU_ACI80MARGMCS7_WIDTH ((uint32_t)0x00000006)
8306 /// ACI80MARGMCS6 field mask
8307 #define RIU_ACI80MARGMCS6_MASK ((uint32_t)0x003F0000)
8308 /// ACI80MARGMCS6 field LSB position
8309 #define RIU_ACI80MARGMCS6_LSB 16
8310 /// ACI80MARGMCS6 field width
8311 #define RIU_ACI80MARGMCS6_WIDTH ((uint32_t)0x00000006)
8312 /// ACI80MARGMCS5 field mask
8313 #define RIU_ACI80MARGMCS5_MASK ((uint32_t)0x00003F00)
8314 /// ACI80MARGMCS5 field LSB position
8315 #define RIU_ACI80MARGMCS5_LSB 8
8316 /// ACI80MARGMCS5 field width
8317 #define RIU_ACI80MARGMCS5_WIDTH ((uint32_t)0x00000006)
8318 /// ACI80MARGMCS4 field mask
8319 #define RIU_ACI80MARGMCS4_MASK ((uint32_t)0x0000003F)
8320 /// ACI80MARGMCS4 field LSB position
8321 #define RIU_ACI80MARGMCS4_LSB 0
8322 /// ACI80MARGMCS4 field width
8323 #define RIU_ACI80MARGMCS4_WIDTH ((uint32_t)0x00000006)
8324
8325 /// ACI80MARGMCS7 field reset value
8326 #define RIU_ACI80MARGMCS7_RST 0xE
8327 /// ACI80MARGMCS6 field reset value
8328 #define RIU_ACI80MARGMCS6_RST 0xF
8329 /// ACI80MARGMCS5 field reset value
8330 #define RIU_ACI80MARGMCS5_RST 0x10
8331 /// ACI80MARGMCS4 field reset value
8332 #define RIU_ACI80MARGMCS4_RST 0x14
8333
8334 /**
8335 * @brief Constructs a value for the RWNXAGCACI80MARG1 register given values for its fields
8336 * and writes the value to the register.
8337 *
8338 * @param[in] aci80margmcs7 - The value to use for the ACI80MARGMCS7 field.
8339 * @param[in] aci80margmcs6 - The value to use for the ACI80MARGMCS6 field.
8340 * @param[in] aci80margmcs5 - The value to use for the ACI80MARGMCS5 field.
8341 * @param[in] aci80margmcs4 - The value to use for the ACI80MARGMCS4 field.
8342 */
riu_rwnxagcaci80marg1_pack(uint8_t aci80margmcs7,uint8_t aci80margmcs6,uint8_t aci80margmcs5,uint8_t aci80margmcs4)8343 __INLINE void riu_rwnxagcaci80marg1_pack(uint8_t aci80margmcs7, uint8_t aci80margmcs6, uint8_t aci80margmcs5, uint8_t aci80margmcs4)
8344 {
8345 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG1_ADDR, ((uint32_t)aci80margmcs7 << 24) | ((uint32_t)aci80margmcs6 << 16) | ((uint32_t)aci80margmcs5 << 8) | ((uint32_t)aci80margmcs4 << 0));
8346 }
8347
8348 /**
8349 * @brief Unpacks RWNXAGCACI80MARG1's fields from current value of the RWNXAGCACI80MARG1 register.
8350 *
8351 * Reads the RWNXAGCACI80MARG1 register and populates all the _field variables with the corresponding
8352 * values from the register.
8353 *
8354 * @param[out] aci80margmcs7 - Will be populated with the current value of this field from the register.
8355 * @param[out] aci80margmcs6 - Will be populated with the current value of this field from the register.
8356 * @param[out] aci80margmcs5 - Will be populated with the current value of this field from the register.
8357 * @param[out] aci80margmcs4 - Will be populated with the current value of this field from the register.
8358 */
riu_rwnxagcaci80marg1_unpack(uint8_t * aci80margmcs7,uint8_t * aci80margmcs6,uint8_t * aci80margmcs5,uint8_t * aci80margmcs4)8359 __INLINE void riu_rwnxagcaci80marg1_unpack(uint8_t* aci80margmcs7, uint8_t* aci80margmcs6, uint8_t* aci80margmcs5, uint8_t* aci80margmcs4)
8360 {
8361 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG1_ADDR);
8362
8363 *aci80margmcs7 = (localVal & ((uint32_t)0x3F000000)) >> 24;
8364 *aci80margmcs6 = (localVal & ((uint32_t)0x003F0000)) >> 16;
8365 *aci80margmcs5 = (localVal & ((uint32_t)0x00003F00)) >> 8;
8366 *aci80margmcs4 = (localVal & ((uint32_t)0x0000003F)) >> 0;
8367 }
8368
8369 /**
8370 * @brief Returns the current value of the ACI80MARGMCS7 field in the RWNXAGCACI80MARG1 register.
8371 *
8372 * The RWNXAGCACI80MARG1 register will be read and the ACI80MARGMCS7 field's value will be returned.
8373 *
8374 * @return The current value of the ACI80MARGMCS7 field in the RWNXAGCACI80MARG1 register.
8375 */
riu_aci80margmcs7_getf(void)8376 __INLINE uint8_t riu_aci80margmcs7_getf(void)
8377 {
8378 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG1_ADDR);
8379 return ((localVal & ((uint32_t)0x3F000000)) >> 24);
8380 }
8381
8382 /**
8383 * @brief Sets the ACI80MARGMCS7 field of the RWNXAGCACI80MARG1 register.
8384 *
8385 * The RWNXAGCACI80MARG1 register will be read, modified to contain the new field value, and written.
8386 *
8387 * @param[in] aci80margmcs7 - The value to set the field to.
8388 */
riu_aci80margmcs7_setf(uint8_t aci80margmcs7)8389 __INLINE void riu_aci80margmcs7_setf(uint8_t aci80margmcs7)
8390 {
8391 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG1_ADDR) & ~((uint32_t)0x3F000000)) | ((uint32_t)aci80margmcs7 << 24));
8392 }
8393
8394 /**
8395 * @brief Returns the current value of the ACI80MARGMCS6 field in the RWNXAGCACI80MARG1 register.
8396 *
8397 * The RWNXAGCACI80MARG1 register will be read and the ACI80MARGMCS6 field's value will be returned.
8398 *
8399 * @return The current value of the ACI80MARGMCS6 field in the RWNXAGCACI80MARG1 register.
8400 */
riu_aci80margmcs6_getf(void)8401 __INLINE uint8_t riu_aci80margmcs6_getf(void)
8402 {
8403 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG1_ADDR);
8404 return ((localVal & ((uint32_t)0x003F0000)) >> 16);
8405 }
8406
8407 /**
8408 * @brief Sets the ACI80MARGMCS6 field of the RWNXAGCACI80MARG1 register.
8409 *
8410 * The RWNXAGCACI80MARG1 register will be read, modified to contain the new field value, and written.
8411 *
8412 * @param[in] aci80margmcs6 - The value to set the field to.
8413 */
riu_aci80margmcs6_setf(uint8_t aci80margmcs6)8414 __INLINE void riu_aci80margmcs6_setf(uint8_t aci80margmcs6)
8415 {
8416 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG1_ADDR) & ~((uint32_t)0x003F0000)) | ((uint32_t)aci80margmcs6 << 16));
8417 }
8418
8419 /**
8420 * @brief Returns the current value of the ACI80MARGMCS5 field in the RWNXAGCACI80MARG1 register.
8421 *
8422 * The RWNXAGCACI80MARG1 register will be read and the ACI80MARGMCS5 field's value will be returned.
8423 *
8424 * @return The current value of the ACI80MARGMCS5 field in the RWNXAGCACI80MARG1 register.
8425 */
riu_aci80margmcs5_getf(void)8426 __INLINE uint8_t riu_aci80margmcs5_getf(void)
8427 {
8428 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG1_ADDR);
8429 return ((localVal & ((uint32_t)0x00003F00)) >> 8);
8430 }
8431
8432 /**
8433 * @brief Sets the ACI80MARGMCS5 field of the RWNXAGCACI80MARG1 register.
8434 *
8435 * The RWNXAGCACI80MARG1 register will be read, modified to contain the new field value, and written.
8436 *
8437 * @param[in] aci80margmcs5 - The value to set the field to.
8438 */
riu_aci80margmcs5_setf(uint8_t aci80margmcs5)8439 __INLINE void riu_aci80margmcs5_setf(uint8_t aci80margmcs5)
8440 {
8441 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG1_ADDR) & ~((uint32_t)0x00003F00)) | ((uint32_t)aci80margmcs5 << 8));
8442 }
8443
8444 /**
8445 * @brief Returns the current value of the ACI80MARGMCS4 field in the RWNXAGCACI80MARG1 register.
8446 *
8447 * The RWNXAGCACI80MARG1 register will be read and the ACI80MARGMCS4 field's value will be returned.
8448 *
8449 * @return The current value of the ACI80MARGMCS4 field in the RWNXAGCACI80MARG1 register.
8450 */
riu_aci80margmcs4_getf(void)8451 __INLINE uint8_t riu_aci80margmcs4_getf(void)
8452 {
8453 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG1_ADDR);
8454 return ((localVal & ((uint32_t)0x0000003F)) >> 0);
8455 }
8456
8457 /**
8458 * @brief Sets the ACI80MARGMCS4 field of the RWNXAGCACI80MARG1 register.
8459 *
8460 * The RWNXAGCACI80MARG1 register will be read, modified to contain the new field value, and written.
8461 *
8462 * @param[in] aci80margmcs4 - The value to set the field to.
8463 */
riu_aci80margmcs4_setf(uint8_t aci80margmcs4)8464 __INLINE void riu_aci80margmcs4_setf(uint8_t aci80margmcs4)
8465 {
8466 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG1_ADDR) & ~((uint32_t)0x0000003F)) | ((uint32_t)aci80margmcs4 << 0));
8467 }
8468
8469 /// @}
8470
8471 /**
8472 * @name RWNXAGCACI80MARG2 register definitions
8473 * <table>
8474 * <caption id="RWNXAGCACI80MARG2_BF">RWNXAGCACI80MARG2 bitfields</caption>
8475 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
8476 * <tr><td>13:08 <td> ACI80MARGMCS9 <td>R <td>R/W <td>0x8
8477 * <tr><td>05:00 <td> ACI80MARGMCS8 <td>R <td>R/W <td>0xA
8478 * </table>
8479 *
8480 * @{
8481 */
8482
8483 /// Address of the RWNXAGCACI80MARG2 register
8484 #define RIU_RWNXAGCACI80MARG2_ADDR 0x4033B360
8485 /// Offset of the RWNXAGCACI80MARG2 register from the base address
8486 #define RIU_RWNXAGCACI80MARG2_OFFSET 0x00000360
8487 /// Index of the RWNXAGCACI80MARG2 register
8488 #define RIU_RWNXAGCACI80MARG2_INDEX 0x000000D8
8489 /// Reset value of the RWNXAGCACI80MARG2 register
8490 #define RIU_RWNXAGCACI80MARG2_RESET 0x0000080A
8491
8492 /**
8493 * @brief Returns the current value of the RWNXAGCACI80MARG2 register.
8494 * The RWNXAGCACI80MARG2 register will be read and its value returned.
8495 * @return The current value of the RWNXAGCACI80MARG2 register.
8496 */
riu_rwnxagcaci80marg2_get(void)8497 __INLINE uint32_t riu_rwnxagcaci80marg2_get(void)
8498 {
8499 return PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG2_ADDR);
8500 }
8501
8502 /**
8503 * @brief Sets the RWNXAGCACI80MARG2 register to a value.
8504 * The RWNXAGCACI80MARG2 register will be written.
8505 * @param value - The value to write.
8506 */
riu_rwnxagcaci80marg2_set(uint32_t value)8507 __INLINE void riu_rwnxagcaci80marg2_set(uint32_t value)
8508 {
8509 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG2_ADDR, value);
8510 }
8511
8512 // field definitions
8513 /// ACI80MARGMCS9 field mask
8514 #define RIU_ACI80MARGMCS9_MASK ((uint32_t)0x00003F00)
8515 /// ACI80MARGMCS9 field LSB position
8516 #define RIU_ACI80MARGMCS9_LSB 8
8517 /// ACI80MARGMCS9 field width
8518 #define RIU_ACI80MARGMCS9_WIDTH ((uint32_t)0x00000006)
8519 /// ACI80MARGMCS8 field mask
8520 #define RIU_ACI80MARGMCS8_MASK ((uint32_t)0x0000003F)
8521 /// ACI80MARGMCS8 field LSB position
8522 #define RIU_ACI80MARGMCS8_LSB 0
8523 /// ACI80MARGMCS8 field width
8524 #define RIU_ACI80MARGMCS8_WIDTH ((uint32_t)0x00000006)
8525
8526 /// ACI80MARGMCS9 field reset value
8527 #define RIU_ACI80MARGMCS9_RST 0x8
8528 /// ACI80MARGMCS8 field reset value
8529 #define RIU_ACI80MARGMCS8_RST 0xA
8530
8531 /**
8532 * @brief Constructs a value for the RWNXAGCACI80MARG2 register given values for its fields
8533 * and writes the value to the register.
8534 *
8535 * @param[in] aci80margmcs9 - The value to use for the ACI80MARGMCS9 field.
8536 * @param[in] aci80margmcs8 - The value to use for the ACI80MARGMCS8 field.
8537 */
riu_rwnxagcaci80marg2_pack(uint8_t aci80margmcs9,uint8_t aci80margmcs8)8538 __INLINE void riu_rwnxagcaci80marg2_pack(uint8_t aci80margmcs9, uint8_t aci80margmcs8)
8539 {
8540 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG2_ADDR, ((uint32_t)aci80margmcs9 << 8) | ((uint32_t)aci80margmcs8 << 0));
8541 }
8542
8543 /**
8544 * @brief Unpacks RWNXAGCACI80MARG2's fields from current value of the RWNXAGCACI80MARG2 register.
8545 *
8546 * Reads the RWNXAGCACI80MARG2 register and populates all the _field variables with the corresponding
8547 * values from the register.
8548 *
8549 * @param[out] aci80margmcs9 - Will be populated with the current value of this field from the register.
8550 * @param[out] aci80margmcs8 - Will be populated with the current value of this field from the register.
8551 */
riu_rwnxagcaci80marg2_unpack(uint8_t * aci80margmcs9,uint8_t * aci80margmcs8)8552 __INLINE void riu_rwnxagcaci80marg2_unpack(uint8_t* aci80margmcs9, uint8_t* aci80margmcs8)
8553 {
8554 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG2_ADDR);
8555
8556 *aci80margmcs9 = (localVal & ((uint32_t)0x00003F00)) >> 8;
8557 *aci80margmcs8 = (localVal & ((uint32_t)0x0000003F)) >> 0;
8558 }
8559
8560 /**
8561 * @brief Returns the current value of the ACI80MARGMCS9 field in the RWNXAGCACI80MARG2 register.
8562 *
8563 * The RWNXAGCACI80MARG2 register will be read and the ACI80MARGMCS9 field's value will be returned.
8564 *
8565 * @return The current value of the ACI80MARGMCS9 field in the RWNXAGCACI80MARG2 register.
8566 */
riu_aci80margmcs9_getf(void)8567 __INLINE uint8_t riu_aci80margmcs9_getf(void)
8568 {
8569 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG2_ADDR);
8570 return ((localVal & ((uint32_t)0x00003F00)) >> 8);
8571 }
8572
8573 /**
8574 * @brief Sets the ACI80MARGMCS9 field of the RWNXAGCACI80MARG2 register.
8575 *
8576 * The RWNXAGCACI80MARG2 register will be read, modified to contain the new field value, and written.
8577 *
8578 * @param[in] aci80margmcs9 - The value to set the field to.
8579 */
riu_aci80margmcs9_setf(uint8_t aci80margmcs9)8580 __INLINE void riu_aci80margmcs9_setf(uint8_t aci80margmcs9)
8581 {
8582 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG2_ADDR) & ~((uint32_t)0x00003F00)) | ((uint32_t)aci80margmcs9 << 8));
8583 }
8584
8585 /**
8586 * @brief Returns the current value of the ACI80MARGMCS8 field in the RWNXAGCACI80MARG2 register.
8587 *
8588 * The RWNXAGCACI80MARG2 register will be read and the ACI80MARGMCS8 field's value will be returned.
8589 *
8590 * @return The current value of the ACI80MARGMCS8 field in the RWNXAGCACI80MARG2 register.
8591 */
riu_aci80margmcs8_getf(void)8592 __INLINE uint8_t riu_aci80margmcs8_getf(void)
8593 {
8594 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG2_ADDR);
8595 return ((localVal & ((uint32_t)0x0000003F)) >> 0);
8596 }
8597
8598 /**
8599 * @brief Sets the ACI80MARGMCS8 field of the RWNXAGCACI80MARG2 register.
8600 *
8601 * The RWNXAGCACI80MARG2 register will be read, modified to contain the new field value, and written.
8602 *
8603 * @param[in] aci80margmcs8 - The value to set the field to.
8604 */
riu_aci80margmcs8_setf(uint8_t aci80margmcs8)8605 __INLINE void riu_aci80margmcs8_setf(uint8_t aci80margmcs8)
8606 {
8607 PLATFORM_REG_WRITE(RIU_RWNXAGCACI80MARG2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCACI80MARG2_ADDR) & ~((uint32_t)0x0000003F)) | ((uint32_t)aci80margmcs8 << 0));
8608 }
8609
8610 /// @}
8611
8612 /**
8613 * @name RWNXAGCSAT register definitions
8614 * <table>
8615 * <caption id="RWNXAGCSAT_BF">RWNXAGCSAT bitfields</caption>
8616 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
8617 * <tr><td>28:24 <td> SATDELAY50NS <td>R <td>R/W <td>0x8
8618 * <tr><td>21:16 <td> SATHIGHTHRDBV <td>R <td>R/W <td>0x39
8619 * <tr><td>13:08 <td> SATLOWTHRDBV <td>R <td>R/W <td>0x35
8620 * <tr><td>05:00 <td> SATTHRDBV <td>R <td>R/W <td>0x36
8621 * </table>
8622 *
8623 * @{
8624 */
8625
8626 /// Address of the RWNXAGCSAT register
8627 #define RIU_RWNXAGCSAT_ADDR 0x4033B364
8628 /// Offset of the RWNXAGCSAT register from the base address
8629 #define RIU_RWNXAGCSAT_OFFSET 0x00000364
8630 /// Index of the RWNXAGCSAT register
8631 #define RIU_RWNXAGCSAT_INDEX 0x000000D9
8632 /// Reset value of the RWNXAGCSAT register
8633 #define RIU_RWNXAGCSAT_RESET 0x08393536
8634
8635 /**
8636 * @brief Returns the current value of the RWNXAGCSAT register.
8637 * The RWNXAGCSAT register will be read and its value returned.
8638 * @return The current value of the RWNXAGCSAT register.
8639 */
riu_rwnxagcsat_get(void)8640 __INLINE uint32_t riu_rwnxagcsat_get(void)
8641 {
8642 return PLATFORM_REG_READ(RIU_RWNXAGCSAT_ADDR);
8643 }
8644
8645 /**
8646 * @brief Sets the RWNXAGCSAT register to a value.
8647 * The RWNXAGCSAT register will be written.
8648 * @param value - The value to write.
8649 */
riu_rwnxagcsat_set(uint32_t value)8650 __INLINE void riu_rwnxagcsat_set(uint32_t value)
8651 {
8652 PLATFORM_REG_WRITE(RIU_RWNXAGCSAT_ADDR, value);
8653 }
8654
8655 // field definitions
8656 /// SATDELAY50NS field mask
8657 #define RIU_SATDELAY50NS_MASK ((uint32_t)0x1F000000)
8658 /// SATDELAY50NS field LSB position
8659 #define RIU_SATDELAY50NS_LSB 24
8660 /// SATDELAY50NS field width
8661 #define RIU_SATDELAY50NS_WIDTH ((uint32_t)0x00000005)
8662 /// SATHIGHTHRDBV field mask
8663 #define RIU_SATHIGHTHRDBV_MASK ((uint32_t)0x003F0000)
8664 /// SATHIGHTHRDBV field LSB position
8665 #define RIU_SATHIGHTHRDBV_LSB 16
8666 /// SATHIGHTHRDBV field width
8667 #define RIU_SATHIGHTHRDBV_WIDTH ((uint32_t)0x00000006)
8668 /// SATLOWTHRDBV field mask
8669 #define RIU_SATLOWTHRDBV_MASK ((uint32_t)0x00003F00)
8670 /// SATLOWTHRDBV field LSB position
8671 #define RIU_SATLOWTHRDBV_LSB 8
8672 /// SATLOWTHRDBV field width
8673 #define RIU_SATLOWTHRDBV_WIDTH ((uint32_t)0x00000006)
8674 /// SATTHRDBV field mask
8675 #define RIU_SATTHRDBV_MASK ((uint32_t)0x0000003F)
8676 /// SATTHRDBV field LSB position
8677 #define RIU_SATTHRDBV_LSB 0
8678 /// SATTHRDBV field width
8679 #define RIU_SATTHRDBV_WIDTH ((uint32_t)0x00000006)
8680
8681 /// SATDELAY50NS field reset value
8682 #define RIU_SATDELAY50NS_RST 0x8
8683 /// SATHIGHTHRDBV field reset value
8684 #define RIU_SATHIGHTHRDBV_RST 0x39
8685 /// SATLOWTHRDBV field reset value
8686 #define RIU_SATLOWTHRDBV_RST 0x35
8687 /// SATTHRDBV field reset value
8688 #define RIU_SATTHRDBV_RST 0x36
8689
8690 /**
8691 * @brief Constructs a value for the RWNXAGCSAT register given values for its fields
8692 * and writes the value to the register.
8693 *
8694 * @param[in] satdelay50ns - The value to use for the SATDELAY50NS field.
8695 * @param[in] sathighthrdbv - The value to use for the SATHIGHTHRDBV field.
8696 * @param[in] satlowthrdbv - The value to use for the SATLOWTHRDBV field.
8697 * @param[in] satthrdbv - The value to use for the SATTHRDBV field.
8698 */
riu_rwnxagcsat_pack(uint8_t satdelay50ns,uint8_t sathighthrdbv,uint8_t satlowthrdbv,uint8_t satthrdbv)8699 __INLINE void riu_rwnxagcsat_pack(uint8_t satdelay50ns, uint8_t sathighthrdbv, uint8_t satlowthrdbv, uint8_t satthrdbv)
8700 {
8701 PLATFORM_REG_WRITE(RIU_RWNXAGCSAT_ADDR, ((uint32_t)satdelay50ns << 24) | ((uint32_t)sathighthrdbv << 16) | ((uint32_t)satlowthrdbv << 8) | ((uint32_t)satthrdbv << 0));
8702 }
8703
8704 /**
8705 * @brief Unpacks RWNXAGCSAT's fields from current value of the RWNXAGCSAT register.
8706 *
8707 * Reads the RWNXAGCSAT register and populates all the _field variables with the corresponding
8708 * values from the register.
8709 *
8710 * @param[out] satdelay50ns - Will be populated with the current value of this field from the register.
8711 * @param[out] sathighthrdbv - Will be populated with the current value of this field from the register.
8712 * @param[out] satlowthrdbv - Will be populated with the current value of this field from the register.
8713 * @param[out] satthrdbv - Will be populated with the current value of this field from the register.
8714 */
riu_rwnxagcsat_unpack(uint8_t * satdelay50ns,uint8_t * sathighthrdbv,uint8_t * satlowthrdbv,uint8_t * satthrdbv)8715 __INLINE void riu_rwnxagcsat_unpack(uint8_t* satdelay50ns, uint8_t* sathighthrdbv, uint8_t* satlowthrdbv, uint8_t* satthrdbv)
8716 {
8717 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCSAT_ADDR);
8718
8719 *satdelay50ns = (localVal & ((uint32_t)0x1F000000)) >> 24;
8720 *sathighthrdbv = (localVal & ((uint32_t)0x003F0000)) >> 16;
8721 *satlowthrdbv = (localVal & ((uint32_t)0x00003F00)) >> 8;
8722 *satthrdbv = (localVal & ((uint32_t)0x0000003F)) >> 0;
8723 }
8724
8725 /**
8726 * @brief Returns the current value of the SATDELAY50NS field in the RWNXAGCSAT register.
8727 *
8728 * The RWNXAGCSAT register will be read and the SATDELAY50NS field's value will be returned.
8729 *
8730 * @return The current value of the SATDELAY50NS field in the RWNXAGCSAT register.
8731 */
riu_satdelay50ns_getf(void)8732 __INLINE uint8_t riu_satdelay50ns_getf(void)
8733 {
8734 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCSAT_ADDR);
8735 return ((localVal & ((uint32_t)0x1F000000)) >> 24);
8736 }
8737
8738 /**
8739 * @brief Sets the SATDELAY50NS field of the RWNXAGCSAT register.
8740 *
8741 * The RWNXAGCSAT register will be read, modified to contain the new field value, and written.
8742 *
8743 * @param[in] satdelay50ns - The value to set the field to.
8744 */
riu_satdelay50ns_setf(uint8_t satdelay50ns)8745 __INLINE void riu_satdelay50ns_setf(uint8_t satdelay50ns)
8746 {
8747 PLATFORM_REG_WRITE(RIU_RWNXAGCSAT_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCSAT_ADDR) & ~((uint32_t)0x1F000000)) | ((uint32_t)satdelay50ns << 24));
8748 }
8749
8750 /**
8751 * @brief Returns the current value of the SATHIGHTHRDBV field in the RWNXAGCSAT register.
8752 *
8753 * The RWNXAGCSAT register will be read and the SATHIGHTHRDBV field's value will be returned.
8754 *
8755 * @return The current value of the SATHIGHTHRDBV field in the RWNXAGCSAT register.
8756 */
riu_sathighthrdbv_getf(void)8757 __INLINE uint8_t riu_sathighthrdbv_getf(void)
8758 {
8759 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCSAT_ADDR);
8760 return ((localVal & ((uint32_t)0x003F0000)) >> 16);
8761 }
8762
8763 /**
8764 * @brief Sets the SATHIGHTHRDBV field of the RWNXAGCSAT register.
8765 *
8766 * The RWNXAGCSAT register will be read, modified to contain the new field value, and written.
8767 *
8768 * @param[in] sathighthrdbv - The value to set the field to.
8769 */
riu_sathighthrdbv_setf(uint8_t sathighthrdbv)8770 __INLINE void riu_sathighthrdbv_setf(uint8_t sathighthrdbv)
8771 {
8772 PLATFORM_REG_WRITE(RIU_RWNXAGCSAT_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCSAT_ADDR) & ~((uint32_t)0x003F0000)) | ((uint32_t)sathighthrdbv << 16));
8773 }
8774
8775 /**
8776 * @brief Returns the current value of the SATLOWTHRDBV field in the RWNXAGCSAT register.
8777 *
8778 * The RWNXAGCSAT register will be read and the SATLOWTHRDBV field's value will be returned.
8779 *
8780 * @return The current value of the SATLOWTHRDBV field in the RWNXAGCSAT register.
8781 */
riu_satlowthrdbv_getf(void)8782 __INLINE uint8_t riu_satlowthrdbv_getf(void)
8783 {
8784 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCSAT_ADDR);
8785 return ((localVal & ((uint32_t)0x00003F00)) >> 8);
8786 }
8787
8788 /**
8789 * @brief Sets the SATLOWTHRDBV field of the RWNXAGCSAT register.
8790 *
8791 * The RWNXAGCSAT register will be read, modified to contain the new field value, and written.
8792 *
8793 * @param[in] satlowthrdbv - The value to set the field to.
8794 */
riu_satlowthrdbv_setf(uint8_t satlowthrdbv)8795 __INLINE void riu_satlowthrdbv_setf(uint8_t satlowthrdbv)
8796 {
8797 PLATFORM_REG_WRITE(RIU_RWNXAGCSAT_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCSAT_ADDR) & ~((uint32_t)0x00003F00)) | ((uint32_t)satlowthrdbv << 8));
8798 }
8799
8800 /**
8801 * @brief Returns the current value of the SATTHRDBV field in the RWNXAGCSAT register.
8802 *
8803 * The RWNXAGCSAT register will be read and the SATTHRDBV field's value will be returned.
8804 *
8805 * @return The current value of the SATTHRDBV field in the RWNXAGCSAT register.
8806 */
riu_satthrdbv_getf(void)8807 __INLINE uint8_t riu_satthrdbv_getf(void)
8808 {
8809 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCSAT_ADDR);
8810 return ((localVal & ((uint32_t)0x0000003F)) >> 0);
8811 }
8812
8813 /**
8814 * @brief Sets the SATTHRDBV field of the RWNXAGCSAT register.
8815 *
8816 * The RWNXAGCSAT register will be read, modified to contain the new field value, and written.
8817 *
8818 * @param[in] satthrdbv - The value to set the field to.
8819 */
riu_satthrdbv_setf(uint8_t satthrdbv)8820 __INLINE void riu_satthrdbv_setf(uint8_t satthrdbv)
8821 {
8822 PLATFORM_REG_WRITE(RIU_RWNXAGCSAT_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCSAT_ADDR) & ~((uint32_t)0x0000003F)) | ((uint32_t)satthrdbv << 0));
8823 }
8824
8825 /// @}
8826
8827 /**
8828 * @name RWNXAGCCROSS register definitions
8829 * <table>
8830 * <caption id="RWNXAGCCROSS_BF">RWNXAGCCROSS bitfields</caption>
8831 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
8832 * <tr><td>21:12 <td> CROSSDNTHRQDBM <td>R <td>R/W <td>0x288
8833 * <tr><td>09:00 <td> CROSSUPTHRQDBM <td>R <td>R/W <td>0x288
8834 * </table>
8835 *
8836 * @{
8837 */
8838
8839 /// Address of the RWNXAGCCROSS register
8840 #define RIU_RWNXAGCCROSS_ADDR 0x4033B368
8841 /// Offset of the RWNXAGCCROSS register from the base address
8842 #define RIU_RWNXAGCCROSS_OFFSET 0x00000368
8843 /// Index of the RWNXAGCCROSS register
8844 #define RIU_RWNXAGCCROSS_INDEX 0x000000DA
8845 /// Reset value of the RWNXAGCCROSS register
8846 #define RIU_RWNXAGCCROSS_RESET 0x00288288
8847
8848 /**
8849 * @brief Returns the current value of the RWNXAGCCROSS register.
8850 * The RWNXAGCCROSS register will be read and its value returned.
8851 * @return The current value of the RWNXAGCCROSS register.
8852 */
riu_rwnxagccross_get(void)8853 __INLINE uint32_t riu_rwnxagccross_get(void)
8854 {
8855 return PLATFORM_REG_READ(RIU_RWNXAGCCROSS_ADDR);
8856 }
8857
8858 /**
8859 * @brief Sets the RWNXAGCCROSS register to a value.
8860 * The RWNXAGCCROSS register will be written.
8861 * @param value - The value to write.
8862 */
riu_rwnxagccross_set(uint32_t value)8863 __INLINE void riu_rwnxagccross_set(uint32_t value)
8864 {
8865 PLATFORM_REG_WRITE(RIU_RWNXAGCCROSS_ADDR, value);
8866 }
8867
8868 // field definitions
8869 /// CROSSDNTHRQDBM field mask
8870 #define RIU_CROSSDNTHRQDBM_MASK ((uint32_t)0x003FF000)
8871 /// CROSSDNTHRQDBM field LSB position
8872 #define RIU_CROSSDNTHRQDBM_LSB 12
8873 /// CROSSDNTHRQDBM field width
8874 #define RIU_CROSSDNTHRQDBM_WIDTH ((uint32_t)0x0000000A)
8875 /// CROSSUPTHRQDBM field mask
8876 #define RIU_CROSSUPTHRQDBM_MASK ((uint32_t)0x000003FF)
8877 /// CROSSUPTHRQDBM field LSB position
8878 #define RIU_CROSSUPTHRQDBM_LSB 0
8879 /// CROSSUPTHRQDBM field width
8880 #define RIU_CROSSUPTHRQDBM_WIDTH ((uint32_t)0x0000000A)
8881
8882 /// CROSSDNTHRQDBM field reset value
8883 #define RIU_CROSSDNTHRQDBM_RST 0x288
8884 /// CROSSUPTHRQDBM field reset value
8885 #define RIU_CROSSUPTHRQDBM_RST 0x288
8886
8887 /**
8888 * @brief Constructs a value for the RWNXAGCCROSS register given values for its fields
8889 * and writes the value to the register.
8890 *
8891 * @param[in] crossdnthrqdbm - The value to use for the CROSSDNTHRQDBM field.
8892 * @param[in] crossupthrqdbm - The value to use for the CROSSUPTHRQDBM field.
8893 */
riu_rwnxagccross_pack(uint16_t crossdnthrqdbm,uint16_t crossupthrqdbm)8894 __INLINE void riu_rwnxagccross_pack(uint16_t crossdnthrqdbm, uint16_t crossupthrqdbm)
8895 {
8896 PLATFORM_REG_WRITE(RIU_RWNXAGCCROSS_ADDR, ((uint32_t)crossdnthrqdbm << 12) | ((uint32_t)crossupthrqdbm << 0));
8897 }
8898
8899 /**
8900 * @brief Unpacks RWNXAGCCROSS's fields from current value of the RWNXAGCCROSS register.
8901 *
8902 * Reads the RWNXAGCCROSS register and populates all the _field variables with the corresponding
8903 * values from the register.
8904 *
8905 * @param[out] crossdnthrqdbm - Will be populated with the current value of this field from the register.
8906 * @param[out] crossupthrqdbm - Will be populated with the current value of this field from the register.
8907 */
riu_rwnxagccross_unpack(uint16_t * crossdnthrqdbm,uint16_t * crossupthrqdbm)8908 __INLINE void riu_rwnxagccross_unpack(uint16_t* crossdnthrqdbm, uint16_t* crossupthrqdbm)
8909 {
8910 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCROSS_ADDR);
8911
8912 *crossdnthrqdbm = (localVal & ((uint32_t)0x003FF000)) >> 12;
8913 *crossupthrqdbm = (localVal & ((uint32_t)0x000003FF)) >> 0;
8914 }
8915
8916 /**
8917 * @brief Returns the current value of the CROSSDNTHRQDBM field in the RWNXAGCCROSS register.
8918 *
8919 * The RWNXAGCCROSS register will be read and the CROSSDNTHRQDBM field's value will be returned.
8920 *
8921 * @return The current value of the CROSSDNTHRQDBM field in the RWNXAGCCROSS register.
8922 */
riu_crossdnthrqdbm_getf(void)8923 __INLINE uint16_t riu_crossdnthrqdbm_getf(void)
8924 {
8925 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCROSS_ADDR);
8926 return ((localVal & ((uint32_t)0x003FF000)) >> 12);
8927 }
8928
8929 /**
8930 * @brief Sets the CROSSDNTHRQDBM field of the RWNXAGCCROSS register.
8931 *
8932 * The RWNXAGCCROSS register will be read, modified to contain the new field value, and written.
8933 *
8934 * @param[in] crossdnthrqdbm - The value to set the field to.
8935 */
riu_crossdnthrqdbm_setf(uint16_t crossdnthrqdbm)8936 __INLINE void riu_crossdnthrqdbm_setf(uint16_t crossdnthrqdbm)
8937 {
8938 PLATFORM_REG_WRITE(RIU_RWNXAGCCROSS_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCROSS_ADDR) & ~((uint32_t)0x003FF000)) | ((uint32_t)crossdnthrqdbm << 12));
8939 }
8940
8941 /**
8942 * @brief Returns the current value of the CROSSUPTHRQDBM field in the RWNXAGCCROSS register.
8943 *
8944 * The RWNXAGCCROSS register will be read and the CROSSUPTHRQDBM field's value will be returned.
8945 *
8946 * @return The current value of the CROSSUPTHRQDBM field in the RWNXAGCCROSS register.
8947 */
riu_crossupthrqdbm_getf(void)8948 __INLINE uint16_t riu_crossupthrqdbm_getf(void)
8949 {
8950 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCROSS_ADDR);
8951 return ((localVal & ((uint32_t)0x000003FF)) >> 0);
8952 }
8953
8954 /**
8955 * @brief Sets the CROSSUPTHRQDBM field of the RWNXAGCCROSS register.
8956 *
8957 * The RWNXAGCCROSS register will be read, modified to contain the new field value, and written.
8958 *
8959 * @param[in] crossupthrqdbm - The value to set the field to.
8960 */
riu_crossupthrqdbm_setf(uint16_t crossupthrqdbm)8961 __INLINE void riu_crossupthrqdbm_setf(uint16_t crossupthrqdbm)
8962 {
8963 PLATFORM_REG_WRITE(RIU_RWNXAGCCROSS_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCROSS_ADDR) & ~((uint32_t)0x000003FF)) | ((uint32_t)crossupthrqdbm << 0));
8964 }
8965
8966 /// @}
8967
8968 /**
8969 * @name RWNXAGCRAMP register definitions
8970 * <table>
8971 * <caption id="RWNXAGCRAMP_BF">RWNXAGCRAMP bitfields</caption>
8972 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
8973 * <tr><td>26:24 <td> RAMPDNNDLINDEX <td>R <td>R/W <td>0x5
8974 * <tr><td>23:16 <td> RAMPDNGAPQDB <td>R <td>R/W <td>0x20
8975 * <tr><td>10:08 <td> RAMPUPNDLINDEX <td>R <td>R/W <td>0x7
8976 * <tr><td>07:00 <td> RAMPUPGAPQDB <td>R <td>R/W <td>0x10
8977 * </table>
8978 *
8979 * @{
8980 */
8981
8982 /// Address of the RWNXAGCRAMP register
8983 #define RIU_RWNXAGCRAMP_ADDR 0x4033B36C
8984 /// Offset of the RWNXAGCRAMP register from the base address
8985 #define RIU_RWNXAGCRAMP_OFFSET 0x0000036C
8986 /// Index of the RWNXAGCRAMP register
8987 #define RIU_RWNXAGCRAMP_INDEX 0x000000DB
8988 /// Reset value of the RWNXAGCRAMP register
8989 #define RIU_RWNXAGCRAMP_RESET 0x05200710
8990
8991 /**
8992 * @brief Returns the current value of the RWNXAGCRAMP register.
8993 * The RWNXAGCRAMP register will be read and its value returned.
8994 * @return The current value of the RWNXAGCRAMP register.
8995 */
riu_rwnxagcramp_get(void)8996 __INLINE uint32_t riu_rwnxagcramp_get(void)
8997 {
8998 return PLATFORM_REG_READ(RIU_RWNXAGCRAMP_ADDR);
8999 }
9000
9001 /**
9002 * @brief Sets the RWNXAGCRAMP register to a value.
9003 * The RWNXAGCRAMP register will be written.
9004 * @param value - The value to write.
9005 */
riu_rwnxagcramp_set(uint32_t value)9006 __INLINE void riu_rwnxagcramp_set(uint32_t value)
9007 {
9008 PLATFORM_REG_WRITE(RIU_RWNXAGCRAMP_ADDR, value);
9009 }
9010
9011 // field definitions
9012 /// RAMPDNNDLINDEX field mask
9013 #define RIU_RAMPDNNDLINDEX_MASK ((uint32_t)0x07000000)
9014 /// RAMPDNNDLINDEX field LSB position
9015 #define RIU_RAMPDNNDLINDEX_LSB 24
9016 /// RAMPDNNDLINDEX field width
9017 #define RIU_RAMPDNNDLINDEX_WIDTH ((uint32_t)0x00000003)
9018 /// RAMPDNGAPQDB field mask
9019 #define RIU_RAMPDNGAPQDB_MASK ((uint32_t)0x00FF0000)
9020 /// RAMPDNGAPQDB field LSB position
9021 #define RIU_RAMPDNGAPQDB_LSB 16
9022 /// RAMPDNGAPQDB field width
9023 #define RIU_RAMPDNGAPQDB_WIDTH ((uint32_t)0x00000008)
9024 /// RAMPUPNDLINDEX field mask
9025 #define RIU_RAMPUPNDLINDEX_MASK ((uint32_t)0x00000700)
9026 /// RAMPUPNDLINDEX field LSB position
9027 #define RIU_RAMPUPNDLINDEX_LSB 8
9028 /// RAMPUPNDLINDEX field width
9029 #define RIU_RAMPUPNDLINDEX_WIDTH ((uint32_t)0x00000003)
9030 /// RAMPUPGAPQDB field mask
9031 #define RIU_RAMPUPGAPQDB_MASK ((uint32_t)0x000000FF)
9032 /// RAMPUPGAPQDB field LSB position
9033 #define RIU_RAMPUPGAPQDB_LSB 0
9034 /// RAMPUPGAPQDB field width
9035 #define RIU_RAMPUPGAPQDB_WIDTH ((uint32_t)0x00000008)
9036
9037 /// RAMPDNNDLINDEX field reset value
9038 #define RIU_RAMPDNNDLINDEX_RST 0x5
9039 /// RAMPDNGAPQDB field reset value
9040 #define RIU_RAMPDNGAPQDB_RST 0x20
9041 /// RAMPUPNDLINDEX field reset value
9042 #define RIU_RAMPUPNDLINDEX_RST 0x7
9043 /// RAMPUPGAPQDB field reset value
9044 #define RIU_RAMPUPGAPQDB_RST 0x10
9045
9046 /**
9047 * @brief Constructs a value for the RWNXAGCRAMP register given values for its fields
9048 * and writes the value to the register.
9049 *
9050 * @param[in] rampdnndlindex - The value to use for the RAMPDNNDLINDEX field.
9051 * @param[in] rampdngapqdb - The value to use for the RAMPDNGAPQDB field.
9052 * @param[in] rampupndlindex - The value to use for the RAMPUPNDLINDEX field.
9053 * @param[in] rampupgapqdb - The value to use for the RAMPUPGAPQDB field.
9054 */
riu_rwnxagcramp_pack(uint8_t rampdnndlindex,uint8_t rampdngapqdb,uint8_t rampupndlindex,uint8_t rampupgapqdb)9055 __INLINE void riu_rwnxagcramp_pack(uint8_t rampdnndlindex, uint8_t rampdngapqdb, uint8_t rampupndlindex, uint8_t rampupgapqdb)
9056 {
9057 PLATFORM_REG_WRITE(RIU_RWNXAGCRAMP_ADDR, ((uint32_t)rampdnndlindex << 24) | ((uint32_t)rampdngapqdb << 16) | ((uint32_t)rampupndlindex << 8) | ((uint32_t)rampupgapqdb << 0));
9058 }
9059
9060 /**
9061 * @brief Unpacks RWNXAGCRAMP's fields from current value of the RWNXAGCRAMP register.
9062 *
9063 * Reads the RWNXAGCRAMP register and populates all the _field variables with the corresponding
9064 * values from the register.
9065 *
9066 * @param[out] rampdnndlindex - Will be populated with the current value of this field from the register.
9067 * @param[out] rampdngapqdb - Will be populated with the current value of this field from the register.
9068 * @param[out] rampupndlindex - Will be populated with the current value of this field from the register.
9069 * @param[out] rampupgapqdb - Will be populated with the current value of this field from the register.
9070 */
riu_rwnxagcramp_unpack(uint8_t * rampdnndlindex,uint8_t * rampdngapqdb,uint8_t * rampupndlindex,uint8_t * rampupgapqdb)9071 __INLINE void riu_rwnxagcramp_unpack(uint8_t* rampdnndlindex, uint8_t* rampdngapqdb, uint8_t* rampupndlindex, uint8_t* rampupgapqdb)
9072 {
9073 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRAMP_ADDR);
9074
9075 *rampdnndlindex = (localVal & ((uint32_t)0x07000000)) >> 24;
9076 *rampdngapqdb = (localVal & ((uint32_t)0x00FF0000)) >> 16;
9077 *rampupndlindex = (localVal & ((uint32_t)0x00000700)) >> 8;
9078 *rampupgapqdb = (localVal & ((uint32_t)0x000000FF)) >> 0;
9079 }
9080
9081 /**
9082 * @brief Returns the current value of the RAMPDNNDLINDEX field in the RWNXAGCRAMP register.
9083 *
9084 * The RWNXAGCRAMP register will be read and the RAMPDNNDLINDEX field's value will be returned.
9085 *
9086 * @return The current value of the RAMPDNNDLINDEX field in the RWNXAGCRAMP register.
9087 */
riu_rampdnndlindex_getf(void)9088 __INLINE uint8_t riu_rampdnndlindex_getf(void)
9089 {
9090 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRAMP_ADDR);
9091 return ((localVal & ((uint32_t)0x07000000)) >> 24);
9092 }
9093
9094 /**
9095 * @brief Sets the RAMPDNNDLINDEX field of the RWNXAGCRAMP register.
9096 *
9097 * The RWNXAGCRAMP register will be read, modified to contain the new field value, and written.
9098 *
9099 * @param[in] rampdnndlindex - The value to set the field to.
9100 */
riu_rampdnndlindex_setf(uint8_t rampdnndlindex)9101 __INLINE void riu_rampdnndlindex_setf(uint8_t rampdnndlindex)
9102 {
9103 PLATFORM_REG_WRITE(RIU_RWNXAGCRAMP_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCRAMP_ADDR) & ~((uint32_t)0x07000000)) | ((uint32_t)rampdnndlindex << 24));
9104 }
9105
9106 /**
9107 * @brief Returns the current value of the RAMPDNGAPQDB field in the RWNXAGCRAMP register.
9108 *
9109 * The RWNXAGCRAMP register will be read and the RAMPDNGAPQDB field's value will be returned.
9110 *
9111 * @return The current value of the RAMPDNGAPQDB field in the RWNXAGCRAMP register.
9112 */
riu_rampdngapqdb_getf(void)9113 __INLINE uint8_t riu_rampdngapqdb_getf(void)
9114 {
9115 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRAMP_ADDR);
9116 return ((localVal & ((uint32_t)0x00FF0000)) >> 16);
9117 }
9118
9119 /**
9120 * @brief Sets the RAMPDNGAPQDB field of the RWNXAGCRAMP register.
9121 *
9122 * The RWNXAGCRAMP register will be read, modified to contain the new field value, and written.
9123 *
9124 * @param[in] rampdngapqdb - The value to set the field to.
9125 */
riu_rampdngapqdb_setf(uint8_t rampdngapqdb)9126 __INLINE void riu_rampdngapqdb_setf(uint8_t rampdngapqdb)
9127 {
9128 PLATFORM_REG_WRITE(RIU_RWNXAGCRAMP_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCRAMP_ADDR) & ~((uint32_t)0x00FF0000)) | ((uint32_t)rampdngapqdb << 16));
9129 }
9130
9131 /**
9132 * @brief Returns the current value of the RAMPUPNDLINDEX field in the RWNXAGCRAMP register.
9133 *
9134 * The RWNXAGCRAMP register will be read and the RAMPUPNDLINDEX field's value will be returned.
9135 *
9136 * @return The current value of the RAMPUPNDLINDEX field in the RWNXAGCRAMP register.
9137 */
riu_rampupndlindex_getf(void)9138 __INLINE uint8_t riu_rampupndlindex_getf(void)
9139 {
9140 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRAMP_ADDR);
9141 return ((localVal & ((uint32_t)0x00000700)) >> 8);
9142 }
9143
9144 /**
9145 * @brief Sets the RAMPUPNDLINDEX field of the RWNXAGCRAMP register.
9146 *
9147 * The RWNXAGCRAMP register will be read, modified to contain the new field value, and written.
9148 *
9149 * @param[in] rampupndlindex - The value to set the field to.
9150 */
riu_rampupndlindex_setf(uint8_t rampupndlindex)9151 __INLINE void riu_rampupndlindex_setf(uint8_t rampupndlindex)
9152 {
9153 PLATFORM_REG_WRITE(RIU_RWNXAGCRAMP_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCRAMP_ADDR) & ~((uint32_t)0x00000700)) | ((uint32_t)rampupndlindex << 8));
9154 }
9155
9156 /**
9157 * @brief Returns the current value of the RAMPUPGAPQDB field in the RWNXAGCRAMP register.
9158 *
9159 * The RWNXAGCRAMP register will be read and the RAMPUPGAPQDB field's value will be returned.
9160 *
9161 * @return The current value of the RAMPUPGAPQDB field in the RWNXAGCRAMP register.
9162 */
riu_rampupgapqdb_getf(void)9163 __INLINE uint8_t riu_rampupgapqdb_getf(void)
9164 {
9165 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRAMP_ADDR);
9166 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
9167 }
9168
9169 /**
9170 * @brief Sets the RAMPUPGAPQDB field of the RWNXAGCRAMP register.
9171 *
9172 * The RWNXAGCRAMP register will be read, modified to contain the new field value, and written.
9173 *
9174 * @param[in] rampupgapqdb - The value to set the field to.
9175 */
riu_rampupgapqdb_setf(uint8_t rampupgapqdb)9176 __INLINE void riu_rampupgapqdb_setf(uint8_t rampupgapqdb)
9177 {
9178 PLATFORM_REG_WRITE(RIU_RWNXAGCRAMP_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCRAMP_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)rampupgapqdb << 0));
9179 }
9180
9181 /// @}
9182
9183 /**
9184 * @name RWNXAGCSTABDIS register definitions
9185 * <table>
9186 * <caption id="RWNXAGCSTABDIS_BF">RWNXAGCSTABDIS bitfields</caption>
9187 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
9188 * <tr><td>27:24 <td> ADCPOWDISNDL <td>R <td>R/W <td>0x8
9189 * <tr><td>22:16 <td> ADCPOWDISTHRDBV <td>R <td>R/W <td>0x54
9190 * <tr><td>10:08 <td> PLATNDLINDEX <td>R <td>R/W <td>0x3
9191 * <tr><td>04:00 <td> PLATDPQDB <td>R <td>R/W <td>0x8
9192 * </table>
9193 *
9194 * @{
9195 */
9196
9197 /// Address of the RWNXAGCSTABDIS register
9198 #define RIU_RWNXAGCSTABDIS_ADDR 0x4033B370
9199 /// Offset of the RWNXAGCSTABDIS register from the base address
9200 #define RIU_RWNXAGCSTABDIS_OFFSET 0x00000370
9201 /// Index of the RWNXAGCSTABDIS register
9202 #define RIU_RWNXAGCSTABDIS_INDEX 0x000000DC
9203 /// Reset value of the RWNXAGCSTABDIS register
9204 #define RIU_RWNXAGCSTABDIS_RESET 0x08540308
9205
9206 /**
9207 * @brief Returns the current value of the RWNXAGCSTABDIS register.
9208 * The RWNXAGCSTABDIS register will be read and its value returned.
9209 * @return The current value of the RWNXAGCSTABDIS register.
9210 */
riu_rwnxagcstabdis_get(void)9211 __INLINE uint32_t riu_rwnxagcstabdis_get(void)
9212 {
9213 return PLATFORM_REG_READ(RIU_RWNXAGCSTABDIS_ADDR);
9214 }
9215
9216 /**
9217 * @brief Sets the RWNXAGCSTABDIS register to a value.
9218 * The RWNXAGCSTABDIS register will be written.
9219 * @param value - The value to write.
9220 */
riu_rwnxagcstabdis_set(uint32_t value)9221 __INLINE void riu_rwnxagcstabdis_set(uint32_t value)
9222 {
9223 PLATFORM_REG_WRITE(RIU_RWNXAGCSTABDIS_ADDR, value);
9224 }
9225
9226 // field definitions
9227 /// ADCPOWDISNDL field mask
9228 #define RIU_ADCPOWDISNDL_MASK ((uint32_t)0x0F000000)
9229 /// ADCPOWDISNDL field LSB position
9230 #define RIU_ADCPOWDISNDL_LSB 24
9231 /// ADCPOWDISNDL field width
9232 #define RIU_ADCPOWDISNDL_WIDTH ((uint32_t)0x00000004)
9233 /// ADCPOWDISTHRDBV field mask
9234 #define RIU_ADCPOWDISTHRDBV_MASK ((uint32_t)0x007F0000)
9235 /// ADCPOWDISTHRDBV field LSB position
9236 #define RIU_ADCPOWDISTHRDBV_LSB 16
9237 /// ADCPOWDISTHRDBV field width
9238 #define RIU_ADCPOWDISTHRDBV_WIDTH ((uint32_t)0x00000007)
9239 /// PLATNDLINDEX field mask
9240 #define RIU_PLATNDLINDEX_MASK ((uint32_t)0x00000700)
9241 /// PLATNDLINDEX field LSB position
9242 #define RIU_PLATNDLINDEX_LSB 8
9243 /// PLATNDLINDEX field width
9244 #define RIU_PLATNDLINDEX_WIDTH ((uint32_t)0x00000003)
9245 /// PLATDPQDB field mask
9246 #define RIU_PLATDPQDB_MASK ((uint32_t)0x0000001F)
9247 /// PLATDPQDB field LSB position
9248 #define RIU_PLATDPQDB_LSB 0
9249 /// PLATDPQDB field width
9250 #define RIU_PLATDPQDB_WIDTH ((uint32_t)0x00000005)
9251
9252 /// ADCPOWDISNDL field reset value
9253 #define RIU_ADCPOWDISNDL_RST 0x8
9254 /// ADCPOWDISTHRDBV field reset value
9255 #define RIU_ADCPOWDISTHRDBV_RST 0x54
9256 /// PLATNDLINDEX field reset value
9257 #define RIU_PLATNDLINDEX_RST 0x3
9258 /// PLATDPQDB field reset value
9259 #define RIU_PLATDPQDB_RST 0x8
9260
9261 /**
9262 * @brief Constructs a value for the RWNXAGCSTABDIS register given values for its fields
9263 * and writes the value to the register.
9264 *
9265 * @param[in] adcpowdisndl - The value to use for the ADCPOWDISNDL field.
9266 * @param[in] adcpowdisthrdbv - The value to use for the ADCPOWDISTHRDBV field.
9267 * @param[in] platndlindex - The value to use for the PLATNDLINDEX field.
9268 * @param[in] platdpqdb - The value to use for the PLATDPQDB field.
9269 */
riu_rwnxagcstabdis_pack(uint8_t adcpowdisndl,uint8_t adcpowdisthrdbv,uint8_t platndlindex,uint8_t platdpqdb)9270 __INLINE void riu_rwnxagcstabdis_pack(uint8_t adcpowdisndl, uint8_t adcpowdisthrdbv, uint8_t platndlindex, uint8_t platdpqdb)
9271 {
9272 PLATFORM_REG_WRITE(RIU_RWNXAGCSTABDIS_ADDR, ((uint32_t)adcpowdisndl << 24) | ((uint32_t)adcpowdisthrdbv << 16) | ((uint32_t)platndlindex << 8) | ((uint32_t)platdpqdb << 0));
9273 }
9274
9275 /**
9276 * @brief Unpacks RWNXAGCSTABDIS's fields from current value of the RWNXAGCSTABDIS register.
9277 *
9278 * Reads the RWNXAGCSTABDIS register and populates all the _field variables with the corresponding
9279 * values from the register.
9280 *
9281 * @param[out] adcpowdisndl - Will be populated with the current value of this field from the register.
9282 * @param[out] adcpowdisthrdbv - Will be populated with the current value of this field from the register.
9283 * @param[out] platndlindex - Will be populated with the current value of this field from the register.
9284 * @param[out] platdpqdb - Will be populated with the current value of this field from the register.
9285 */
riu_rwnxagcstabdis_unpack(uint8_t * adcpowdisndl,uint8_t * adcpowdisthrdbv,uint8_t * platndlindex,uint8_t * platdpqdb)9286 __INLINE void riu_rwnxagcstabdis_unpack(uint8_t* adcpowdisndl, uint8_t* adcpowdisthrdbv, uint8_t* platndlindex, uint8_t* platdpqdb)
9287 {
9288 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCSTABDIS_ADDR);
9289
9290 *adcpowdisndl = (localVal & ((uint32_t)0x0F000000)) >> 24;
9291 *adcpowdisthrdbv = (localVal & ((uint32_t)0x007F0000)) >> 16;
9292 *platndlindex = (localVal & ((uint32_t)0x00000700)) >> 8;
9293 *platdpqdb = (localVal & ((uint32_t)0x0000001F)) >> 0;
9294 }
9295
9296 /**
9297 * @brief Returns the current value of the ADCPOWDISNDL field in the RWNXAGCSTABDIS register.
9298 *
9299 * The RWNXAGCSTABDIS register will be read and the ADCPOWDISNDL field's value will be returned.
9300 *
9301 * @return The current value of the ADCPOWDISNDL field in the RWNXAGCSTABDIS register.
9302 */
riu_adcpowdisndl_getf(void)9303 __INLINE uint8_t riu_adcpowdisndl_getf(void)
9304 {
9305 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCSTABDIS_ADDR);
9306 return ((localVal & ((uint32_t)0x0F000000)) >> 24);
9307 }
9308
9309 /**
9310 * @brief Sets the ADCPOWDISNDL field of the RWNXAGCSTABDIS register.
9311 *
9312 * The RWNXAGCSTABDIS register will be read, modified to contain the new field value, and written.
9313 *
9314 * @param[in] adcpowdisndl - The value to set the field to.
9315 */
riu_adcpowdisndl_setf(uint8_t adcpowdisndl)9316 __INLINE void riu_adcpowdisndl_setf(uint8_t adcpowdisndl)
9317 {
9318 PLATFORM_REG_WRITE(RIU_RWNXAGCSTABDIS_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCSTABDIS_ADDR) & ~((uint32_t)0x0F000000)) | ((uint32_t)adcpowdisndl << 24));
9319 }
9320
9321 /**
9322 * @brief Returns the current value of the ADCPOWDISTHRDBV field in the RWNXAGCSTABDIS register.
9323 *
9324 * The RWNXAGCSTABDIS register will be read and the ADCPOWDISTHRDBV field's value will be returned.
9325 *
9326 * @return The current value of the ADCPOWDISTHRDBV field in the RWNXAGCSTABDIS register.
9327 */
riu_adcpowdisthrdbv_getf(void)9328 __INLINE uint8_t riu_adcpowdisthrdbv_getf(void)
9329 {
9330 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCSTABDIS_ADDR);
9331 return ((localVal & ((uint32_t)0x007F0000)) >> 16);
9332 }
9333
9334 /**
9335 * @brief Sets the ADCPOWDISTHRDBV field of the RWNXAGCSTABDIS register.
9336 *
9337 * The RWNXAGCSTABDIS register will be read, modified to contain the new field value, and written.
9338 *
9339 * @param[in] adcpowdisthrdbv - The value to set the field to.
9340 */
riu_adcpowdisthrdbv_setf(uint8_t adcpowdisthrdbv)9341 __INLINE void riu_adcpowdisthrdbv_setf(uint8_t adcpowdisthrdbv)
9342 {
9343 PLATFORM_REG_WRITE(RIU_RWNXAGCSTABDIS_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCSTABDIS_ADDR) & ~((uint32_t)0x007F0000)) | ((uint32_t)adcpowdisthrdbv << 16));
9344 }
9345
9346 /**
9347 * @brief Returns the current value of the PLATNDLINDEX field in the RWNXAGCSTABDIS register.
9348 *
9349 * The RWNXAGCSTABDIS register will be read and the PLATNDLINDEX field's value will be returned.
9350 *
9351 * @return The current value of the PLATNDLINDEX field in the RWNXAGCSTABDIS register.
9352 */
riu_platndlindex_getf(void)9353 __INLINE uint8_t riu_platndlindex_getf(void)
9354 {
9355 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCSTABDIS_ADDR);
9356 return ((localVal & ((uint32_t)0x00000700)) >> 8);
9357 }
9358
9359 /**
9360 * @brief Sets the PLATNDLINDEX field of the RWNXAGCSTABDIS register.
9361 *
9362 * The RWNXAGCSTABDIS register will be read, modified to contain the new field value, and written.
9363 *
9364 * @param[in] platndlindex - The value to set the field to.
9365 */
riu_platndlindex_setf(uint8_t platndlindex)9366 __INLINE void riu_platndlindex_setf(uint8_t platndlindex)
9367 {
9368 PLATFORM_REG_WRITE(RIU_RWNXAGCSTABDIS_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCSTABDIS_ADDR) & ~((uint32_t)0x00000700)) | ((uint32_t)platndlindex << 8));
9369 }
9370
9371 /**
9372 * @brief Returns the current value of the PLATDPQDB field in the RWNXAGCSTABDIS register.
9373 *
9374 * The RWNXAGCSTABDIS register will be read and the PLATDPQDB field's value will be returned.
9375 *
9376 * @return The current value of the PLATDPQDB field in the RWNXAGCSTABDIS register.
9377 */
riu_platdpqdb_getf(void)9378 __INLINE uint8_t riu_platdpqdb_getf(void)
9379 {
9380 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCSTABDIS_ADDR);
9381 return ((localVal & ((uint32_t)0x0000001F)) >> 0);
9382 }
9383
9384 /**
9385 * @brief Sets the PLATDPQDB field of the RWNXAGCSTABDIS register.
9386 *
9387 * The RWNXAGCSTABDIS register will be read, modified to contain the new field value, and written.
9388 *
9389 * @param[in] platdpqdb - The value to set the field to.
9390 */
riu_platdpqdb_setf(uint8_t platdpqdb)9391 __INLINE void riu_platdpqdb_setf(uint8_t platdpqdb)
9392 {
9393 PLATFORM_REG_WRITE(RIU_RWNXAGCSTABDIS_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCSTABDIS_ADDR) & ~((uint32_t)0x0000001F)) | ((uint32_t)platdpqdb << 0));
9394 }
9395
9396 /// @}
9397
9398 /**
9399 * @name RWNXAGCDCCOMP0 register definitions
9400 * <table>
9401 * <caption id="RWNXAGCDCCOMP0_BF">RWNXAGCDCCOMP0 bitfields</caption>
9402 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
9403 * <tr><td>29:28 <td> DCDSSSTYPE <td>R <td>R/W <td>0x1
9404 * <tr><td>25:24 <td> DCCENTEREDTYPE <td>R <td>R/W <td>0x3
9405 * <tr><td>21:20 <td> DCAGC20TYPE <td>R <td>R/W <td>0x1
9406 * <tr><td>17:16 <td> DCADCTYPE <td>R <td>R/W <td>0x1
9407 * <tr><td>14:08 <td> DCADCHOLDTIME50NS <td>R <td>R/W <td>0x14
9408 * <tr><td>06:00 <td> DCADCZEROTIME50NS <td>R <td>R/W <td>0x0
9409 * </table>
9410 *
9411 * @{
9412 */
9413
9414 /// Address of the RWNXAGCDCCOMP0 register
9415 #define RIU_RWNXAGCDCCOMP0_ADDR 0x4033B374
9416 /// Offset of the RWNXAGCDCCOMP0 register from the base address
9417 #define RIU_RWNXAGCDCCOMP0_OFFSET 0x00000374
9418 /// Index of the RWNXAGCDCCOMP0 register
9419 #define RIU_RWNXAGCDCCOMP0_INDEX 0x000000DD
9420 /// Reset value of the RWNXAGCDCCOMP0 register
9421 #define RIU_RWNXAGCDCCOMP0_RESET 0x13111400
9422
9423 /**
9424 * @brief Returns the current value of the RWNXAGCDCCOMP0 register.
9425 * The RWNXAGCDCCOMP0 register will be read and its value returned.
9426 * @return The current value of the RWNXAGCDCCOMP0 register.
9427 */
riu_rwnxagcdccomp0_get(void)9428 __INLINE uint32_t riu_rwnxagcdccomp0_get(void)
9429 {
9430 return PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR);
9431 }
9432
9433 /**
9434 * @brief Sets the RWNXAGCDCCOMP0 register to a value.
9435 * The RWNXAGCDCCOMP0 register will be written.
9436 * @param value - The value to write.
9437 */
riu_rwnxagcdccomp0_set(uint32_t value)9438 __INLINE void riu_rwnxagcdccomp0_set(uint32_t value)
9439 {
9440 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP0_ADDR, value);
9441 }
9442
9443 // field definitions
9444 /// DCDSSSTYPE field mask
9445 #define RIU_DCDSSSTYPE_MASK ((uint32_t)0x30000000)
9446 /// DCDSSSTYPE field LSB position
9447 #define RIU_DCDSSSTYPE_LSB 28
9448 /// DCDSSSTYPE field width
9449 #define RIU_DCDSSSTYPE_WIDTH ((uint32_t)0x00000002)
9450 /// DCCENTEREDTYPE field mask
9451 #define RIU_DCCENTEREDTYPE_MASK ((uint32_t)0x03000000)
9452 /// DCCENTEREDTYPE field LSB position
9453 #define RIU_DCCENTEREDTYPE_LSB 24
9454 /// DCCENTEREDTYPE field width
9455 #define RIU_DCCENTEREDTYPE_WIDTH ((uint32_t)0x00000002)
9456 /// DCAGC20TYPE field mask
9457 #define RIU_DCAGC20TYPE_MASK ((uint32_t)0x00300000)
9458 /// DCAGC20TYPE field LSB position
9459 #define RIU_DCAGC20TYPE_LSB 20
9460 /// DCAGC20TYPE field width
9461 #define RIU_DCAGC20TYPE_WIDTH ((uint32_t)0x00000002)
9462 /// DCADCTYPE field mask
9463 #define RIU_DCADCTYPE_MASK ((uint32_t)0x00030000)
9464 /// DCADCTYPE field LSB position
9465 #define RIU_DCADCTYPE_LSB 16
9466 /// DCADCTYPE field width
9467 #define RIU_DCADCTYPE_WIDTH ((uint32_t)0x00000002)
9468 /// DCADCHOLDTIME50NS field mask
9469 #define RIU_DCADCHOLDTIME50NS_MASK ((uint32_t)0x00007F00)
9470 /// DCADCHOLDTIME50NS field LSB position
9471 #define RIU_DCADCHOLDTIME50NS_LSB 8
9472 /// DCADCHOLDTIME50NS field width
9473 #define RIU_DCADCHOLDTIME50NS_WIDTH ((uint32_t)0x00000007)
9474 /// DCADCZEROTIME50NS field mask
9475 #define RIU_DCADCZEROTIME50NS_MASK ((uint32_t)0x0000007F)
9476 /// DCADCZEROTIME50NS field LSB position
9477 #define RIU_DCADCZEROTIME50NS_LSB 0
9478 /// DCADCZEROTIME50NS field width
9479 #define RIU_DCADCZEROTIME50NS_WIDTH ((uint32_t)0x00000007)
9480
9481 /// DCDSSSTYPE field reset value
9482 #define RIU_DCDSSSTYPE_RST 0x1
9483 /// DCCENTEREDTYPE field reset value
9484 #define RIU_DCCENTEREDTYPE_RST 0x3
9485 /// DCAGC20TYPE field reset value
9486 #define RIU_DCAGC20TYPE_RST 0x1
9487 /// DCADCTYPE field reset value
9488 #define RIU_DCADCTYPE_RST 0x1
9489 /// DCADCHOLDTIME50NS field reset value
9490 #define RIU_DCADCHOLDTIME50NS_RST 0x14
9491 /// DCADCZEROTIME50NS field reset value
9492 #define RIU_DCADCZEROTIME50NS_RST 0x0
9493
9494 /**
9495 * @brief Constructs a value for the RWNXAGCDCCOMP0 register given values for its fields
9496 * and writes the value to the register.
9497 *
9498 * @param[in] dcdssstype - The value to use for the DCDSSSTYPE field.
9499 * @param[in] dccenteredtype - The value to use for the DCCENTEREDTYPE field.
9500 * @param[in] dcagc20type - The value to use for the DCAGC20TYPE field.
9501 * @param[in] dcadctype - The value to use for the DCADCTYPE field.
9502 * @param[in] dcadcholdtime50ns - The value to use for the DCADCHOLDTIME50NS field.
9503 * @param[in] dcadczerotime50ns - The value to use for the DCADCZEROTIME50NS field.
9504 */
riu_rwnxagcdccomp0_pack(uint8_t dcdssstype,uint8_t dccenteredtype,uint8_t dcagc20type,uint8_t dcadctype,uint8_t dcadcholdtime50ns,uint8_t dcadczerotime50ns)9505 __INLINE void riu_rwnxagcdccomp0_pack(uint8_t dcdssstype, uint8_t dccenteredtype, uint8_t dcagc20type, uint8_t dcadctype, uint8_t dcadcholdtime50ns, uint8_t dcadczerotime50ns)
9506 {
9507 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP0_ADDR, ((uint32_t)dcdssstype << 28) | ((uint32_t)dccenteredtype << 24) | ((uint32_t)dcagc20type << 20) | ((uint32_t)dcadctype << 16) | ((uint32_t)dcadcholdtime50ns << 8) | ((uint32_t)dcadczerotime50ns << 0));
9508 }
9509
9510 /**
9511 * @brief Unpacks RWNXAGCDCCOMP0's fields from current value of the RWNXAGCDCCOMP0 register.
9512 *
9513 * Reads the RWNXAGCDCCOMP0 register and populates all the _field variables with the corresponding
9514 * values from the register.
9515 *
9516 * @param[out] dcdssstype - Will be populated with the current value of this field from the register.
9517 * @param[out] dccenteredtype - Will be populated with the current value of this field from the register.
9518 * @param[out] dcagc20type - Will be populated with the current value of this field from the register.
9519 * @param[out] dcadctype - Will be populated with the current value of this field from the register.
9520 * @param[out] dcadcholdtime50ns - Will be populated with the current value of this field from the register.
9521 * @param[out] dcadczerotime50ns - Will be populated with the current value of this field from the register.
9522 */
riu_rwnxagcdccomp0_unpack(uint8_t * dcdssstype,uint8_t * dccenteredtype,uint8_t * dcagc20type,uint8_t * dcadctype,uint8_t * dcadcholdtime50ns,uint8_t * dcadczerotime50ns)9523 __INLINE void riu_rwnxagcdccomp0_unpack(uint8_t* dcdssstype, uint8_t* dccenteredtype, uint8_t* dcagc20type, uint8_t* dcadctype, uint8_t* dcadcholdtime50ns, uint8_t* dcadczerotime50ns)
9524 {
9525 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR);
9526
9527 *dcdssstype = (localVal & ((uint32_t)0x30000000)) >> 28;
9528 *dccenteredtype = (localVal & ((uint32_t)0x03000000)) >> 24;
9529 *dcagc20type = (localVal & ((uint32_t)0x00300000)) >> 20;
9530 *dcadctype = (localVal & ((uint32_t)0x00030000)) >> 16;
9531 *dcadcholdtime50ns = (localVal & ((uint32_t)0x00007F00)) >> 8;
9532 *dcadczerotime50ns = (localVal & ((uint32_t)0x0000007F)) >> 0;
9533 }
9534
9535 /**
9536 * @brief Returns the current value of the DCDSSSTYPE field in the RWNXAGCDCCOMP0 register.
9537 *
9538 * The RWNXAGCDCCOMP0 register will be read and the DCDSSSTYPE field's value will be returned.
9539 *
9540 * @return The current value of the DCDSSSTYPE field in the RWNXAGCDCCOMP0 register.
9541 */
riu_dcdssstype_getf(void)9542 __INLINE uint8_t riu_dcdssstype_getf(void)
9543 {
9544 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR);
9545 return ((localVal & ((uint32_t)0x30000000)) >> 28);
9546 }
9547
9548 /**
9549 * @brief Sets the DCDSSSTYPE field of the RWNXAGCDCCOMP0 register.
9550 *
9551 * The RWNXAGCDCCOMP0 register will be read, modified to contain the new field value, and written.
9552 *
9553 * @param[in] dcdssstype - The value to set the field to.
9554 */
riu_dcdssstype_setf(uint8_t dcdssstype)9555 __INLINE void riu_dcdssstype_setf(uint8_t dcdssstype)
9556 {
9557 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR) & ~((uint32_t)0x30000000)) | ((uint32_t)dcdssstype << 28));
9558 }
9559
9560 /**
9561 * @brief Returns the current value of the DCCENTEREDTYPE field in the RWNXAGCDCCOMP0 register.
9562 *
9563 * The RWNXAGCDCCOMP0 register will be read and the DCCENTEREDTYPE field's value will be returned.
9564 *
9565 * @return The current value of the DCCENTEREDTYPE field in the RWNXAGCDCCOMP0 register.
9566 */
riu_dccenteredtype_getf(void)9567 __INLINE uint8_t riu_dccenteredtype_getf(void)
9568 {
9569 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR);
9570 return ((localVal & ((uint32_t)0x03000000)) >> 24);
9571 }
9572
9573 /**
9574 * @brief Sets the DCCENTEREDTYPE field of the RWNXAGCDCCOMP0 register.
9575 *
9576 * The RWNXAGCDCCOMP0 register will be read, modified to contain the new field value, and written.
9577 *
9578 * @param[in] dccenteredtype - The value to set the field to.
9579 */
riu_dccenteredtype_setf(uint8_t dccenteredtype)9580 __INLINE void riu_dccenteredtype_setf(uint8_t dccenteredtype)
9581 {
9582 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR) & ~((uint32_t)0x03000000)) | ((uint32_t)dccenteredtype << 24));
9583 }
9584
9585 /**
9586 * @brief Returns the current value of the DCAGC20TYPE field in the RWNXAGCDCCOMP0 register.
9587 *
9588 * The RWNXAGCDCCOMP0 register will be read and the DCAGC20TYPE field's value will be returned.
9589 *
9590 * @return The current value of the DCAGC20TYPE field in the RWNXAGCDCCOMP0 register.
9591 */
riu_dcagc20type_getf(void)9592 __INLINE uint8_t riu_dcagc20type_getf(void)
9593 {
9594 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR);
9595 return ((localVal & ((uint32_t)0x00300000)) >> 20);
9596 }
9597
9598 /**
9599 * @brief Sets the DCAGC20TYPE field of the RWNXAGCDCCOMP0 register.
9600 *
9601 * The RWNXAGCDCCOMP0 register will be read, modified to contain the new field value, and written.
9602 *
9603 * @param[in] dcagc20type - The value to set the field to.
9604 */
riu_dcagc20type_setf(uint8_t dcagc20type)9605 __INLINE void riu_dcagc20type_setf(uint8_t dcagc20type)
9606 {
9607 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR) & ~((uint32_t)0x00300000)) | ((uint32_t)dcagc20type << 20));
9608 }
9609
9610 /**
9611 * @brief Returns the current value of the DCADCTYPE field in the RWNXAGCDCCOMP0 register.
9612 *
9613 * The RWNXAGCDCCOMP0 register will be read and the DCADCTYPE field's value will be returned.
9614 *
9615 * @return The current value of the DCADCTYPE field in the RWNXAGCDCCOMP0 register.
9616 */
riu_dcadctype_getf(void)9617 __INLINE uint8_t riu_dcadctype_getf(void)
9618 {
9619 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR);
9620 return ((localVal & ((uint32_t)0x00030000)) >> 16);
9621 }
9622
9623 /**
9624 * @brief Sets the DCADCTYPE field of the RWNXAGCDCCOMP0 register.
9625 *
9626 * The RWNXAGCDCCOMP0 register will be read, modified to contain the new field value, and written.
9627 *
9628 * @param[in] dcadctype - The value to set the field to.
9629 */
riu_dcadctype_setf(uint8_t dcadctype)9630 __INLINE void riu_dcadctype_setf(uint8_t dcadctype)
9631 {
9632 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR) & ~((uint32_t)0x00030000)) | ((uint32_t)dcadctype << 16));
9633 }
9634
9635 /**
9636 * @brief Returns the current value of the DCADCHOLDTIME50NS field in the RWNXAGCDCCOMP0 register.
9637 *
9638 * The RWNXAGCDCCOMP0 register will be read and the DCADCHOLDTIME50NS field's value will be returned.
9639 *
9640 * @return The current value of the DCADCHOLDTIME50NS field in the RWNXAGCDCCOMP0 register.
9641 */
riu_dcadcholdtime50ns_getf(void)9642 __INLINE uint8_t riu_dcadcholdtime50ns_getf(void)
9643 {
9644 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR);
9645 return ((localVal & ((uint32_t)0x00007F00)) >> 8);
9646 }
9647
9648 /**
9649 * @brief Sets the DCADCHOLDTIME50NS field of the RWNXAGCDCCOMP0 register.
9650 *
9651 * The RWNXAGCDCCOMP0 register will be read, modified to contain the new field value, and written.
9652 *
9653 * @param[in] dcadcholdtime50ns - The value to set the field to.
9654 */
riu_dcadcholdtime50ns_setf(uint8_t dcadcholdtime50ns)9655 __INLINE void riu_dcadcholdtime50ns_setf(uint8_t dcadcholdtime50ns)
9656 {
9657 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR) & ~((uint32_t)0x00007F00)) | ((uint32_t)dcadcholdtime50ns << 8));
9658 }
9659
9660 /**
9661 * @brief Returns the current value of the DCADCZEROTIME50NS field in the RWNXAGCDCCOMP0 register.
9662 *
9663 * The RWNXAGCDCCOMP0 register will be read and the DCADCZEROTIME50NS field's value will be returned.
9664 *
9665 * @return The current value of the DCADCZEROTIME50NS field in the RWNXAGCDCCOMP0 register.
9666 */
riu_dcadczerotime50ns_getf(void)9667 __INLINE uint8_t riu_dcadczerotime50ns_getf(void)
9668 {
9669 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR);
9670 return ((localVal & ((uint32_t)0x0000007F)) >> 0);
9671 }
9672
9673 /**
9674 * @brief Sets the DCADCZEROTIME50NS field of the RWNXAGCDCCOMP0 register.
9675 *
9676 * The RWNXAGCDCCOMP0 register will be read, modified to contain the new field value, and written.
9677 *
9678 * @param[in] dcadczerotime50ns - The value to set the field to.
9679 */
riu_dcadczerotime50ns_setf(uint8_t dcadczerotime50ns)9680 __INLINE void riu_dcadczerotime50ns_setf(uint8_t dcadczerotime50ns)
9681 {
9682 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP0_ADDR) & ~((uint32_t)0x0000007F)) | ((uint32_t)dcadczerotime50ns << 0));
9683 }
9684
9685 /// @}
9686
9687 /**
9688 * @name RWNXAGCDCCOMP1 register definitions
9689 * <table>
9690 * <caption id="RWNXAGCDCCOMP1_BF">RWNXAGCDCCOMP1 bitfields</caption>
9691 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
9692 * <tr><td>30:24 <td>DCCENTEREDHOLDTIME50NS <td>R <td>R/W <td>0x8
9693 * <tr><td>22:16 <td>DCCENTEREDZEROTIME50NS <td>R <td>R/W <td>0x2
9694 * <tr><td>14:08 <td>DCAGC20HOLDTIME50NS <td>R <td>R/W <td>0x0
9695 * <tr><td>06:00 <td>DCAGC20ZEROTIME50NS <td>R <td>R/W <td>0x2
9696 * </table>
9697 *
9698 * @{
9699 */
9700
9701 /// Address of the RWNXAGCDCCOMP1 register
9702 #define RIU_RWNXAGCDCCOMP1_ADDR 0x4033B378
9703 /// Offset of the RWNXAGCDCCOMP1 register from the base address
9704 #define RIU_RWNXAGCDCCOMP1_OFFSET 0x00000378
9705 /// Index of the RWNXAGCDCCOMP1 register
9706 #define RIU_RWNXAGCDCCOMP1_INDEX 0x000000DE
9707 /// Reset value of the RWNXAGCDCCOMP1 register
9708 #define RIU_RWNXAGCDCCOMP1_RESET 0x08020002
9709
9710 /**
9711 * @brief Returns the current value of the RWNXAGCDCCOMP1 register.
9712 * The RWNXAGCDCCOMP1 register will be read and its value returned.
9713 * @return The current value of the RWNXAGCDCCOMP1 register.
9714 */
riu_rwnxagcdccomp1_get(void)9715 __INLINE uint32_t riu_rwnxagcdccomp1_get(void)
9716 {
9717 return PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP1_ADDR);
9718 }
9719
9720 /**
9721 * @brief Sets the RWNXAGCDCCOMP1 register to a value.
9722 * The RWNXAGCDCCOMP1 register will be written.
9723 * @param value - The value to write.
9724 */
riu_rwnxagcdccomp1_set(uint32_t value)9725 __INLINE void riu_rwnxagcdccomp1_set(uint32_t value)
9726 {
9727 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP1_ADDR, value);
9728 }
9729
9730 // field definitions
9731 /// DCCENTEREDHOLDTIME50NS field mask
9732 #define RIU_DCCENTEREDHOLDTIME50NS_MASK ((uint32_t)0x7F000000)
9733 /// DCCENTEREDHOLDTIME50NS field LSB position
9734 #define RIU_DCCENTEREDHOLDTIME50NS_LSB 24
9735 /// DCCENTEREDHOLDTIME50NS field width
9736 #define RIU_DCCENTEREDHOLDTIME50NS_WIDTH ((uint32_t)0x00000007)
9737 /// DCCENTEREDZEROTIME50NS field mask
9738 #define RIU_DCCENTEREDZEROTIME50NS_MASK ((uint32_t)0x007F0000)
9739 /// DCCENTEREDZEROTIME50NS field LSB position
9740 #define RIU_DCCENTEREDZEROTIME50NS_LSB 16
9741 /// DCCENTEREDZEROTIME50NS field width
9742 #define RIU_DCCENTEREDZEROTIME50NS_WIDTH ((uint32_t)0x00000007)
9743 /// DCAGC20HOLDTIME50NS field mask
9744 #define RIU_DCAGC20HOLDTIME50NS_MASK ((uint32_t)0x00007F00)
9745 /// DCAGC20HOLDTIME50NS field LSB position
9746 #define RIU_DCAGC20HOLDTIME50NS_LSB 8
9747 /// DCAGC20HOLDTIME50NS field width
9748 #define RIU_DCAGC20HOLDTIME50NS_WIDTH ((uint32_t)0x00000007)
9749 /// DCAGC20ZEROTIME50NS field mask
9750 #define RIU_DCAGC20ZEROTIME50NS_MASK ((uint32_t)0x0000007F)
9751 /// DCAGC20ZEROTIME50NS field LSB position
9752 #define RIU_DCAGC20ZEROTIME50NS_LSB 0
9753 /// DCAGC20ZEROTIME50NS field width
9754 #define RIU_DCAGC20ZEROTIME50NS_WIDTH ((uint32_t)0x00000007)
9755
9756 /// DCCENTEREDHOLDTIME50NS field reset value
9757 #define RIU_DCCENTEREDHOLDTIME50NS_RST 0x8
9758 /// DCCENTEREDZEROTIME50NS field reset value
9759 #define RIU_DCCENTEREDZEROTIME50NS_RST 0x2
9760 /// DCAGC20HOLDTIME50NS field reset value
9761 #define RIU_DCAGC20HOLDTIME50NS_RST 0x0
9762 /// DCAGC20ZEROTIME50NS field reset value
9763 #define RIU_DCAGC20ZEROTIME50NS_RST 0x2
9764
9765 /**
9766 * @brief Constructs a value for the RWNXAGCDCCOMP1 register given values for its fields
9767 * and writes the value to the register.
9768 *
9769 * @param[in] dccenteredholdtime50ns - The value to use for the DCCENTEREDHOLDTIME50NS field.
9770 * @param[in] dccenteredzerotime50ns - The value to use for the DCCENTEREDZEROTIME50NS field.
9771 * @param[in] dcagc20holdtime50ns - The value to use for the DCAGC20HOLDTIME50NS field.
9772 * @param[in] dcagc20zerotime50ns - The value to use for the DCAGC20ZEROTIME50NS field.
9773 */
riu_rwnxagcdccomp1_pack(uint8_t dccenteredholdtime50ns,uint8_t dccenteredzerotime50ns,uint8_t dcagc20holdtime50ns,uint8_t dcagc20zerotime50ns)9774 __INLINE void riu_rwnxagcdccomp1_pack(uint8_t dccenteredholdtime50ns, uint8_t dccenteredzerotime50ns, uint8_t dcagc20holdtime50ns, uint8_t dcagc20zerotime50ns)
9775 {
9776 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP1_ADDR, ((uint32_t)dccenteredholdtime50ns << 24) | ((uint32_t)dccenteredzerotime50ns << 16) | ((uint32_t)dcagc20holdtime50ns << 8) | ((uint32_t)dcagc20zerotime50ns << 0));
9777 }
9778
9779 /**
9780 * @brief Unpacks RWNXAGCDCCOMP1's fields from current value of the RWNXAGCDCCOMP1 register.
9781 *
9782 * Reads the RWNXAGCDCCOMP1 register and populates all the _field variables with the corresponding
9783 * values from the register.
9784 *
9785 * @param[out] dccenteredholdtime50ns - Will be populated with the current value of this field from the register.
9786 * @param[out] dccenteredzerotime50ns - Will be populated with the current value of this field from the register.
9787 * @param[out] dcagc20holdtime50ns - Will be populated with the current value of this field from the register.
9788 * @param[out] dcagc20zerotime50ns - Will be populated with the current value of this field from the register.
9789 */
riu_rwnxagcdccomp1_unpack(uint8_t * dccenteredholdtime50ns,uint8_t * dccenteredzerotime50ns,uint8_t * dcagc20holdtime50ns,uint8_t * dcagc20zerotime50ns)9790 __INLINE void riu_rwnxagcdccomp1_unpack(uint8_t* dccenteredholdtime50ns, uint8_t* dccenteredzerotime50ns, uint8_t* dcagc20holdtime50ns, uint8_t* dcagc20zerotime50ns)
9791 {
9792 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP1_ADDR);
9793
9794 *dccenteredholdtime50ns = (localVal & ((uint32_t)0x7F000000)) >> 24;
9795 *dccenteredzerotime50ns = (localVal & ((uint32_t)0x007F0000)) >> 16;
9796 *dcagc20holdtime50ns = (localVal & ((uint32_t)0x00007F00)) >> 8;
9797 *dcagc20zerotime50ns = (localVal & ((uint32_t)0x0000007F)) >> 0;
9798 }
9799
9800 /**
9801 * @brief Returns the current value of the DCCENTEREDHOLDTIME50NS field in the RWNXAGCDCCOMP1 register.
9802 *
9803 * The RWNXAGCDCCOMP1 register will be read and the DCCENTEREDHOLDTIME50NS field's value will be returned.
9804 *
9805 * @return The current value of the DCCENTEREDHOLDTIME50NS field in the RWNXAGCDCCOMP1 register.
9806 */
riu_dccenteredholdtime50ns_getf(void)9807 __INLINE uint8_t riu_dccenteredholdtime50ns_getf(void)
9808 {
9809 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP1_ADDR);
9810 return ((localVal & ((uint32_t)0x7F000000)) >> 24);
9811 }
9812
9813 /**
9814 * @brief Sets the DCCENTEREDHOLDTIME50NS field of the RWNXAGCDCCOMP1 register.
9815 *
9816 * The RWNXAGCDCCOMP1 register will be read, modified to contain the new field value, and written.
9817 *
9818 * @param[in] dccenteredholdtime50ns - The value to set the field to.
9819 */
riu_dccenteredholdtime50ns_setf(uint8_t dccenteredholdtime50ns)9820 __INLINE void riu_dccenteredholdtime50ns_setf(uint8_t dccenteredholdtime50ns)
9821 {
9822 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP1_ADDR) & ~((uint32_t)0x7F000000)) | ((uint32_t)dccenteredholdtime50ns << 24));
9823 }
9824
9825 /**
9826 * @brief Returns the current value of the DCCENTEREDZEROTIME50NS field in the RWNXAGCDCCOMP1 register.
9827 *
9828 * The RWNXAGCDCCOMP1 register will be read and the DCCENTEREDZEROTIME50NS field's value will be returned.
9829 *
9830 * @return The current value of the DCCENTEREDZEROTIME50NS field in the RWNXAGCDCCOMP1 register.
9831 */
riu_dccenteredzerotime50ns_getf(void)9832 __INLINE uint8_t riu_dccenteredzerotime50ns_getf(void)
9833 {
9834 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP1_ADDR);
9835 return ((localVal & ((uint32_t)0x007F0000)) >> 16);
9836 }
9837
9838 /**
9839 * @brief Sets the DCCENTEREDZEROTIME50NS field of the RWNXAGCDCCOMP1 register.
9840 *
9841 * The RWNXAGCDCCOMP1 register will be read, modified to contain the new field value, and written.
9842 *
9843 * @param[in] dccenteredzerotime50ns - The value to set the field to.
9844 */
riu_dccenteredzerotime50ns_setf(uint8_t dccenteredzerotime50ns)9845 __INLINE void riu_dccenteredzerotime50ns_setf(uint8_t dccenteredzerotime50ns)
9846 {
9847 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP1_ADDR) & ~((uint32_t)0x007F0000)) | ((uint32_t)dccenteredzerotime50ns << 16));
9848 }
9849
9850 /**
9851 * @brief Returns the current value of the DCAGC20HOLDTIME50NS field in the RWNXAGCDCCOMP1 register.
9852 *
9853 * The RWNXAGCDCCOMP1 register will be read and the DCAGC20HOLDTIME50NS field's value will be returned.
9854 *
9855 * @return The current value of the DCAGC20HOLDTIME50NS field in the RWNXAGCDCCOMP1 register.
9856 */
riu_dcagc20holdtime50ns_getf(void)9857 __INLINE uint8_t riu_dcagc20holdtime50ns_getf(void)
9858 {
9859 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP1_ADDR);
9860 return ((localVal & ((uint32_t)0x00007F00)) >> 8);
9861 }
9862
9863 /**
9864 * @brief Sets the DCAGC20HOLDTIME50NS field of the RWNXAGCDCCOMP1 register.
9865 *
9866 * The RWNXAGCDCCOMP1 register will be read, modified to contain the new field value, and written.
9867 *
9868 * @param[in] dcagc20holdtime50ns - The value to set the field to.
9869 */
riu_dcagc20holdtime50ns_setf(uint8_t dcagc20holdtime50ns)9870 __INLINE void riu_dcagc20holdtime50ns_setf(uint8_t dcagc20holdtime50ns)
9871 {
9872 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP1_ADDR) & ~((uint32_t)0x00007F00)) | ((uint32_t)dcagc20holdtime50ns << 8));
9873 }
9874
9875 /**
9876 * @brief Returns the current value of the DCAGC20ZEROTIME50NS field in the RWNXAGCDCCOMP1 register.
9877 *
9878 * The RWNXAGCDCCOMP1 register will be read and the DCAGC20ZEROTIME50NS field's value will be returned.
9879 *
9880 * @return The current value of the DCAGC20ZEROTIME50NS field in the RWNXAGCDCCOMP1 register.
9881 */
riu_dcagc20zerotime50ns_getf(void)9882 __INLINE uint8_t riu_dcagc20zerotime50ns_getf(void)
9883 {
9884 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP1_ADDR);
9885 return ((localVal & ((uint32_t)0x0000007F)) >> 0);
9886 }
9887
9888 /**
9889 * @brief Sets the DCAGC20ZEROTIME50NS field of the RWNXAGCDCCOMP1 register.
9890 *
9891 * The RWNXAGCDCCOMP1 register will be read, modified to contain the new field value, and written.
9892 *
9893 * @param[in] dcagc20zerotime50ns - The value to set the field to.
9894 */
riu_dcagc20zerotime50ns_setf(uint8_t dcagc20zerotime50ns)9895 __INLINE void riu_dcagc20zerotime50ns_setf(uint8_t dcagc20zerotime50ns)
9896 {
9897 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP1_ADDR) & ~((uint32_t)0x0000007F)) | ((uint32_t)dcagc20zerotime50ns << 0));
9898 }
9899
9900 /// @}
9901
9902 /**
9903 * @name RWNXAGCDCCOMP2 register definitions
9904 * <table>
9905 * <caption id="RWNXAGCDCCOMP2_BF">RWNXAGCDCCOMP2 bitfields</caption>
9906 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
9907 * <tr><td>30:24 <td>DCDSSSHOLDTIME50NS <td>R <td>R/W <td>0x0
9908 * <tr><td>22:16 <td>DCDSSSZEROTIME50NS <td>R <td>R/W <td>0x2
9909 * <tr><td>06:00 <td> DELDCSTABLECC <td>R <td>R/W <td>0x0
9910 * </table>
9911 *
9912 * @{
9913 */
9914
9915 /// Address of the RWNXAGCDCCOMP2 register
9916 #define RIU_RWNXAGCDCCOMP2_ADDR 0x4033B37C
9917 /// Offset of the RWNXAGCDCCOMP2 register from the base address
9918 #define RIU_RWNXAGCDCCOMP2_OFFSET 0x0000037C
9919 /// Index of the RWNXAGCDCCOMP2 register
9920 #define RIU_RWNXAGCDCCOMP2_INDEX 0x000000DF
9921 /// Reset value of the RWNXAGCDCCOMP2 register
9922 #define RIU_RWNXAGCDCCOMP2_RESET 0x00020000
9923
9924 /**
9925 * @brief Returns the current value of the RWNXAGCDCCOMP2 register.
9926 * The RWNXAGCDCCOMP2 register will be read and its value returned.
9927 * @return The current value of the RWNXAGCDCCOMP2 register.
9928 */
riu_rwnxagcdccomp2_get(void)9929 __INLINE uint32_t riu_rwnxagcdccomp2_get(void)
9930 {
9931 return PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP2_ADDR);
9932 }
9933
9934 /**
9935 * @brief Sets the RWNXAGCDCCOMP2 register to a value.
9936 * The RWNXAGCDCCOMP2 register will be written.
9937 * @param value - The value to write.
9938 */
riu_rwnxagcdccomp2_set(uint32_t value)9939 __INLINE void riu_rwnxagcdccomp2_set(uint32_t value)
9940 {
9941 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP2_ADDR, value);
9942 }
9943
9944 // field definitions
9945 /// DCDSSSHOLDTIME50NS field mask
9946 #define RIU_DCDSSSHOLDTIME50NS_MASK ((uint32_t)0x7F000000)
9947 /// DCDSSSHOLDTIME50NS field LSB position
9948 #define RIU_DCDSSSHOLDTIME50NS_LSB 24
9949 /// DCDSSSHOLDTIME50NS field width
9950 #define RIU_DCDSSSHOLDTIME50NS_WIDTH ((uint32_t)0x00000007)
9951 /// DCDSSSZEROTIME50NS field mask
9952 #define RIU_DCDSSSZEROTIME50NS_MASK ((uint32_t)0x007F0000)
9953 /// DCDSSSZEROTIME50NS field LSB position
9954 #define RIU_DCDSSSZEROTIME50NS_LSB 16
9955 /// DCDSSSZEROTIME50NS field width
9956 #define RIU_DCDSSSZEROTIME50NS_WIDTH ((uint32_t)0x00000007)
9957 /// DELDCSTABLECC field mask
9958 #define RIU_DELDCSTABLECC_MASK ((uint32_t)0x0000007F)
9959 /// DELDCSTABLECC field LSB position
9960 #define RIU_DELDCSTABLECC_LSB 0
9961 /// DELDCSTABLECC field width
9962 #define RIU_DELDCSTABLECC_WIDTH ((uint32_t)0x00000007)
9963
9964 /// DCDSSSHOLDTIME50NS field reset value
9965 #define RIU_DCDSSSHOLDTIME50NS_RST 0x0
9966 /// DCDSSSZEROTIME50NS field reset value
9967 #define RIU_DCDSSSZEROTIME50NS_RST 0x2
9968 /// DELDCSTABLECC field reset value
9969 #define RIU_DELDCSTABLECC_RST 0x0
9970
9971 /**
9972 * @brief Constructs a value for the RWNXAGCDCCOMP2 register given values for its fields
9973 * and writes the value to the register.
9974 *
9975 * @param[in] dcdsssholdtime50ns - The value to use for the DCDSSSHOLDTIME50NS field.
9976 * @param[in] dcdssszerotime50ns - The value to use for the DCDSSSZEROTIME50NS field.
9977 * @param[in] deldcstablecc - The value to use for the DELDCSTABLECC field.
9978 */
riu_rwnxagcdccomp2_pack(uint8_t dcdsssholdtime50ns,uint8_t dcdssszerotime50ns,uint8_t deldcstablecc)9979 __INLINE void riu_rwnxagcdccomp2_pack(uint8_t dcdsssholdtime50ns, uint8_t dcdssszerotime50ns, uint8_t deldcstablecc)
9980 {
9981 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP2_ADDR, ((uint32_t)dcdsssholdtime50ns << 24) | ((uint32_t)dcdssszerotime50ns << 16) | ((uint32_t)deldcstablecc << 0));
9982 }
9983
9984 /**
9985 * @brief Unpacks RWNXAGCDCCOMP2's fields from current value of the RWNXAGCDCCOMP2 register.
9986 *
9987 * Reads the RWNXAGCDCCOMP2 register and populates all the _field variables with the corresponding
9988 * values from the register.
9989 *
9990 * @param[out] dcdsssholdtime50ns - Will be populated with the current value of this field from the register.
9991 * @param[out] dcdssszerotime50ns - Will be populated with the current value of this field from the register.
9992 * @param[out] deldcstablecc - Will be populated with the current value of this field from the register.
9993 */
riu_rwnxagcdccomp2_unpack(uint8_t * dcdsssholdtime50ns,uint8_t * dcdssszerotime50ns,uint8_t * deldcstablecc)9994 __INLINE void riu_rwnxagcdccomp2_unpack(uint8_t* dcdsssholdtime50ns, uint8_t* dcdssszerotime50ns, uint8_t* deldcstablecc)
9995 {
9996 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP2_ADDR);
9997
9998 *dcdsssholdtime50ns = (localVal & ((uint32_t)0x7F000000)) >> 24;
9999 *dcdssszerotime50ns = (localVal & ((uint32_t)0x007F0000)) >> 16;
10000 *deldcstablecc = (localVal & ((uint32_t)0x0000007F)) >> 0;
10001 }
10002
10003 /**
10004 * @brief Returns the current value of the DCDSSSHOLDTIME50NS field in the RWNXAGCDCCOMP2 register.
10005 *
10006 * The RWNXAGCDCCOMP2 register will be read and the DCDSSSHOLDTIME50NS field's value will be returned.
10007 *
10008 * @return The current value of the DCDSSSHOLDTIME50NS field in the RWNXAGCDCCOMP2 register.
10009 */
riu_dcdsssholdtime50ns_getf(void)10010 __INLINE uint8_t riu_dcdsssholdtime50ns_getf(void)
10011 {
10012 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP2_ADDR);
10013 return ((localVal & ((uint32_t)0x7F000000)) >> 24);
10014 }
10015
10016 /**
10017 * @brief Sets the DCDSSSHOLDTIME50NS field of the RWNXAGCDCCOMP2 register.
10018 *
10019 * The RWNXAGCDCCOMP2 register will be read, modified to contain the new field value, and written.
10020 *
10021 * @param[in] dcdsssholdtime50ns - The value to set the field to.
10022 */
riu_dcdsssholdtime50ns_setf(uint8_t dcdsssholdtime50ns)10023 __INLINE void riu_dcdsssholdtime50ns_setf(uint8_t dcdsssholdtime50ns)
10024 {
10025 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP2_ADDR) & ~((uint32_t)0x7F000000)) | ((uint32_t)dcdsssholdtime50ns << 24));
10026 }
10027
10028 /**
10029 * @brief Returns the current value of the DCDSSSZEROTIME50NS field in the RWNXAGCDCCOMP2 register.
10030 *
10031 * The RWNXAGCDCCOMP2 register will be read and the DCDSSSZEROTIME50NS field's value will be returned.
10032 *
10033 * @return The current value of the DCDSSSZEROTIME50NS field in the RWNXAGCDCCOMP2 register.
10034 */
riu_dcdssszerotime50ns_getf(void)10035 __INLINE uint8_t riu_dcdssszerotime50ns_getf(void)
10036 {
10037 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP2_ADDR);
10038 return ((localVal & ((uint32_t)0x007F0000)) >> 16);
10039 }
10040
10041 /**
10042 * @brief Sets the DCDSSSZEROTIME50NS field of the RWNXAGCDCCOMP2 register.
10043 *
10044 * The RWNXAGCDCCOMP2 register will be read, modified to contain the new field value, and written.
10045 *
10046 * @param[in] dcdssszerotime50ns - The value to set the field to.
10047 */
riu_dcdssszerotime50ns_setf(uint8_t dcdssszerotime50ns)10048 __INLINE void riu_dcdssszerotime50ns_setf(uint8_t dcdssszerotime50ns)
10049 {
10050 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP2_ADDR) & ~((uint32_t)0x007F0000)) | ((uint32_t)dcdssszerotime50ns << 16));
10051 }
10052
10053 /**
10054 * @brief Returns the current value of the DELDCSTABLECC field in the RWNXAGCDCCOMP2 register.
10055 *
10056 * The RWNXAGCDCCOMP2 register will be read and the DELDCSTABLECC field's value will be returned.
10057 *
10058 * @return The current value of the DELDCSTABLECC field in the RWNXAGCDCCOMP2 register.
10059 */
riu_deldcstablecc_getf(void)10060 __INLINE uint8_t riu_deldcstablecc_getf(void)
10061 {
10062 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP2_ADDR);
10063 return ((localVal & ((uint32_t)0x0000007F)) >> 0);
10064 }
10065
10066 /**
10067 * @brief Sets the DELDCSTABLECC field of the RWNXAGCDCCOMP2 register.
10068 *
10069 * The RWNXAGCDCCOMP2 register will be read, modified to contain the new field value, and written.
10070 *
10071 * @param[in] deldcstablecc - The value to set the field to.
10072 */
riu_deldcstablecc_setf(uint8_t deldcstablecc)10073 __INLINE void riu_deldcstablecc_setf(uint8_t deldcstablecc)
10074 {
10075 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMP2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMP2_ADDR) & ~((uint32_t)0x0000007F)) | ((uint32_t)deldcstablecc << 0));
10076 }
10077
10078 /// @}
10079
10080 /**
10081 * @name RWNXAGCEVT0 register definitions
10082 * <table>
10083 * <caption id="RWNXAGCEVT0_BF">RWNXAGCEVT0 bitfields</caption>
10084 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
10085 * <tr><td>31:26 <td> EVT0OP1 <td>R <td>R/W <td>0x14
10086 * <tr><td>25:20 <td> EVT0OP2 <td>R <td>R/W <td>0x10
10087 * <tr><td>19:14 <td> EVT0OP3 <td>R <td>R/W <td>0x1
10088 * <tr><td>13 <td> EVT0PATHCOMB <td>R <td>R/W <td>0
10089 * <tr><td>12:10 <td> EVT0OPCOMB <td>R <td>R/W <td>0x1
10090 * <tr><td>08:00 <td> EVT0TGTADD <td>R <td>R/W <td>0x2
10091 * </table>
10092 *
10093 * @{
10094 */
10095
10096 /// Address of the RWNXAGCEVT0 register
10097 #define RIU_RWNXAGCEVT0_ADDR 0x4033B380
10098 /// Offset of the RWNXAGCEVT0 register from the base address
10099 #define RIU_RWNXAGCEVT0_OFFSET 0x00000380
10100 /// Index of the RWNXAGCEVT0 register
10101 #define RIU_RWNXAGCEVT0_INDEX 0x000000E0
10102 /// Reset value of the RWNXAGCEVT0 register
10103 #define RIU_RWNXAGCEVT0_RESET 0x51004402
10104
10105 /**
10106 * @brief Returns the current value of the RWNXAGCEVT0 register.
10107 * The RWNXAGCEVT0 register will be read and its value returned.
10108 * @return The current value of the RWNXAGCEVT0 register.
10109 */
riu_rwnxagcevt0_get(void)10110 __INLINE uint32_t riu_rwnxagcevt0_get(void)
10111 {
10112 return PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR);
10113 }
10114
10115 /**
10116 * @brief Sets the RWNXAGCEVT0 register to a value.
10117 * The RWNXAGCEVT0 register will be written.
10118 * @param value - The value to write.
10119 */
riu_rwnxagcevt0_set(uint32_t value)10120 __INLINE void riu_rwnxagcevt0_set(uint32_t value)
10121 {
10122 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT0_ADDR, value);
10123 }
10124
10125 // field definitions
10126 /// EVT0OP1 field mask
10127 #define RIU_EVT0OP1_MASK ((uint32_t)0xFC000000)
10128 /// EVT0OP1 field LSB position
10129 #define RIU_EVT0OP1_LSB 26
10130 /// EVT0OP1 field width
10131 #define RIU_EVT0OP1_WIDTH ((uint32_t)0x00000006)
10132 /// EVT0OP2 field mask
10133 #define RIU_EVT0OP2_MASK ((uint32_t)0x03F00000)
10134 /// EVT0OP2 field LSB position
10135 #define RIU_EVT0OP2_LSB 20
10136 /// EVT0OP2 field width
10137 #define RIU_EVT0OP2_WIDTH ((uint32_t)0x00000006)
10138 /// EVT0OP3 field mask
10139 #define RIU_EVT0OP3_MASK ((uint32_t)0x000FC000)
10140 /// EVT0OP3 field LSB position
10141 #define RIU_EVT0OP3_LSB 14
10142 /// EVT0OP3 field width
10143 #define RIU_EVT0OP3_WIDTH ((uint32_t)0x00000006)
10144 /// EVT0PATHCOMB field bit
10145 #define RIU_EVT0PATHCOMB_BIT ((uint32_t)0x00002000)
10146 /// EVT0PATHCOMB field position
10147 #define RIU_EVT0PATHCOMB_POS 13
10148 /// EVT0OPCOMB field mask
10149 #define RIU_EVT0OPCOMB_MASK ((uint32_t)0x00001C00)
10150 /// EVT0OPCOMB field LSB position
10151 #define RIU_EVT0OPCOMB_LSB 10
10152 /// EVT0OPCOMB field width
10153 #define RIU_EVT0OPCOMB_WIDTH ((uint32_t)0x00000003)
10154 /// EVT0TGTADD field mask
10155 #define RIU_EVT0TGTADD_MASK ((uint32_t)0x000001FF)
10156 /// EVT0TGTADD field LSB position
10157 #define RIU_EVT0TGTADD_LSB 0
10158 /// EVT0TGTADD field width
10159 #define RIU_EVT0TGTADD_WIDTH ((uint32_t)0x00000009)
10160
10161 /// EVT0OP1 field reset value
10162 #define RIU_EVT0OP1_RST 0x14
10163 /// EVT0OP2 field reset value
10164 #define RIU_EVT0OP2_RST 0x10
10165 /// EVT0OP3 field reset value
10166 #define RIU_EVT0OP3_RST 0x1
10167 /// EVT0PATHCOMB field reset value
10168 #define RIU_EVT0PATHCOMB_RST 0x0
10169 /// EVT0OPCOMB field reset value
10170 #define RIU_EVT0OPCOMB_RST 0x1
10171 /// EVT0TGTADD field reset value
10172 #define RIU_EVT0TGTADD_RST 0x2
10173
10174 /**
10175 * @brief Constructs a value for the RWNXAGCEVT0 register given values for its fields
10176 * and writes the value to the register.
10177 *
10178 * @param[in] evt0op1 - The value to use for the EVT0OP1 field.
10179 * @param[in] evt0op2 - The value to use for the EVT0OP2 field.
10180 * @param[in] evt0op3 - The value to use for the EVT0OP3 field.
10181 * @param[in] evt0pathcomb - The value to use for the EVT0PATHCOMB field.
10182 * @param[in] evt0opcomb - The value to use for the EVT0OPCOMB field.
10183 * @param[in] evt0tgtadd - The value to use for the EVT0TGTADD field.
10184 */
riu_rwnxagcevt0_pack(uint8_t evt0op1,uint8_t evt0op2,uint8_t evt0op3,uint8_t evt0pathcomb,uint8_t evt0opcomb,uint16_t evt0tgtadd)10185 __INLINE void riu_rwnxagcevt0_pack(uint8_t evt0op1, uint8_t evt0op2, uint8_t evt0op3, uint8_t evt0pathcomb, uint8_t evt0opcomb, uint16_t evt0tgtadd)
10186 {
10187 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT0_ADDR, ((uint32_t)evt0op1 << 26) | ((uint32_t)evt0op2 << 20) | ((uint32_t)evt0op3 << 14) | ((uint32_t)evt0pathcomb << 13) | ((uint32_t)evt0opcomb << 10) | ((uint32_t)evt0tgtadd << 0));
10188 }
10189
10190 /**
10191 * @brief Unpacks RWNXAGCEVT0's fields from current value of the RWNXAGCEVT0 register.
10192 *
10193 * Reads the RWNXAGCEVT0 register and populates all the _field variables with the corresponding
10194 * values from the register.
10195 *
10196 * @param[out] evt0op1 - Will be populated with the current value of this field from the register.
10197 * @param[out] evt0op2 - Will be populated with the current value of this field from the register.
10198 * @param[out] evt0op3 - Will be populated with the current value of this field from the register.
10199 * @param[out] evt0pathcomb - Will be populated with the current value of this field from the register.
10200 * @param[out] evt0opcomb - Will be populated with the current value of this field from the register.
10201 * @param[out] evt0tgtadd - Will be populated with the current value of this field from the register.
10202 */
riu_rwnxagcevt0_unpack(uint8_t * evt0op1,uint8_t * evt0op2,uint8_t * evt0op3,uint8_t * evt0pathcomb,uint8_t * evt0opcomb,uint16_t * evt0tgtadd)10203 __INLINE void riu_rwnxagcevt0_unpack(uint8_t* evt0op1, uint8_t* evt0op2, uint8_t* evt0op3, uint8_t* evt0pathcomb, uint8_t* evt0opcomb, uint16_t* evt0tgtadd)
10204 {
10205 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR);
10206
10207 *evt0op1 = (localVal & ((uint32_t)0xFC000000)) >> 26;
10208 *evt0op2 = (localVal & ((uint32_t)0x03F00000)) >> 20;
10209 *evt0op3 = (localVal & ((uint32_t)0x000FC000)) >> 14;
10210 *evt0pathcomb = (localVal & ((uint32_t)0x00002000)) >> 13;
10211 *evt0opcomb = (localVal & ((uint32_t)0x00001C00)) >> 10;
10212 *evt0tgtadd = (localVal & ((uint32_t)0x000001FF)) >> 0;
10213 }
10214
10215 /**
10216 * @brief Returns the current value of the EVT0OP1 field in the RWNXAGCEVT0 register.
10217 *
10218 * The RWNXAGCEVT0 register will be read and the EVT0OP1 field's value will be returned.
10219 *
10220 * @return The current value of the EVT0OP1 field in the RWNXAGCEVT0 register.
10221 */
riu_evt0op1_getf(void)10222 __INLINE uint8_t riu_evt0op1_getf(void)
10223 {
10224 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR);
10225 return ((localVal & ((uint32_t)0xFC000000)) >> 26);
10226 }
10227
10228 /**
10229 * @brief Sets the EVT0OP1 field of the RWNXAGCEVT0 register.
10230 *
10231 * The RWNXAGCEVT0 register will be read, modified to contain the new field value, and written.
10232 *
10233 * @param[in] evt0op1 - The value to set the field to.
10234 */
riu_evt0op1_setf(uint8_t evt0op1)10235 __INLINE void riu_evt0op1_setf(uint8_t evt0op1)
10236 {
10237 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR) & ~((uint32_t)0xFC000000)) | ((uint32_t)evt0op1 << 26));
10238 }
10239
10240 /**
10241 * @brief Returns the current value of the EVT0OP2 field in the RWNXAGCEVT0 register.
10242 *
10243 * The RWNXAGCEVT0 register will be read and the EVT0OP2 field's value will be returned.
10244 *
10245 * @return The current value of the EVT0OP2 field in the RWNXAGCEVT0 register.
10246 */
riu_evt0op2_getf(void)10247 __INLINE uint8_t riu_evt0op2_getf(void)
10248 {
10249 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR);
10250 return ((localVal & ((uint32_t)0x03F00000)) >> 20);
10251 }
10252
10253 /**
10254 * @brief Sets the EVT0OP2 field of the RWNXAGCEVT0 register.
10255 *
10256 * The RWNXAGCEVT0 register will be read, modified to contain the new field value, and written.
10257 *
10258 * @param[in] evt0op2 - The value to set the field to.
10259 */
riu_evt0op2_setf(uint8_t evt0op2)10260 __INLINE void riu_evt0op2_setf(uint8_t evt0op2)
10261 {
10262 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR) & ~((uint32_t)0x03F00000)) | ((uint32_t)evt0op2 << 20));
10263 }
10264
10265 /**
10266 * @brief Returns the current value of the EVT0OP3 field in the RWNXAGCEVT0 register.
10267 *
10268 * The RWNXAGCEVT0 register will be read and the EVT0OP3 field's value will be returned.
10269 *
10270 * @return The current value of the EVT0OP3 field in the RWNXAGCEVT0 register.
10271 */
riu_evt0op3_getf(void)10272 __INLINE uint8_t riu_evt0op3_getf(void)
10273 {
10274 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR);
10275 return ((localVal & ((uint32_t)0x000FC000)) >> 14);
10276 }
10277
10278 /**
10279 * @brief Sets the EVT0OP3 field of the RWNXAGCEVT0 register.
10280 *
10281 * The RWNXAGCEVT0 register will be read, modified to contain the new field value, and written.
10282 *
10283 * @param[in] evt0op3 - The value to set the field to.
10284 */
riu_evt0op3_setf(uint8_t evt0op3)10285 __INLINE void riu_evt0op3_setf(uint8_t evt0op3)
10286 {
10287 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR) & ~((uint32_t)0x000FC000)) | ((uint32_t)evt0op3 << 14));
10288 }
10289
10290 /**
10291 * @brief Returns the current value of the EVT0PATHCOMB field in the RWNXAGCEVT0 register.
10292 *
10293 * The RWNXAGCEVT0 register will be read and the EVT0PATHCOMB field's value will be returned.
10294 *
10295 * @return The current value of the EVT0PATHCOMB field in the RWNXAGCEVT0 register.
10296 */
riu_evt0pathcomb_getf(void)10297 __INLINE uint8_t riu_evt0pathcomb_getf(void)
10298 {
10299 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR);
10300 return ((localVal & ((uint32_t)0x00002000)) >> 13);
10301 }
10302
10303 /**
10304 * @brief Sets the EVT0PATHCOMB field of the RWNXAGCEVT0 register.
10305 *
10306 * The RWNXAGCEVT0 register will be read, modified to contain the new field value, and written.
10307 *
10308 * @param[in] evt0pathcomb - The value to set the field to.
10309 */
riu_evt0pathcomb_setf(uint8_t evt0pathcomb)10310 __INLINE void riu_evt0pathcomb_setf(uint8_t evt0pathcomb)
10311 {
10312 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR) & ~((uint32_t)0x00002000)) | ((uint32_t)evt0pathcomb << 13));
10313 }
10314
10315 /**
10316 * @brief Returns the current value of the EVT0OPCOMB field in the RWNXAGCEVT0 register.
10317 *
10318 * The RWNXAGCEVT0 register will be read and the EVT0OPCOMB field's value will be returned.
10319 *
10320 * @return The current value of the EVT0OPCOMB field in the RWNXAGCEVT0 register.
10321 */
riu_evt0opcomb_getf(void)10322 __INLINE uint8_t riu_evt0opcomb_getf(void)
10323 {
10324 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR);
10325 return ((localVal & ((uint32_t)0x00001C00)) >> 10);
10326 }
10327
10328 /**
10329 * @brief Sets the EVT0OPCOMB field of the RWNXAGCEVT0 register.
10330 *
10331 * The RWNXAGCEVT0 register will be read, modified to contain the new field value, and written.
10332 *
10333 * @param[in] evt0opcomb - The value to set the field to.
10334 */
riu_evt0opcomb_setf(uint8_t evt0opcomb)10335 __INLINE void riu_evt0opcomb_setf(uint8_t evt0opcomb)
10336 {
10337 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR) & ~((uint32_t)0x00001C00)) | ((uint32_t)evt0opcomb << 10));
10338 }
10339
10340 /**
10341 * @brief Returns the current value of the EVT0TGTADD field in the RWNXAGCEVT0 register.
10342 *
10343 * The RWNXAGCEVT0 register will be read and the EVT0TGTADD field's value will be returned.
10344 *
10345 * @return The current value of the EVT0TGTADD field in the RWNXAGCEVT0 register.
10346 */
riu_evt0tgtadd_getf(void)10347 __INLINE uint16_t riu_evt0tgtadd_getf(void)
10348 {
10349 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR);
10350 return ((localVal & ((uint32_t)0x000001FF)) >> 0);
10351 }
10352
10353 /**
10354 * @brief Sets the EVT0TGTADD field of the RWNXAGCEVT0 register.
10355 *
10356 * The RWNXAGCEVT0 register will be read, modified to contain the new field value, and written.
10357 *
10358 * @param[in] evt0tgtadd - The value to set the field to.
10359 */
riu_evt0tgtadd_setf(uint16_t evt0tgtadd)10360 __INLINE void riu_evt0tgtadd_setf(uint16_t evt0tgtadd)
10361 {
10362 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT0_ADDR) & ~((uint32_t)0x000001FF)) | ((uint32_t)evt0tgtadd << 0));
10363 }
10364
10365 /// @}
10366
10367 /**
10368 * @name RWNXAGCEVT1 register definitions
10369 * <table>
10370 * <caption id="RWNXAGCEVT1_BF">RWNXAGCEVT1 bitfields</caption>
10371 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
10372 * <tr><td>31:26 <td> EVT1OP1 <td>R <td>R/W <td>0x15
10373 * <tr><td>25:20 <td> EVT1OP2 <td>R <td>R/W <td>0x17
10374 * <tr><td>19:14 <td> EVT1OP3 <td>R <td>R/W <td>0xF
10375 * <tr><td>13 <td> EVT1PATHCOMB <td>R <td>R/W <td>0
10376 * <tr><td>12:10 <td> EVT1OPCOMB <td>R <td>R/W <td>0x2
10377 * <tr><td>08:00 <td> EVT1TGTADD <td>R <td>R/W <td>0x5
10378 * </table>
10379 *
10380 * @{
10381 */
10382
10383 /// Address of the RWNXAGCEVT1 register
10384 #define RIU_RWNXAGCEVT1_ADDR 0x4033B384
10385 /// Offset of the RWNXAGCEVT1 register from the base address
10386 #define RIU_RWNXAGCEVT1_OFFSET 0x00000384
10387 /// Index of the RWNXAGCEVT1 register
10388 #define RIU_RWNXAGCEVT1_INDEX 0x000000E1
10389 /// Reset value of the RWNXAGCEVT1 register
10390 #define RIU_RWNXAGCEVT1_RESET 0x5573C805
10391
10392 /**
10393 * @brief Returns the current value of the RWNXAGCEVT1 register.
10394 * The RWNXAGCEVT1 register will be read and its value returned.
10395 * @return The current value of the RWNXAGCEVT1 register.
10396 */
riu_rwnxagcevt1_get(void)10397 __INLINE uint32_t riu_rwnxagcevt1_get(void)
10398 {
10399 return PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR);
10400 }
10401
10402 /**
10403 * @brief Sets the RWNXAGCEVT1 register to a value.
10404 * The RWNXAGCEVT1 register will be written.
10405 * @param value - The value to write.
10406 */
riu_rwnxagcevt1_set(uint32_t value)10407 __INLINE void riu_rwnxagcevt1_set(uint32_t value)
10408 {
10409 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT1_ADDR, value);
10410 }
10411
10412 // field definitions
10413 /// EVT1OP1 field mask
10414 #define RIU_EVT1OP1_MASK ((uint32_t)0xFC000000)
10415 /// EVT1OP1 field LSB position
10416 #define RIU_EVT1OP1_LSB 26
10417 /// EVT1OP1 field width
10418 #define RIU_EVT1OP1_WIDTH ((uint32_t)0x00000006)
10419 /// EVT1OP2 field mask
10420 #define RIU_EVT1OP2_MASK ((uint32_t)0x03F00000)
10421 /// EVT1OP2 field LSB position
10422 #define RIU_EVT1OP2_LSB 20
10423 /// EVT1OP2 field width
10424 #define RIU_EVT1OP2_WIDTH ((uint32_t)0x00000006)
10425 /// EVT1OP3 field mask
10426 #define RIU_EVT1OP3_MASK ((uint32_t)0x000FC000)
10427 /// EVT1OP3 field LSB position
10428 #define RIU_EVT1OP3_LSB 14
10429 /// EVT1OP3 field width
10430 #define RIU_EVT1OP3_WIDTH ((uint32_t)0x00000006)
10431 /// EVT1PATHCOMB field bit
10432 #define RIU_EVT1PATHCOMB_BIT ((uint32_t)0x00002000)
10433 /// EVT1PATHCOMB field position
10434 #define RIU_EVT1PATHCOMB_POS 13
10435 /// EVT1OPCOMB field mask
10436 #define RIU_EVT1OPCOMB_MASK ((uint32_t)0x00001C00)
10437 /// EVT1OPCOMB field LSB position
10438 #define RIU_EVT1OPCOMB_LSB 10
10439 /// EVT1OPCOMB field width
10440 #define RIU_EVT1OPCOMB_WIDTH ((uint32_t)0x00000003)
10441 /// EVT1TGTADD field mask
10442 #define RIU_EVT1TGTADD_MASK ((uint32_t)0x000001FF)
10443 /// EVT1TGTADD field LSB position
10444 #define RIU_EVT1TGTADD_LSB 0
10445 /// EVT1TGTADD field width
10446 #define RIU_EVT1TGTADD_WIDTH ((uint32_t)0x00000009)
10447
10448 /// EVT1OP1 field reset value
10449 #define RIU_EVT1OP1_RST 0x15
10450 /// EVT1OP2 field reset value
10451 #define RIU_EVT1OP2_RST 0x17
10452 /// EVT1OP3 field reset value
10453 #define RIU_EVT1OP3_RST 0xF
10454 /// EVT1PATHCOMB field reset value
10455 #define RIU_EVT1PATHCOMB_RST 0x0
10456 /// EVT1OPCOMB field reset value
10457 #define RIU_EVT1OPCOMB_RST 0x2
10458 /// EVT1TGTADD field reset value
10459 #define RIU_EVT1TGTADD_RST 0x5
10460
10461 /**
10462 * @brief Constructs a value for the RWNXAGCEVT1 register given values for its fields
10463 * and writes the value to the register.
10464 *
10465 * @param[in] evt1op1 - The value to use for the EVT1OP1 field.
10466 * @param[in] evt1op2 - The value to use for the EVT1OP2 field.
10467 * @param[in] evt1op3 - The value to use for the EVT1OP3 field.
10468 * @param[in] evt1pathcomb - The value to use for the EVT1PATHCOMB field.
10469 * @param[in] evt1opcomb - The value to use for the EVT1OPCOMB field.
10470 * @param[in] evt1tgtadd - The value to use for the EVT1TGTADD field.
10471 */
riu_rwnxagcevt1_pack(uint8_t evt1op1,uint8_t evt1op2,uint8_t evt1op3,uint8_t evt1pathcomb,uint8_t evt1opcomb,uint16_t evt1tgtadd)10472 __INLINE void riu_rwnxagcevt1_pack(uint8_t evt1op1, uint8_t evt1op2, uint8_t evt1op3, uint8_t evt1pathcomb, uint8_t evt1opcomb, uint16_t evt1tgtadd)
10473 {
10474 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT1_ADDR, ((uint32_t)evt1op1 << 26) | ((uint32_t)evt1op2 << 20) | ((uint32_t)evt1op3 << 14) | ((uint32_t)evt1pathcomb << 13) | ((uint32_t)evt1opcomb << 10) | ((uint32_t)evt1tgtadd << 0));
10475 }
10476
10477 /**
10478 * @brief Unpacks RWNXAGCEVT1's fields from current value of the RWNXAGCEVT1 register.
10479 *
10480 * Reads the RWNXAGCEVT1 register and populates all the _field variables with the corresponding
10481 * values from the register.
10482 *
10483 * @param[out] evt1op1 - Will be populated with the current value of this field from the register.
10484 * @param[out] evt1op2 - Will be populated with the current value of this field from the register.
10485 * @param[out] evt1op3 - Will be populated with the current value of this field from the register.
10486 * @param[out] evt1pathcomb - Will be populated with the current value of this field from the register.
10487 * @param[out] evt1opcomb - Will be populated with the current value of this field from the register.
10488 * @param[out] evt1tgtadd - Will be populated with the current value of this field from the register.
10489 */
riu_rwnxagcevt1_unpack(uint8_t * evt1op1,uint8_t * evt1op2,uint8_t * evt1op3,uint8_t * evt1pathcomb,uint8_t * evt1opcomb,uint16_t * evt1tgtadd)10490 __INLINE void riu_rwnxagcevt1_unpack(uint8_t* evt1op1, uint8_t* evt1op2, uint8_t* evt1op3, uint8_t* evt1pathcomb, uint8_t* evt1opcomb, uint16_t* evt1tgtadd)
10491 {
10492 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR);
10493
10494 *evt1op1 = (localVal & ((uint32_t)0xFC000000)) >> 26;
10495 *evt1op2 = (localVal & ((uint32_t)0x03F00000)) >> 20;
10496 *evt1op3 = (localVal & ((uint32_t)0x000FC000)) >> 14;
10497 *evt1pathcomb = (localVal & ((uint32_t)0x00002000)) >> 13;
10498 *evt1opcomb = (localVal & ((uint32_t)0x00001C00)) >> 10;
10499 *evt1tgtadd = (localVal & ((uint32_t)0x000001FF)) >> 0;
10500 }
10501
10502 /**
10503 * @brief Returns the current value of the EVT1OP1 field in the RWNXAGCEVT1 register.
10504 *
10505 * The RWNXAGCEVT1 register will be read and the EVT1OP1 field's value will be returned.
10506 *
10507 * @return The current value of the EVT1OP1 field in the RWNXAGCEVT1 register.
10508 */
riu_evt1op1_getf(void)10509 __INLINE uint8_t riu_evt1op1_getf(void)
10510 {
10511 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR);
10512 return ((localVal & ((uint32_t)0xFC000000)) >> 26);
10513 }
10514
10515 /**
10516 * @brief Sets the EVT1OP1 field of the RWNXAGCEVT1 register.
10517 *
10518 * The RWNXAGCEVT1 register will be read, modified to contain the new field value, and written.
10519 *
10520 * @param[in] evt1op1 - The value to set the field to.
10521 */
riu_evt1op1_setf(uint8_t evt1op1)10522 __INLINE void riu_evt1op1_setf(uint8_t evt1op1)
10523 {
10524 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR) & ~((uint32_t)0xFC000000)) | ((uint32_t)evt1op1 << 26));
10525 }
10526
10527 /**
10528 * @brief Returns the current value of the EVT1OP2 field in the RWNXAGCEVT1 register.
10529 *
10530 * The RWNXAGCEVT1 register will be read and the EVT1OP2 field's value will be returned.
10531 *
10532 * @return The current value of the EVT1OP2 field in the RWNXAGCEVT1 register.
10533 */
riu_evt1op2_getf(void)10534 __INLINE uint8_t riu_evt1op2_getf(void)
10535 {
10536 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR);
10537 return ((localVal & ((uint32_t)0x03F00000)) >> 20);
10538 }
10539
10540 /**
10541 * @brief Sets the EVT1OP2 field of the RWNXAGCEVT1 register.
10542 *
10543 * The RWNXAGCEVT1 register will be read, modified to contain the new field value, and written.
10544 *
10545 * @param[in] evt1op2 - The value to set the field to.
10546 */
riu_evt1op2_setf(uint8_t evt1op2)10547 __INLINE void riu_evt1op2_setf(uint8_t evt1op2)
10548 {
10549 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR) & ~((uint32_t)0x03F00000)) | ((uint32_t)evt1op2 << 20));
10550 }
10551
10552 /**
10553 * @brief Returns the current value of the EVT1OP3 field in the RWNXAGCEVT1 register.
10554 *
10555 * The RWNXAGCEVT1 register will be read and the EVT1OP3 field's value will be returned.
10556 *
10557 * @return The current value of the EVT1OP3 field in the RWNXAGCEVT1 register.
10558 */
riu_evt1op3_getf(void)10559 __INLINE uint8_t riu_evt1op3_getf(void)
10560 {
10561 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR);
10562 return ((localVal & ((uint32_t)0x000FC000)) >> 14);
10563 }
10564
10565 /**
10566 * @brief Sets the EVT1OP3 field of the RWNXAGCEVT1 register.
10567 *
10568 * The RWNXAGCEVT1 register will be read, modified to contain the new field value, and written.
10569 *
10570 * @param[in] evt1op3 - The value to set the field to.
10571 */
riu_evt1op3_setf(uint8_t evt1op3)10572 __INLINE void riu_evt1op3_setf(uint8_t evt1op3)
10573 {
10574 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR) & ~((uint32_t)0x000FC000)) | ((uint32_t)evt1op3 << 14));
10575 }
10576
10577 /**
10578 * @brief Returns the current value of the EVT1PATHCOMB field in the RWNXAGCEVT1 register.
10579 *
10580 * The RWNXAGCEVT1 register will be read and the EVT1PATHCOMB field's value will be returned.
10581 *
10582 * @return The current value of the EVT1PATHCOMB field in the RWNXAGCEVT1 register.
10583 */
riu_evt1pathcomb_getf(void)10584 __INLINE uint8_t riu_evt1pathcomb_getf(void)
10585 {
10586 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR);
10587 return ((localVal & ((uint32_t)0x00002000)) >> 13);
10588 }
10589
10590 /**
10591 * @brief Sets the EVT1PATHCOMB field of the RWNXAGCEVT1 register.
10592 *
10593 * The RWNXAGCEVT1 register will be read, modified to contain the new field value, and written.
10594 *
10595 * @param[in] evt1pathcomb - The value to set the field to.
10596 */
riu_evt1pathcomb_setf(uint8_t evt1pathcomb)10597 __INLINE void riu_evt1pathcomb_setf(uint8_t evt1pathcomb)
10598 {
10599 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR) & ~((uint32_t)0x00002000)) | ((uint32_t)evt1pathcomb << 13));
10600 }
10601
10602 /**
10603 * @brief Returns the current value of the EVT1OPCOMB field in the RWNXAGCEVT1 register.
10604 *
10605 * The RWNXAGCEVT1 register will be read and the EVT1OPCOMB field's value will be returned.
10606 *
10607 * @return The current value of the EVT1OPCOMB field in the RWNXAGCEVT1 register.
10608 */
riu_evt1opcomb_getf(void)10609 __INLINE uint8_t riu_evt1opcomb_getf(void)
10610 {
10611 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR);
10612 return ((localVal & ((uint32_t)0x00001C00)) >> 10);
10613 }
10614
10615 /**
10616 * @brief Sets the EVT1OPCOMB field of the RWNXAGCEVT1 register.
10617 *
10618 * The RWNXAGCEVT1 register will be read, modified to contain the new field value, and written.
10619 *
10620 * @param[in] evt1opcomb - The value to set the field to.
10621 */
riu_evt1opcomb_setf(uint8_t evt1opcomb)10622 __INLINE void riu_evt1opcomb_setf(uint8_t evt1opcomb)
10623 {
10624 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR) & ~((uint32_t)0x00001C00)) | ((uint32_t)evt1opcomb << 10));
10625 }
10626
10627 /**
10628 * @brief Returns the current value of the EVT1TGTADD field in the RWNXAGCEVT1 register.
10629 *
10630 * The RWNXAGCEVT1 register will be read and the EVT1TGTADD field's value will be returned.
10631 *
10632 * @return The current value of the EVT1TGTADD field in the RWNXAGCEVT1 register.
10633 */
riu_evt1tgtadd_getf(void)10634 __INLINE uint16_t riu_evt1tgtadd_getf(void)
10635 {
10636 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR);
10637 return ((localVal & ((uint32_t)0x000001FF)) >> 0);
10638 }
10639
10640 /**
10641 * @brief Sets the EVT1TGTADD field of the RWNXAGCEVT1 register.
10642 *
10643 * The RWNXAGCEVT1 register will be read, modified to contain the new field value, and written.
10644 *
10645 * @param[in] evt1tgtadd - The value to set the field to.
10646 */
riu_evt1tgtadd_setf(uint16_t evt1tgtadd)10647 __INLINE void riu_evt1tgtadd_setf(uint16_t evt1tgtadd)
10648 {
10649 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT1_ADDR) & ~((uint32_t)0x000001FF)) | ((uint32_t)evt1tgtadd << 0));
10650 }
10651
10652 /// @}
10653
10654 /**
10655 * @name RWNXAGCEVT2 register definitions
10656 * <table>
10657 * <caption id="RWNXAGCEVT2_BF">RWNXAGCEVT2 bitfields</caption>
10658 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
10659 * <tr><td>31:26 <td> EVT2OP1 <td>R <td>R/W <td>0x19
10660 * <tr><td>25:20 <td> EVT2OP2 <td>R <td>R/W <td>0x0
10661 * <tr><td>19:14 <td> EVT2OP3 <td>R <td>R/W <td>0xE
10662 * <tr><td>13 <td> EVT2PATHCOMB <td>R <td>R/W <td>1
10663 * <tr><td>12:10 <td> EVT2OPCOMB <td>R <td>R/W <td>0x2
10664 * <tr><td>08:00 <td> EVT2TGTADD <td>R <td>R/W <td>0x8
10665 * </table>
10666 *
10667 * @{
10668 */
10669
10670 /// Address of the RWNXAGCEVT2 register
10671 #define RIU_RWNXAGCEVT2_ADDR 0x4033B388
10672 /// Offset of the RWNXAGCEVT2 register from the base address
10673 #define RIU_RWNXAGCEVT2_OFFSET 0x00000388
10674 /// Index of the RWNXAGCEVT2 register
10675 #define RIU_RWNXAGCEVT2_INDEX 0x000000E2
10676 /// Reset value of the RWNXAGCEVT2 register
10677 #define RIU_RWNXAGCEVT2_RESET 0x6403A808
10678
10679 /**
10680 * @brief Returns the current value of the RWNXAGCEVT2 register.
10681 * The RWNXAGCEVT2 register will be read and its value returned.
10682 * @return The current value of the RWNXAGCEVT2 register.
10683 */
riu_rwnxagcevt2_get(void)10684 __INLINE uint32_t riu_rwnxagcevt2_get(void)
10685 {
10686 return PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR);
10687 }
10688
10689 /**
10690 * @brief Sets the RWNXAGCEVT2 register to a value.
10691 * The RWNXAGCEVT2 register will be written.
10692 * @param value - The value to write.
10693 */
riu_rwnxagcevt2_set(uint32_t value)10694 __INLINE void riu_rwnxagcevt2_set(uint32_t value)
10695 {
10696 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT2_ADDR, value);
10697 }
10698
10699 // field definitions
10700 /// EVT2OP1 field mask
10701 #define RIU_EVT2OP1_MASK ((uint32_t)0xFC000000)
10702 /// EVT2OP1 field LSB position
10703 #define RIU_EVT2OP1_LSB 26
10704 /// EVT2OP1 field width
10705 #define RIU_EVT2OP1_WIDTH ((uint32_t)0x00000006)
10706 /// EVT2OP2 field mask
10707 #define RIU_EVT2OP2_MASK ((uint32_t)0x03F00000)
10708 /// EVT2OP2 field LSB position
10709 #define RIU_EVT2OP2_LSB 20
10710 /// EVT2OP2 field width
10711 #define RIU_EVT2OP2_WIDTH ((uint32_t)0x00000006)
10712 /// EVT2OP3 field mask
10713 #define RIU_EVT2OP3_MASK ((uint32_t)0x000FC000)
10714 /// EVT2OP3 field LSB position
10715 #define RIU_EVT2OP3_LSB 14
10716 /// EVT2OP3 field width
10717 #define RIU_EVT2OP3_WIDTH ((uint32_t)0x00000006)
10718 /// EVT2PATHCOMB field bit
10719 #define RIU_EVT2PATHCOMB_BIT ((uint32_t)0x00002000)
10720 /// EVT2PATHCOMB field position
10721 #define RIU_EVT2PATHCOMB_POS 13
10722 /// EVT2OPCOMB field mask
10723 #define RIU_EVT2OPCOMB_MASK ((uint32_t)0x00001C00)
10724 /// EVT2OPCOMB field LSB position
10725 #define RIU_EVT2OPCOMB_LSB 10
10726 /// EVT2OPCOMB field width
10727 #define RIU_EVT2OPCOMB_WIDTH ((uint32_t)0x00000003)
10728 /// EVT2TGTADD field mask
10729 #define RIU_EVT2TGTADD_MASK ((uint32_t)0x000001FF)
10730 /// EVT2TGTADD field LSB position
10731 #define RIU_EVT2TGTADD_LSB 0
10732 /// EVT2TGTADD field width
10733 #define RIU_EVT2TGTADD_WIDTH ((uint32_t)0x00000009)
10734
10735 /// EVT2OP1 field reset value
10736 #define RIU_EVT2OP1_RST 0x19
10737 /// EVT2OP2 field reset value
10738 #define RIU_EVT2OP2_RST 0x0
10739 /// EVT2OP3 field reset value
10740 #define RIU_EVT2OP3_RST 0xE
10741 /// EVT2PATHCOMB field reset value
10742 #define RIU_EVT2PATHCOMB_RST 0x1
10743 /// EVT2OPCOMB field reset value
10744 #define RIU_EVT2OPCOMB_RST 0x2
10745 /// EVT2TGTADD field reset value
10746 #define RIU_EVT2TGTADD_RST 0x8
10747
10748 /**
10749 * @brief Constructs a value for the RWNXAGCEVT2 register given values for its fields
10750 * and writes the value to the register.
10751 *
10752 * @param[in] evt2op1 - The value to use for the EVT2OP1 field.
10753 * @param[in] evt2op2 - The value to use for the EVT2OP2 field.
10754 * @param[in] evt2op3 - The value to use for the EVT2OP3 field.
10755 * @param[in] evt2pathcomb - The value to use for the EVT2PATHCOMB field.
10756 * @param[in] evt2opcomb - The value to use for the EVT2OPCOMB field.
10757 * @param[in] evt2tgtadd - The value to use for the EVT2TGTADD field.
10758 */
riu_rwnxagcevt2_pack(uint8_t evt2op1,uint8_t evt2op2,uint8_t evt2op3,uint8_t evt2pathcomb,uint8_t evt2opcomb,uint16_t evt2tgtadd)10759 __INLINE void riu_rwnxagcevt2_pack(uint8_t evt2op1, uint8_t evt2op2, uint8_t evt2op3, uint8_t evt2pathcomb, uint8_t evt2opcomb, uint16_t evt2tgtadd)
10760 {
10761 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT2_ADDR, ((uint32_t)evt2op1 << 26) | ((uint32_t)evt2op2 << 20) | ((uint32_t)evt2op3 << 14) | ((uint32_t)evt2pathcomb << 13) | ((uint32_t)evt2opcomb << 10) | ((uint32_t)evt2tgtadd << 0));
10762 }
10763
10764 /**
10765 * @brief Unpacks RWNXAGCEVT2's fields from current value of the RWNXAGCEVT2 register.
10766 *
10767 * Reads the RWNXAGCEVT2 register and populates all the _field variables with the corresponding
10768 * values from the register.
10769 *
10770 * @param[out] evt2op1 - Will be populated with the current value of this field from the register.
10771 * @param[out] evt2op2 - Will be populated with the current value of this field from the register.
10772 * @param[out] evt2op3 - Will be populated with the current value of this field from the register.
10773 * @param[out] evt2pathcomb - Will be populated with the current value of this field from the register.
10774 * @param[out] evt2opcomb - Will be populated with the current value of this field from the register.
10775 * @param[out] evt2tgtadd - Will be populated with the current value of this field from the register.
10776 */
riu_rwnxagcevt2_unpack(uint8_t * evt2op1,uint8_t * evt2op2,uint8_t * evt2op3,uint8_t * evt2pathcomb,uint8_t * evt2opcomb,uint16_t * evt2tgtadd)10777 __INLINE void riu_rwnxagcevt2_unpack(uint8_t* evt2op1, uint8_t* evt2op2, uint8_t* evt2op3, uint8_t* evt2pathcomb, uint8_t* evt2opcomb, uint16_t* evt2tgtadd)
10778 {
10779 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR);
10780
10781 *evt2op1 = (localVal & ((uint32_t)0xFC000000)) >> 26;
10782 *evt2op2 = (localVal & ((uint32_t)0x03F00000)) >> 20;
10783 *evt2op3 = (localVal & ((uint32_t)0x000FC000)) >> 14;
10784 *evt2pathcomb = (localVal & ((uint32_t)0x00002000)) >> 13;
10785 *evt2opcomb = (localVal & ((uint32_t)0x00001C00)) >> 10;
10786 *evt2tgtadd = (localVal & ((uint32_t)0x000001FF)) >> 0;
10787 }
10788
10789 /**
10790 * @brief Returns the current value of the EVT2OP1 field in the RWNXAGCEVT2 register.
10791 *
10792 * The RWNXAGCEVT2 register will be read and the EVT2OP1 field's value will be returned.
10793 *
10794 * @return The current value of the EVT2OP1 field in the RWNXAGCEVT2 register.
10795 */
riu_evt2op1_getf(void)10796 __INLINE uint8_t riu_evt2op1_getf(void)
10797 {
10798 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR);
10799 return ((localVal & ((uint32_t)0xFC000000)) >> 26);
10800 }
10801
10802 /**
10803 * @brief Sets the EVT2OP1 field of the RWNXAGCEVT2 register.
10804 *
10805 * The RWNXAGCEVT2 register will be read, modified to contain the new field value, and written.
10806 *
10807 * @param[in] evt2op1 - The value to set the field to.
10808 */
riu_evt2op1_setf(uint8_t evt2op1)10809 __INLINE void riu_evt2op1_setf(uint8_t evt2op1)
10810 {
10811 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR) & ~((uint32_t)0xFC000000)) | ((uint32_t)evt2op1 << 26));
10812 }
10813
10814 /**
10815 * @brief Returns the current value of the EVT2OP2 field in the RWNXAGCEVT2 register.
10816 *
10817 * The RWNXAGCEVT2 register will be read and the EVT2OP2 field's value will be returned.
10818 *
10819 * @return The current value of the EVT2OP2 field in the RWNXAGCEVT2 register.
10820 */
riu_evt2op2_getf(void)10821 __INLINE uint8_t riu_evt2op2_getf(void)
10822 {
10823 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR);
10824 return ((localVal & ((uint32_t)0x03F00000)) >> 20);
10825 }
10826
10827 /**
10828 * @brief Sets the EVT2OP2 field of the RWNXAGCEVT2 register.
10829 *
10830 * The RWNXAGCEVT2 register will be read, modified to contain the new field value, and written.
10831 *
10832 * @param[in] evt2op2 - The value to set the field to.
10833 */
riu_evt2op2_setf(uint8_t evt2op2)10834 __INLINE void riu_evt2op2_setf(uint8_t evt2op2)
10835 {
10836 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR) & ~((uint32_t)0x03F00000)) | ((uint32_t)evt2op2 << 20));
10837 }
10838
10839 /**
10840 * @brief Returns the current value of the EVT2OP3 field in the RWNXAGCEVT2 register.
10841 *
10842 * The RWNXAGCEVT2 register will be read and the EVT2OP3 field's value will be returned.
10843 *
10844 * @return The current value of the EVT2OP3 field in the RWNXAGCEVT2 register.
10845 */
riu_evt2op3_getf(void)10846 __INLINE uint8_t riu_evt2op3_getf(void)
10847 {
10848 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR);
10849 return ((localVal & ((uint32_t)0x000FC000)) >> 14);
10850 }
10851
10852 /**
10853 * @brief Sets the EVT2OP3 field of the RWNXAGCEVT2 register.
10854 *
10855 * The RWNXAGCEVT2 register will be read, modified to contain the new field value, and written.
10856 *
10857 * @param[in] evt2op3 - The value to set the field to.
10858 */
riu_evt2op3_setf(uint8_t evt2op3)10859 __INLINE void riu_evt2op3_setf(uint8_t evt2op3)
10860 {
10861 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR) & ~((uint32_t)0x000FC000)) | ((uint32_t)evt2op3 << 14));
10862 }
10863
10864 /**
10865 * @brief Returns the current value of the EVT2PATHCOMB field in the RWNXAGCEVT2 register.
10866 *
10867 * The RWNXAGCEVT2 register will be read and the EVT2PATHCOMB field's value will be returned.
10868 *
10869 * @return The current value of the EVT2PATHCOMB field in the RWNXAGCEVT2 register.
10870 */
riu_evt2pathcomb_getf(void)10871 __INLINE uint8_t riu_evt2pathcomb_getf(void)
10872 {
10873 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR);
10874 return ((localVal & ((uint32_t)0x00002000)) >> 13);
10875 }
10876
10877 /**
10878 * @brief Sets the EVT2PATHCOMB field of the RWNXAGCEVT2 register.
10879 *
10880 * The RWNXAGCEVT2 register will be read, modified to contain the new field value, and written.
10881 *
10882 * @param[in] evt2pathcomb - The value to set the field to.
10883 */
riu_evt2pathcomb_setf(uint8_t evt2pathcomb)10884 __INLINE void riu_evt2pathcomb_setf(uint8_t evt2pathcomb)
10885 {
10886 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR) & ~((uint32_t)0x00002000)) | ((uint32_t)evt2pathcomb << 13));
10887 }
10888
10889 /**
10890 * @brief Returns the current value of the EVT2OPCOMB field in the RWNXAGCEVT2 register.
10891 *
10892 * The RWNXAGCEVT2 register will be read and the EVT2OPCOMB field's value will be returned.
10893 *
10894 * @return The current value of the EVT2OPCOMB field in the RWNXAGCEVT2 register.
10895 */
riu_evt2opcomb_getf(void)10896 __INLINE uint8_t riu_evt2opcomb_getf(void)
10897 {
10898 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR);
10899 return ((localVal & ((uint32_t)0x00001C00)) >> 10);
10900 }
10901
10902 /**
10903 * @brief Sets the EVT2OPCOMB field of the RWNXAGCEVT2 register.
10904 *
10905 * The RWNXAGCEVT2 register will be read, modified to contain the new field value, and written.
10906 *
10907 * @param[in] evt2opcomb - The value to set the field to.
10908 */
riu_evt2opcomb_setf(uint8_t evt2opcomb)10909 __INLINE void riu_evt2opcomb_setf(uint8_t evt2opcomb)
10910 {
10911 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR) & ~((uint32_t)0x00001C00)) | ((uint32_t)evt2opcomb << 10));
10912 }
10913
10914 /**
10915 * @brief Returns the current value of the EVT2TGTADD field in the RWNXAGCEVT2 register.
10916 *
10917 * The RWNXAGCEVT2 register will be read and the EVT2TGTADD field's value will be returned.
10918 *
10919 * @return The current value of the EVT2TGTADD field in the RWNXAGCEVT2 register.
10920 */
riu_evt2tgtadd_getf(void)10921 __INLINE uint16_t riu_evt2tgtadd_getf(void)
10922 {
10923 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR);
10924 return ((localVal & ((uint32_t)0x000001FF)) >> 0);
10925 }
10926
10927 /**
10928 * @brief Sets the EVT2TGTADD field of the RWNXAGCEVT2 register.
10929 *
10930 * The RWNXAGCEVT2 register will be read, modified to contain the new field value, and written.
10931 *
10932 * @param[in] evt2tgtadd - The value to set the field to.
10933 */
riu_evt2tgtadd_setf(uint16_t evt2tgtadd)10934 __INLINE void riu_evt2tgtadd_setf(uint16_t evt2tgtadd)
10935 {
10936 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT2_ADDR) & ~((uint32_t)0x000001FF)) | ((uint32_t)evt2tgtadd << 0));
10937 }
10938
10939 /// @}
10940
10941 /**
10942 * @name RWNXAGCEVT3 register definitions
10943 * <table>
10944 * <caption id="RWNXAGCEVT3_BF">RWNXAGCEVT3 bitfields</caption>
10945 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
10946 * <tr><td>31:26 <td> EVT3OP1 <td>R <td>R/W <td>0x1
10947 * <tr><td>25:20 <td> EVT3OP2 <td>R <td>R/W <td>0xF
10948 * <tr><td>19:14 <td> EVT3OP3 <td>R <td>R/W <td>0x3F
10949 * <tr><td>13 <td> EVT3PATHCOMB <td>R <td>R/W <td>0
10950 * <tr><td>12:10 <td> EVT3OPCOMB <td>R <td>R/W <td>0x1
10951 * <tr><td>08:00 <td> EVT3TGTADD <td>R <td>R/W <td>0xB
10952 * </table>
10953 *
10954 * @{
10955 */
10956
10957 /// Address of the RWNXAGCEVT3 register
10958 #define RIU_RWNXAGCEVT3_ADDR 0x4033B38C
10959 /// Offset of the RWNXAGCEVT3 register from the base address
10960 #define RIU_RWNXAGCEVT3_OFFSET 0x0000038C
10961 /// Index of the RWNXAGCEVT3 register
10962 #define RIU_RWNXAGCEVT3_INDEX 0x000000E3
10963 /// Reset value of the RWNXAGCEVT3 register
10964 #define RIU_RWNXAGCEVT3_RESET 0x04FFC40B
10965
10966 /**
10967 * @brief Returns the current value of the RWNXAGCEVT3 register.
10968 * The RWNXAGCEVT3 register will be read and its value returned.
10969 * @return The current value of the RWNXAGCEVT3 register.
10970 */
riu_rwnxagcevt3_get(void)10971 __INLINE uint32_t riu_rwnxagcevt3_get(void)
10972 {
10973 return PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR);
10974 }
10975
10976 /**
10977 * @brief Sets the RWNXAGCEVT3 register to a value.
10978 * The RWNXAGCEVT3 register will be written.
10979 * @param value - The value to write.
10980 */
riu_rwnxagcevt3_set(uint32_t value)10981 __INLINE void riu_rwnxagcevt3_set(uint32_t value)
10982 {
10983 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT3_ADDR, value);
10984 }
10985
10986 // field definitions
10987 /// EVT3OP1 field mask
10988 #define RIU_EVT3OP1_MASK ((uint32_t)0xFC000000)
10989 /// EVT3OP1 field LSB position
10990 #define RIU_EVT3OP1_LSB 26
10991 /// EVT3OP1 field width
10992 #define RIU_EVT3OP1_WIDTH ((uint32_t)0x00000006)
10993 /// EVT3OP2 field mask
10994 #define RIU_EVT3OP2_MASK ((uint32_t)0x03F00000)
10995 /// EVT3OP2 field LSB position
10996 #define RIU_EVT3OP2_LSB 20
10997 /// EVT3OP2 field width
10998 #define RIU_EVT3OP2_WIDTH ((uint32_t)0x00000006)
10999 /// EVT3OP3 field mask
11000 #define RIU_EVT3OP3_MASK ((uint32_t)0x000FC000)
11001 /// EVT3OP3 field LSB position
11002 #define RIU_EVT3OP3_LSB 14
11003 /// EVT3OP3 field width
11004 #define RIU_EVT3OP3_WIDTH ((uint32_t)0x00000006)
11005 /// EVT3PATHCOMB field bit
11006 #define RIU_EVT3PATHCOMB_BIT ((uint32_t)0x00002000)
11007 /// EVT3PATHCOMB field position
11008 #define RIU_EVT3PATHCOMB_POS 13
11009 /// EVT3OPCOMB field mask
11010 #define RIU_EVT3OPCOMB_MASK ((uint32_t)0x00001C00)
11011 /// EVT3OPCOMB field LSB position
11012 #define RIU_EVT3OPCOMB_LSB 10
11013 /// EVT3OPCOMB field width
11014 #define RIU_EVT3OPCOMB_WIDTH ((uint32_t)0x00000003)
11015 /// EVT3TGTADD field mask
11016 #define RIU_EVT3TGTADD_MASK ((uint32_t)0x000001FF)
11017 /// EVT3TGTADD field LSB position
11018 #define RIU_EVT3TGTADD_LSB 0
11019 /// EVT3TGTADD field width
11020 #define RIU_EVT3TGTADD_WIDTH ((uint32_t)0x00000009)
11021
11022 /// EVT3OP1 field reset value
11023 #define RIU_EVT3OP1_RST 0x1
11024 /// EVT3OP2 field reset value
11025 #define RIU_EVT3OP2_RST 0xF
11026 /// EVT3OP3 field reset value
11027 #define RIU_EVT3OP3_RST 0x3F
11028 /// EVT3PATHCOMB field reset value
11029 #define RIU_EVT3PATHCOMB_RST 0x0
11030 /// EVT3OPCOMB field reset value
11031 #define RIU_EVT3OPCOMB_RST 0x1
11032 /// EVT3TGTADD field reset value
11033 #define RIU_EVT3TGTADD_RST 0xB
11034
11035 /**
11036 * @brief Constructs a value for the RWNXAGCEVT3 register given values for its fields
11037 * and writes the value to the register.
11038 *
11039 * @param[in] evt3op1 - The value to use for the EVT3OP1 field.
11040 * @param[in] evt3op2 - The value to use for the EVT3OP2 field.
11041 * @param[in] evt3op3 - The value to use for the EVT3OP3 field.
11042 * @param[in] evt3pathcomb - The value to use for the EVT3PATHCOMB field.
11043 * @param[in] evt3opcomb - The value to use for the EVT3OPCOMB field.
11044 * @param[in] evt3tgtadd - The value to use for the EVT3TGTADD field.
11045 */
riu_rwnxagcevt3_pack(uint8_t evt3op1,uint8_t evt3op2,uint8_t evt3op3,uint8_t evt3pathcomb,uint8_t evt3opcomb,uint16_t evt3tgtadd)11046 __INLINE void riu_rwnxagcevt3_pack(uint8_t evt3op1, uint8_t evt3op2, uint8_t evt3op3, uint8_t evt3pathcomb, uint8_t evt3opcomb, uint16_t evt3tgtadd)
11047 {
11048 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT3_ADDR, ((uint32_t)evt3op1 << 26) | ((uint32_t)evt3op2 << 20) | ((uint32_t)evt3op3 << 14) | ((uint32_t)evt3pathcomb << 13) | ((uint32_t)evt3opcomb << 10) | ((uint32_t)evt3tgtadd << 0));
11049 }
11050
11051 /**
11052 * @brief Unpacks RWNXAGCEVT3's fields from current value of the RWNXAGCEVT3 register.
11053 *
11054 * Reads the RWNXAGCEVT3 register and populates all the _field variables with the corresponding
11055 * values from the register.
11056 *
11057 * @param[out] evt3op1 - Will be populated with the current value of this field from the register.
11058 * @param[out] evt3op2 - Will be populated with the current value of this field from the register.
11059 * @param[out] evt3op3 - Will be populated with the current value of this field from the register.
11060 * @param[out] evt3pathcomb - Will be populated with the current value of this field from the register.
11061 * @param[out] evt3opcomb - Will be populated with the current value of this field from the register.
11062 * @param[out] evt3tgtadd - Will be populated with the current value of this field from the register.
11063 */
riu_rwnxagcevt3_unpack(uint8_t * evt3op1,uint8_t * evt3op2,uint8_t * evt3op3,uint8_t * evt3pathcomb,uint8_t * evt3opcomb,uint16_t * evt3tgtadd)11064 __INLINE void riu_rwnxagcevt3_unpack(uint8_t* evt3op1, uint8_t* evt3op2, uint8_t* evt3op3, uint8_t* evt3pathcomb, uint8_t* evt3opcomb, uint16_t* evt3tgtadd)
11065 {
11066 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR);
11067
11068 *evt3op1 = (localVal & ((uint32_t)0xFC000000)) >> 26;
11069 *evt3op2 = (localVal & ((uint32_t)0x03F00000)) >> 20;
11070 *evt3op3 = (localVal & ((uint32_t)0x000FC000)) >> 14;
11071 *evt3pathcomb = (localVal & ((uint32_t)0x00002000)) >> 13;
11072 *evt3opcomb = (localVal & ((uint32_t)0x00001C00)) >> 10;
11073 *evt3tgtadd = (localVal & ((uint32_t)0x000001FF)) >> 0;
11074 }
11075
11076 /**
11077 * @brief Returns the current value of the EVT3OP1 field in the RWNXAGCEVT3 register.
11078 *
11079 * The RWNXAGCEVT3 register will be read and the EVT3OP1 field's value will be returned.
11080 *
11081 * @return The current value of the EVT3OP1 field in the RWNXAGCEVT3 register.
11082 */
riu_evt3op1_getf(void)11083 __INLINE uint8_t riu_evt3op1_getf(void)
11084 {
11085 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR);
11086 return ((localVal & ((uint32_t)0xFC000000)) >> 26);
11087 }
11088
11089 /**
11090 * @brief Sets the EVT3OP1 field of the RWNXAGCEVT3 register.
11091 *
11092 * The RWNXAGCEVT3 register will be read, modified to contain the new field value, and written.
11093 *
11094 * @param[in] evt3op1 - The value to set the field to.
11095 */
riu_evt3op1_setf(uint8_t evt3op1)11096 __INLINE void riu_evt3op1_setf(uint8_t evt3op1)
11097 {
11098 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT3_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR) & ~((uint32_t)0xFC000000)) | ((uint32_t)evt3op1 << 26));
11099 }
11100
11101 /**
11102 * @brief Returns the current value of the EVT3OP2 field in the RWNXAGCEVT3 register.
11103 *
11104 * The RWNXAGCEVT3 register will be read and the EVT3OP2 field's value will be returned.
11105 *
11106 * @return The current value of the EVT3OP2 field in the RWNXAGCEVT3 register.
11107 */
riu_evt3op2_getf(void)11108 __INLINE uint8_t riu_evt3op2_getf(void)
11109 {
11110 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR);
11111 return ((localVal & ((uint32_t)0x03F00000)) >> 20);
11112 }
11113
11114 /**
11115 * @brief Sets the EVT3OP2 field of the RWNXAGCEVT3 register.
11116 *
11117 * The RWNXAGCEVT3 register will be read, modified to contain the new field value, and written.
11118 *
11119 * @param[in] evt3op2 - The value to set the field to.
11120 */
riu_evt3op2_setf(uint8_t evt3op2)11121 __INLINE void riu_evt3op2_setf(uint8_t evt3op2)
11122 {
11123 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT3_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR) & ~((uint32_t)0x03F00000)) | ((uint32_t)evt3op2 << 20));
11124 }
11125
11126 /**
11127 * @brief Returns the current value of the EVT3OP3 field in the RWNXAGCEVT3 register.
11128 *
11129 * The RWNXAGCEVT3 register will be read and the EVT3OP3 field's value will be returned.
11130 *
11131 * @return The current value of the EVT3OP3 field in the RWNXAGCEVT3 register.
11132 */
riu_evt3op3_getf(void)11133 __INLINE uint8_t riu_evt3op3_getf(void)
11134 {
11135 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR);
11136 return ((localVal & ((uint32_t)0x000FC000)) >> 14);
11137 }
11138
11139 /**
11140 * @brief Sets the EVT3OP3 field of the RWNXAGCEVT3 register.
11141 *
11142 * The RWNXAGCEVT3 register will be read, modified to contain the new field value, and written.
11143 *
11144 * @param[in] evt3op3 - The value to set the field to.
11145 */
riu_evt3op3_setf(uint8_t evt3op3)11146 __INLINE void riu_evt3op3_setf(uint8_t evt3op3)
11147 {
11148 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT3_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR) & ~((uint32_t)0x000FC000)) | ((uint32_t)evt3op3 << 14));
11149 }
11150
11151 /**
11152 * @brief Returns the current value of the EVT3PATHCOMB field in the RWNXAGCEVT3 register.
11153 *
11154 * The RWNXAGCEVT3 register will be read and the EVT3PATHCOMB field's value will be returned.
11155 *
11156 * @return The current value of the EVT3PATHCOMB field in the RWNXAGCEVT3 register.
11157 */
riu_evt3pathcomb_getf(void)11158 __INLINE uint8_t riu_evt3pathcomb_getf(void)
11159 {
11160 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR);
11161 return ((localVal & ((uint32_t)0x00002000)) >> 13);
11162 }
11163
11164 /**
11165 * @brief Sets the EVT3PATHCOMB field of the RWNXAGCEVT3 register.
11166 *
11167 * The RWNXAGCEVT3 register will be read, modified to contain the new field value, and written.
11168 *
11169 * @param[in] evt3pathcomb - The value to set the field to.
11170 */
riu_evt3pathcomb_setf(uint8_t evt3pathcomb)11171 __INLINE void riu_evt3pathcomb_setf(uint8_t evt3pathcomb)
11172 {
11173 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT3_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR) & ~((uint32_t)0x00002000)) | ((uint32_t)evt3pathcomb << 13));
11174 }
11175
11176 /**
11177 * @brief Returns the current value of the EVT3OPCOMB field in the RWNXAGCEVT3 register.
11178 *
11179 * The RWNXAGCEVT3 register will be read and the EVT3OPCOMB field's value will be returned.
11180 *
11181 * @return The current value of the EVT3OPCOMB field in the RWNXAGCEVT3 register.
11182 */
riu_evt3opcomb_getf(void)11183 __INLINE uint8_t riu_evt3opcomb_getf(void)
11184 {
11185 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR);
11186 return ((localVal & ((uint32_t)0x00001C00)) >> 10);
11187 }
11188
11189 /**
11190 * @brief Sets the EVT3OPCOMB field of the RWNXAGCEVT3 register.
11191 *
11192 * The RWNXAGCEVT3 register will be read, modified to contain the new field value, and written.
11193 *
11194 * @param[in] evt3opcomb - The value to set the field to.
11195 */
riu_evt3opcomb_setf(uint8_t evt3opcomb)11196 __INLINE void riu_evt3opcomb_setf(uint8_t evt3opcomb)
11197 {
11198 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT3_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR) & ~((uint32_t)0x00001C00)) | ((uint32_t)evt3opcomb << 10));
11199 }
11200
11201 /**
11202 * @brief Returns the current value of the EVT3TGTADD field in the RWNXAGCEVT3 register.
11203 *
11204 * The RWNXAGCEVT3 register will be read and the EVT3TGTADD field's value will be returned.
11205 *
11206 * @return The current value of the EVT3TGTADD field in the RWNXAGCEVT3 register.
11207 */
riu_evt3tgtadd_getf(void)11208 __INLINE uint16_t riu_evt3tgtadd_getf(void)
11209 {
11210 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR);
11211 return ((localVal & ((uint32_t)0x000001FF)) >> 0);
11212 }
11213
11214 /**
11215 * @brief Sets the EVT3TGTADD field of the RWNXAGCEVT3 register.
11216 *
11217 * The RWNXAGCEVT3 register will be read, modified to contain the new field value, and written.
11218 *
11219 * @param[in] evt3tgtadd - The value to set the field to.
11220 */
riu_evt3tgtadd_setf(uint16_t evt3tgtadd)11221 __INLINE void riu_evt3tgtadd_setf(uint16_t evt3tgtadd)
11222 {
11223 PLATFORM_REG_WRITE(RIU_RWNXAGCEVT3_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCEVT3_ADDR) & ~((uint32_t)0x000001FF)) | ((uint32_t)evt3tgtadd << 0));
11224 }
11225
11226 /// @}
11227
11228 /**
11229 * @name RWNXAGCCNTL register definitions
11230 * <table>
11231 * <caption id="RWNXAGCCNTL_BF">RWNXAGCCNTL bitfields</caption>
11232 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
11233 * <tr><td>19 <td> AGCRAM_READY <td>R <td>R/W <td>0
11234 * <tr><td>18:17 <td> AGCROM_MODE_SEL <td>R <td>R/W <td>0x1
11235 * <tr><td>16 <td> HTSTFGAINEN <td>R <td>R/W <td>1
11236 * <tr><td>12 <td> AGCFSMRESET <td>R <td>R/W <td>0
11237 * <tr><td>11 <td> RADARDETEN <td>R <td>R/W <td>0
11238 * <tr><td>10 <td> RIFSDETEN <td>R <td>R/W <td>1
11239 * <tr><td>09 <td> DSSSONLY <td>R <td>R/W <td>0
11240 * <tr><td>08 <td> OFDMONLY <td>R <td>R/W <td>0
11241 * <tr><td>07:04 <td> GPSTATUS <td>R <td>R/W <td>0x0
11242 * <tr><td>01:00 <td> COMBPATHSEL <td>R <td>R/W <td>0x3
11243 * </table>
11244 *
11245 * @{
11246 */
11247
11248 /// Address of the RWNXAGCCNTL register
11249 #define RIU_RWNXAGCCNTL_ADDR 0x4033B390
11250 /// Offset of the RWNXAGCCNTL register from the base address
11251 #define RIU_RWNXAGCCNTL_OFFSET 0x00000390
11252 /// Index of the RWNXAGCCNTL register
11253 #define RIU_RWNXAGCCNTL_INDEX 0x000000E4
11254 /// Reset value of the RWNXAGCCNTL register
11255 #define RIU_RWNXAGCCNTL_RESET 0x00030403
11256
11257 /**
11258 * @brief Returns the current value of the RWNXAGCCNTL register.
11259 * The RWNXAGCCNTL register will be read and its value returned.
11260 * @return The current value of the RWNXAGCCNTL register.
11261 */
riu_rwnxagccntl_get(void)11262 __INLINE uint32_t riu_rwnxagccntl_get(void)
11263 {
11264 return PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR);
11265 }
11266
11267 /**
11268 * @brief Sets the RWNXAGCCNTL register to a value.
11269 * The RWNXAGCCNTL register will be written.
11270 * @param value - The value to write.
11271 */
riu_rwnxagccntl_set(uint32_t value)11272 __INLINE void riu_rwnxagccntl_set(uint32_t value)
11273 {
11274 PLATFORM_REG_WRITE(RIU_RWNXAGCCNTL_ADDR, value);
11275 }
11276
11277 // field definitions
11278 /// AGCRAM_READY field bit
11279 #define RIU_AGCRAM_READY_BIT ((uint32_t)0x00080000)
11280 /// AGCRAM_READY field position
11281 #define RIU_AGCRAM_READY_POS 19
11282 /// AGCROM_MODE_SEL field mask
11283 #define RIU_AGCROM_MODE_SEL_MASK ((uint32_t)0x00060000)
11284 /// AGCROM_MODE_SEL field LSB position
11285 #define RIU_AGCROM_MODE_SEL_LSB 17
11286 /// AGCROM_MODE_SEL field width
11287 #define RIU_AGCROM_MODE_SEL_WIDTH ((uint32_t)0x00000002)
11288 /// HTSTFGAINEN field bit
11289 #define RIU_HTSTFGAINEN_BIT ((uint32_t)0x00010000)
11290 /// HTSTFGAINEN field position
11291 #define RIU_HTSTFGAINEN_POS 16
11292 /// AGCFSMRESET field bit
11293 #define RIU_AGCFSMRESET_BIT ((uint32_t)0x00001000)
11294 /// AGCFSMRESET field position
11295 #define RIU_AGCFSMRESET_POS 12
11296 /// RADARDETEN field bit
11297 #define RIU_RADARDETEN_BIT ((uint32_t)0x00000800)
11298 /// RADARDETEN field position
11299 #define RIU_RADARDETEN_POS 11
11300 /// RIFSDETEN field bit
11301 #define RIU_RIFSDETEN_BIT ((uint32_t)0x00000400)
11302 /// RIFSDETEN field position
11303 #define RIU_RIFSDETEN_POS 10
11304 /// DSSSONLY field bit
11305 #define RIU_DSSSONLY_BIT ((uint32_t)0x00000200)
11306 /// DSSSONLY field position
11307 #define RIU_DSSSONLY_POS 9
11308 /// OFDMONLY field bit
11309 #define RIU_OFDMONLY_BIT ((uint32_t)0x00000100)
11310 /// OFDMONLY field position
11311 #define RIU_OFDMONLY_POS 8
11312 /// GPSTATUS field mask
11313 #define RIU_GPSTATUS_MASK ((uint32_t)0x000000F0)
11314 /// GPSTATUS field LSB position
11315 #define RIU_GPSTATUS_LSB 4
11316 /// GPSTATUS field width
11317 #define RIU_GPSTATUS_WIDTH ((uint32_t)0x00000004)
11318 /// COMBPATHSEL field mask
11319 #define RIU_COMBPATHSEL_MASK ((uint32_t)0x00000003)
11320 /// COMBPATHSEL field LSB position
11321 #define RIU_COMBPATHSEL_LSB 0
11322 /// COMBPATHSEL field width
11323 #define RIU_COMBPATHSEL_WIDTH ((uint32_t)0x00000002)
11324
11325 /// AGCRAM_READY field reset value
11326 #define RIU_AGCRAM_READY_RST 0x0
11327 /// AGCROM_MODE_SEL field reset value
11328 #define RIU_AGCROM_MODE_SEL_RST 0x1
11329 /// HTSTFGAINEN field reset value
11330 #define RIU_HTSTFGAINEN_RST 0x1
11331 /// AGCFSMRESET field reset value
11332 #define RIU_AGCFSMRESET_RST 0x0
11333 /// RADARDETEN field reset value
11334 #define RIU_RADARDETEN_RST 0x0
11335 /// RIFSDETEN field reset value
11336 #define RIU_RIFSDETEN_RST 0x1
11337 /// DSSSONLY field reset value
11338 #define RIU_DSSSONLY_RST 0x0
11339 /// OFDMONLY field reset value
11340 #define RIU_OFDMONLY_RST 0x0
11341 /// GPSTATUS field reset value
11342 #define RIU_GPSTATUS_RST 0x0
11343 /// COMBPATHSEL field reset value
11344 #define RIU_COMBPATHSEL_RST 0x3
11345
11346 /**
11347 * @brief Constructs a value for the RWNXAGCCNTL register given values for its fields
11348 * and writes the value to the register.
11349 *
11350 * @param[in] agcramready - The value to use for the AGCRAM_READY field.
11351 * @param[in] agcrommodesel - The value to use for the AGCROM_MODE_SEL field.
11352 * @param[in] htstfgainen - The value to use for the HTSTFGAINEN field.
11353 * @param[in] agcfsmreset - The value to use for the AGCFSMRESET field.
11354 * @param[in] radardeten - The value to use for the RADARDETEN field.
11355 * @param[in] rifsdeten - The value to use for the RIFSDETEN field.
11356 * @param[in] dsssonly - The value to use for the DSSSONLY field.
11357 * @param[in] ofdmonly - The value to use for the OFDMONLY field.
11358 * @param[in] gpstatus - The value to use for the GPSTATUS field.
11359 * @param[in] combpathsel - The value to use for the COMBPATHSEL field.
11360 */
riu_rwnxagccntl_pack(uint8_t agcramready,uint8_t agcrommodesel,uint8_t htstfgainen,uint8_t agcfsmreset,uint8_t radardeten,uint8_t rifsdeten,uint8_t dsssonly,uint8_t ofdmonly,uint8_t gpstatus,uint8_t combpathsel)11361 __INLINE void riu_rwnxagccntl_pack(uint8_t agcramready, uint8_t agcrommodesel, uint8_t htstfgainen, uint8_t agcfsmreset, uint8_t radardeten, uint8_t rifsdeten, uint8_t dsssonly, uint8_t ofdmonly, uint8_t gpstatus, uint8_t combpathsel)
11362 {
11363 PLATFORM_REG_WRITE(RIU_RWNXAGCCNTL_ADDR, ((uint32_t)agcramready << 19) | ((uint32_t)agcrommodesel << 17) | ((uint32_t)htstfgainen << 16) | ((uint32_t)agcfsmreset << 12) | ((uint32_t)radardeten << 11) | ((uint32_t)rifsdeten << 10) | ((uint32_t)dsssonly << 9) | ((uint32_t)ofdmonly << 8) | ((uint32_t)gpstatus << 4) | ((uint32_t)combpathsel << 0));
11364 }
11365
11366 /**
11367 * @brief Unpacks RWNXAGCCNTL's fields from current value of the RWNXAGCCNTL register.
11368 *
11369 * Reads the RWNXAGCCNTL register and populates all the _field variables with the corresponding
11370 * values from the register.
11371 *
11372 * @param[out] agcramready - Will be populated with the current value of this field from the register.
11373 * @param[out] agcrommodesel - Will be populated with the current value of this field from the register.
11374 * @param[out] htstfgainen - Will be populated with the current value of this field from the register.
11375 * @param[out] agcfsmreset - Will be populated with the current value of this field from the register.
11376 * @param[out] radardeten - Will be populated with the current value of this field from the register.
11377 * @param[out] rifsdeten - Will be populated with the current value of this field from the register.
11378 * @param[out] dsssonly - Will be populated with the current value of this field from the register.
11379 * @param[out] ofdmonly - Will be populated with the current value of this field from the register.
11380 * @param[out] gpstatus - Will be populated with the current value of this field from the register.
11381 * @param[out] combpathsel - Will be populated with the current value of this field from the register.
11382 */
riu_rwnxagccntl_unpack(uint8_t * agcramready,uint8_t * agcrommodesel,uint8_t * htstfgainen,uint8_t * agcfsmreset,uint8_t * radardeten,uint8_t * rifsdeten,uint8_t * dsssonly,uint8_t * ofdmonly,uint8_t * gpstatus,uint8_t * combpathsel)11383 __INLINE void riu_rwnxagccntl_unpack(uint8_t* agcramready, uint8_t* agcrommodesel, uint8_t* htstfgainen, uint8_t* agcfsmreset, uint8_t* radardeten, uint8_t* rifsdeten, uint8_t* dsssonly, uint8_t* ofdmonly, uint8_t* gpstatus, uint8_t* combpathsel)
11384 {
11385 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR);
11386
11387 *agcramready = (localVal & ((uint32_t)0x00080000)) >> 19;
11388 *agcrommodesel = (localVal & ((uint32_t)0x00060000)) >> 17;
11389 *htstfgainen = (localVal & ((uint32_t)0x00010000)) >> 16;
11390 *agcfsmreset = (localVal & ((uint32_t)0x00001000)) >> 12;
11391 *radardeten = (localVal & ((uint32_t)0x00000800)) >> 11;
11392 *rifsdeten = (localVal & ((uint32_t)0x00000400)) >> 10;
11393 *dsssonly = (localVal & ((uint32_t)0x00000200)) >> 9;
11394 *ofdmonly = (localVal & ((uint32_t)0x00000100)) >> 8;
11395 *gpstatus = (localVal & ((uint32_t)0x000000F0)) >> 4;
11396 *combpathsel = (localVal & ((uint32_t)0x00000003)) >> 0;
11397 }
11398
11399 /**
11400 * @brief Returns the current value of the AGCRAM_READY field in the RWNXAGCCNTL register.
11401 *
11402 * The RWNXAGCCNTL register will be read and the AGCRAM_READY field's value will be returned.
11403 *
11404 * @return The current value of the AGCRAM_READY field in the RWNXAGCCNTL register.
11405 */
riu_agcram_ready_getf(void)11406 __INLINE uint8_t riu_agcram_ready_getf(void)
11407 {
11408 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR);
11409 return ((localVal & ((uint32_t)0x00080000)) >> 19);
11410 }
11411
11412 /**
11413 * @brief Sets the AGCRAM_READY field of the RWNXAGCCNTL register.
11414 *
11415 * The RWNXAGCCNTL register will be read, modified to contain the new field value, and written.
11416 *
11417 * @param[in] agcramready - The value to set the field to.
11418 */
riu_agcram_ready_setf(uint8_t agcramready)11419 __INLINE void riu_agcram_ready_setf(uint8_t agcramready)
11420 {
11421 PLATFORM_REG_WRITE(RIU_RWNXAGCCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR) & ~((uint32_t)0x00080000)) | ((uint32_t)agcramready << 19));
11422 }
11423
11424 /**
11425 * @brief Returns the current value of the AGCROM_MODE_SEL field in the RWNXAGCCNTL register.
11426 *
11427 * The RWNXAGCCNTL register will be read and the AGCROM_MODE_SEL field's value will be returned.
11428 *
11429 * @return The current value of the AGCROM_MODE_SEL field in the RWNXAGCCNTL register.
11430 */
riu_agcrom_mode_sel_getf(void)11431 __INLINE uint8_t riu_agcrom_mode_sel_getf(void)
11432 {
11433 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR);
11434 return ((localVal & ((uint32_t)0x00060000)) >> 17);
11435 }
11436
11437 /**
11438 * @brief Sets the AGCROM_MODE_SEL field of the RWNXAGCCNTL register.
11439 *
11440 * The RWNXAGCCNTL register will be read, modified to contain the new field value, and written.
11441 *
11442 * @param[in] agcrommodesel - The value to set the field to.
11443 */
riu_agcrom_mode_sel_setf(uint8_t agcrommodesel)11444 __INLINE void riu_agcrom_mode_sel_setf(uint8_t agcrommodesel)
11445 {
11446 PLATFORM_REG_WRITE(RIU_RWNXAGCCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR) & ~((uint32_t)0x00060000)) | ((uint32_t)agcrommodesel << 17));
11447 }
11448
11449 /**
11450 * @brief Returns the current value of the HTSTFGAINEN field in the RWNXAGCCNTL register.
11451 *
11452 * The RWNXAGCCNTL register will be read and the HTSTFGAINEN field's value will be returned.
11453 *
11454 * @return The current value of the HTSTFGAINEN field in the RWNXAGCCNTL register.
11455 */
riu_htstfgainen_getf(void)11456 __INLINE uint8_t riu_htstfgainen_getf(void)
11457 {
11458 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR);
11459 return ((localVal & ((uint32_t)0x00010000)) >> 16);
11460 }
11461
11462 /**
11463 * @brief Sets the HTSTFGAINEN field of the RWNXAGCCNTL register.
11464 *
11465 * The RWNXAGCCNTL register will be read, modified to contain the new field value, and written.
11466 *
11467 * @param[in] htstfgainen - The value to set the field to.
11468 */
riu_htstfgainen_setf(uint8_t htstfgainen)11469 __INLINE void riu_htstfgainen_setf(uint8_t htstfgainen)
11470 {
11471 PLATFORM_REG_WRITE(RIU_RWNXAGCCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR) & ~((uint32_t)0x00010000)) | ((uint32_t)htstfgainen << 16));
11472 }
11473
11474 /**
11475 * @brief Returns the current value of the AGCFSMRESET field in the RWNXAGCCNTL register.
11476 *
11477 * The RWNXAGCCNTL register will be read and the AGCFSMRESET field's value will be returned.
11478 *
11479 * @return The current value of the AGCFSMRESET field in the RWNXAGCCNTL register.
11480 */
riu_agcfsmreset_getf(void)11481 __INLINE uint8_t riu_agcfsmreset_getf(void)
11482 {
11483 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR);
11484 return ((localVal & ((uint32_t)0x00001000)) >> 12);
11485 }
11486
11487 /**
11488 * @brief Sets the AGCFSMRESET field of the RWNXAGCCNTL register.
11489 *
11490 * The RWNXAGCCNTL register will be read, modified to contain the new field value, and written.
11491 *
11492 * @param[in] agcfsmreset - The value to set the field to.
11493 */
riu_agcfsmreset_setf(uint8_t agcfsmreset)11494 __INLINE void riu_agcfsmreset_setf(uint8_t agcfsmreset)
11495 {
11496 PLATFORM_REG_WRITE(RIU_RWNXAGCCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR) & ~((uint32_t)0x00001000)) | ((uint32_t)agcfsmreset << 12));
11497 }
11498
11499 /**
11500 * @brief Returns the current value of the RADARDETEN field in the RWNXAGCCNTL register.
11501 *
11502 * The RWNXAGCCNTL register will be read and the RADARDETEN field's value will be returned.
11503 *
11504 * @return The current value of the RADARDETEN field in the RWNXAGCCNTL register.
11505 */
riu_radardeten_getf(void)11506 __INLINE uint8_t riu_radardeten_getf(void)
11507 {
11508 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR);
11509 return ((localVal & ((uint32_t)0x00000800)) >> 11);
11510 }
11511
11512 /**
11513 * @brief Sets the RADARDETEN field of the RWNXAGCCNTL register.
11514 *
11515 * The RWNXAGCCNTL register will be read, modified to contain the new field value, and written.
11516 *
11517 * @param[in] radardeten - The value to set the field to.
11518 */
riu_radardeten_setf(uint8_t radardeten)11519 __INLINE void riu_radardeten_setf(uint8_t radardeten)
11520 {
11521 PLATFORM_REG_WRITE(RIU_RWNXAGCCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR) & ~((uint32_t)0x00000800)) | ((uint32_t)radardeten << 11));
11522 }
11523
11524 /**
11525 * @brief Returns the current value of the RIFSDETEN field in the RWNXAGCCNTL register.
11526 *
11527 * The RWNXAGCCNTL register will be read and the RIFSDETEN field's value will be returned.
11528 *
11529 * @return The current value of the RIFSDETEN field in the RWNXAGCCNTL register.
11530 */
riu_rifsdeten_getf(void)11531 __INLINE uint8_t riu_rifsdeten_getf(void)
11532 {
11533 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR);
11534 return ((localVal & ((uint32_t)0x00000400)) >> 10);
11535 }
11536
11537 /**
11538 * @brief Sets the RIFSDETEN field of the RWNXAGCCNTL register.
11539 *
11540 * The RWNXAGCCNTL register will be read, modified to contain the new field value, and written.
11541 *
11542 * @param[in] rifsdeten - The value to set the field to.
11543 */
riu_rifsdeten_setf(uint8_t rifsdeten)11544 __INLINE void riu_rifsdeten_setf(uint8_t rifsdeten)
11545 {
11546 PLATFORM_REG_WRITE(RIU_RWNXAGCCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR) & ~((uint32_t)0x00000400)) | ((uint32_t)rifsdeten << 10));
11547 }
11548
11549 /**
11550 * @brief Returns the current value of the DSSSONLY field in the RWNXAGCCNTL register.
11551 *
11552 * The RWNXAGCCNTL register will be read and the DSSSONLY field's value will be returned.
11553 *
11554 * @return The current value of the DSSSONLY field in the RWNXAGCCNTL register.
11555 */
riu_dsssonly_getf(void)11556 __INLINE uint8_t riu_dsssonly_getf(void)
11557 {
11558 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR);
11559 return ((localVal & ((uint32_t)0x00000200)) >> 9);
11560 }
11561
11562 /**
11563 * @brief Sets the DSSSONLY field of the RWNXAGCCNTL register.
11564 *
11565 * The RWNXAGCCNTL register will be read, modified to contain the new field value, and written.
11566 *
11567 * @param[in] dsssonly - The value to set the field to.
11568 */
riu_dsssonly_setf(uint8_t dsssonly)11569 __INLINE void riu_dsssonly_setf(uint8_t dsssonly)
11570 {
11571 PLATFORM_REG_WRITE(RIU_RWNXAGCCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR) & ~((uint32_t)0x00000200)) | ((uint32_t)dsssonly << 9));
11572 }
11573
11574 /**
11575 * @brief Returns the current value of the OFDMONLY field in the RWNXAGCCNTL register.
11576 *
11577 * The RWNXAGCCNTL register will be read and the OFDMONLY field's value will be returned.
11578 *
11579 * @return The current value of the OFDMONLY field in the RWNXAGCCNTL register.
11580 */
riu_ofdmonly_getf(void)11581 __INLINE uint8_t riu_ofdmonly_getf(void)
11582 {
11583 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR);
11584 return ((localVal & ((uint32_t)0x00000100)) >> 8);
11585 }
11586
11587 /**
11588 * @brief Sets the OFDMONLY field of the RWNXAGCCNTL register.
11589 *
11590 * The RWNXAGCCNTL register will be read, modified to contain the new field value, and written.
11591 *
11592 * @param[in] ofdmonly - The value to set the field to.
11593 */
riu_ofdmonly_setf(uint8_t ofdmonly)11594 __INLINE void riu_ofdmonly_setf(uint8_t ofdmonly)
11595 {
11596 PLATFORM_REG_WRITE(RIU_RWNXAGCCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR) & ~((uint32_t)0x00000100)) | ((uint32_t)ofdmonly << 8));
11597 }
11598
11599 /**
11600 * @brief Returns the current value of the GPSTATUS field in the RWNXAGCCNTL register.
11601 *
11602 * The RWNXAGCCNTL register will be read and the GPSTATUS field's value will be returned.
11603 *
11604 * @return The current value of the GPSTATUS field in the RWNXAGCCNTL register.
11605 */
riu_gpstatus_getf(void)11606 __INLINE uint8_t riu_gpstatus_getf(void)
11607 {
11608 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR);
11609 return ((localVal & ((uint32_t)0x000000F0)) >> 4);
11610 }
11611
11612 /**
11613 * @brief Sets the GPSTATUS field of the RWNXAGCCNTL register.
11614 *
11615 * The RWNXAGCCNTL register will be read, modified to contain the new field value, and written.
11616 *
11617 * @param[in] gpstatus - The value to set the field to.
11618 */
riu_gpstatus_setf(uint8_t gpstatus)11619 __INLINE void riu_gpstatus_setf(uint8_t gpstatus)
11620 {
11621 PLATFORM_REG_WRITE(RIU_RWNXAGCCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR) & ~((uint32_t)0x000000F0)) | ((uint32_t)gpstatus << 4));
11622 }
11623
11624 /**
11625 * @brief Returns the current value of the COMBPATHSEL field in the RWNXAGCCNTL register.
11626 *
11627 * The RWNXAGCCNTL register will be read and the COMBPATHSEL field's value will be returned.
11628 *
11629 * @return The current value of the COMBPATHSEL field in the RWNXAGCCNTL register.
11630 */
riu_combpathsel_getf(void)11631 __INLINE uint8_t riu_combpathsel_getf(void)
11632 {
11633 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR);
11634 return ((localVal & ((uint32_t)0x00000003)) >> 0);
11635 }
11636
11637 /**
11638 * @brief Sets the COMBPATHSEL field of the RWNXAGCCNTL register.
11639 *
11640 * The RWNXAGCCNTL register will be read, modified to contain the new field value, and written.
11641 *
11642 * @param[in] combpathsel - The value to set the field to.
11643 */
riu_combpathsel_setf(uint8_t combpathsel)11644 __INLINE void riu_combpathsel_setf(uint8_t combpathsel)
11645 {
11646 PLATFORM_REG_WRITE(RIU_RWNXAGCCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCNTL_ADDR) & ~((uint32_t)0x00000003)) | ((uint32_t)combpathsel << 0));
11647 }
11648
11649 /// @}
11650
11651 /**
11652 * @name RWNXAGCDSP0 register definitions
11653 * <table>
11654 * <caption id="RWNXAGCDSP0_BF">RWNXAGCDSP0 bitfields</caption>
11655 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
11656 * <tr><td>27:24 <td> NBITADC <td>R <td>R/W <td>0xC
11657 * <tr><td>23:16 <td> VPEAKADCQDBV <td>R <td>R/W <td>0xE8
11658 * <tr><td>15:08 <td> ADCPOWMINDBV <td>R <td>R/W <td>0xB5
11659 * <tr><td>07:00 <td> ADCPOWBIASQDBV <td>R <td>R/W <td>0x0
11660 * </table>
11661 *
11662 * @{
11663 */
11664
11665 /// Address of the RWNXAGCDSP0 register
11666 #define RIU_RWNXAGCDSP0_ADDR 0x4033B394
11667 /// Offset of the RWNXAGCDSP0 register from the base address
11668 #define RIU_RWNXAGCDSP0_OFFSET 0x00000394
11669 /// Index of the RWNXAGCDSP0 register
11670 #define RIU_RWNXAGCDSP0_INDEX 0x000000E5
11671 /// Reset value of the RWNXAGCDSP0 register
11672 #define RIU_RWNXAGCDSP0_RESET 0x0CE8B500
11673
11674 /**
11675 * @brief Returns the current value of the RWNXAGCDSP0 register.
11676 * The RWNXAGCDSP0 register will be read and its value returned.
11677 * @return The current value of the RWNXAGCDSP0 register.
11678 */
riu_rwnxagcdsp0_get(void)11679 __INLINE uint32_t riu_rwnxagcdsp0_get(void)
11680 {
11681 return PLATFORM_REG_READ(RIU_RWNXAGCDSP0_ADDR);
11682 }
11683
11684 /**
11685 * @brief Sets the RWNXAGCDSP0 register to a value.
11686 * The RWNXAGCDSP0 register will be written.
11687 * @param value - The value to write.
11688 */
riu_rwnxagcdsp0_set(uint32_t value)11689 __INLINE void riu_rwnxagcdsp0_set(uint32_t value)
11690 {
11691 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP0_ADDR, value);
11692 }
11693
11694 // field definitions
11695 /// NBITADC field mask
11696 #define RIU_NBITADC_MASK ((uint32_t)0x0F000000)
11697 /// NBITADC field LSB position
11698 #define RIU_NBITADC_LSB 24
11699 /// NBITADC field width
11700 #define RIU_NBITADC_WIDTH ((uint32_t)0x00000004)
11701 /// VPEAKADCQDBV field mask
11702 #define RIU_VPEAKADCQDBV_MASK ((uint32_t)0x00FF0000)
11703 /// VPEAKADCQDBV field LSB position
11704 #define RIU_VPEAKADCQDBV_LSB 16
11705 /// VPEAKADCQDBV field width
11706 #define RIU_VPEAKADCQDBV_WIDTH ((uint32_t)0x00000008)
11707 /// ADCPOWMINDBV field mask
11708 #define RIU_ADCPOWMINDBV_MASK ((uint32_t)0x0000FF00)
11709 /// ADCPOWMINDBV field LSB position
11710 #define RIU_ADCPOWMINDBV_LSB 8
11711 /// ADCPOWMINDBV field width
11712 #define RIU_ADCPOWMINDBV_WIDTH ((uint32_t)0x00000008)
11713 /// ADCPOWBIASQDBV field mask
11714 #define RIU_ADCPOWBIASQDBV_MASK ((uint32_t)0x000000FF)
11715 /// ADCPOWBIASQDBV field LSB position
11716 #define RIU_ADCPOWBIASQDBV_LSB 0
11717 /// ADCPOWBIASQDBV field width
11718 #define RIU_ADCPOWBIASQDBV_WIDTH ((uint32_t)0x00000008)
11719
11720 /// NBITADC field reset value
11721 #define RIU_NBITADC_RST 0xC
11722 /// VPEAKADCQDBV field reset value
11723 #define RIU_VPEAKADCQDBV_RST 0xE8
11724 /// ADCPOWMINDBV field reset value
11725 #define RIU_ADCPOWMINDBV_RST 0xB5
11726 /// ADCPOWBIASQDBV field reset value
11727 #define RIU_ADCPOWBIASQDBV_RST 0x0
11728
11729 /**
11730 * @brief Constructs a value for the RWNXAGCDSP0 register given values for its fields
11731 * and writes the value to the register.
11732 *
11733 * @param[in] nbitadc - The value to use for the NBITADC field.
11734 * @param[in] vpeakadcqdbv - The value to use for the VPEAKADCQDBV field.
11735 * @param[in] adcpowmindbv - The value to use for the ADCPOWMINDBV field.
11736 * @param[in] adcpowbiasqdbv - The value to use for the ADCPOWBIASQDBV field.
11737 */
riu_rwnxagcdsp0_pack(uint8_t nbitadc,uint8_t vpeakadcqdbv,uint8_t adcpowmindbv,uint8_t adcpowbiasqdbv)11738 __INLINE void riu_rwnxagcdsp0_pack(uint8_t nbitadc, uint8_t vpeakadcqdbv, uint8_t adcpowmindbv, uint8_t adcpowbiasqdbv)
11739 {
11740 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP0_ADDR, ((uint32_t)nbitadc << 24) | ((uint32_t)vpeakadcqdbv << 16) | ((uint32_t)adcpowmindbv << 8) | ((uint32_t)adcpowbiasqdbv << 0));
11741 }
11742
11743 /**
11744 * @brief Unpacks RWNXAGCDSP0's fields from current value of the RWNXAGCDSP0 register.
11745 *
11746 * Reads the RWNXAGCDSP0 register and populates all the _field variables with the corresponding
11747 * values from the register.
11748 *
11749 * @param[out] nbitadc - Will be populated with the current value of this field from the register.
11750 * @param[out] vpeakadcqdbv - Will be populated with the current value of this field from the register.
11751 * @param[out] adcpowmindbv - Will be populated with the current value of this field from the register.
11752 * @param[out] adcpowbiasqdbv - Will be populated with the current value of this field from the register.
11753 */
riu_rwnxagcdsp0_unpack(uint8_t * nbitadc,uint8_t * vpeakadcqdbv,uint8_t * adcpowmindbv,uint8_t * adcpowbiasqdbv)11754 __INLINE void riu_rwnxagcdsp0_unpack(uint8_t* nbitadc, uint8_t* vpeakadcqdbv, uint8_t* adcpowmindbv, uint8_t* adcpowbiasqdbv)
11755 {
11756 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP0_ADDR);
11757
11758 *nbitadc = (localVal & ((uint32_t)0x0F000000)) >> 24;
11759 *vpeakadcqdbv = (localVal & ((uint32_t)0x00FF0000)) >> 16;
11760 *adcpowmindbv = (localVal & ((uint32_t)0x0000FF00)) >> 8;
11761 *adcpowbiasqdbv = (localVal & ((uint32_t)0x000000FF)) >> 0;
11762 }
11763
11764 /**
11765 * @brief Returns the current value of the NBITADC field in the RWNXAGCDSP0 register.
11766 *
11767 * The RWNXAGCDSP0 register will be read and the NBITADC field's value will be returned.
11768 *
11769 * @return The current value of the NBITADC field in the RWNXAGCDSP0 register.
11770 */
riu_nbitadc_getf(void)11771 __INLINE uint8_t riu_nbitadc_getf(void)
11772 {
11773 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP0_ADDR);
11774 return ((localVal & ((uint32_t)0x0F000000)) >> 24);
11775 }
11776
11777 /**
11778 * @brief Sets the NBITADC field of the RWNXAGCDSP0 register.
11779 *
11780 * The RWNXAGCDSP0 register will be read, modified to contain the new field value, and written.
11781 *
11782 * @param[in] nbitadc - The value to set the field to.
11783 */
riu_nbitadc_setf(uint8_t nbitadc)11784 __INLINE void riu_nbitadc_setf(uint8_t nbitadc)
11785 {
11786 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP0_ADDR) & ~((uint32_t)0x0F000000)) | ((uint32_t)nbitadc << 24));
11787 }
11788
11789 /**
11790 * @brief Returns the current value of the VPEAKADCQDBV field in the RWNXAGCDSP0 register.
11791 *
11792 * The RWNXAGCDSP0 register will be read and the VPEAKADCQDBV field's value will be returned.
11793 *
11794 * @return The current value of the VPEAKADCQDBV field in the RWNXAGCDSP0 register.
11795 */
riu_vpeakadcqdbv_getf(void)11796 __INLINE uint8_t riu_vpeakadcqdbv_getf(void)
11797 {
11798 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP0_ADDR);
11799 return ((localVal & ((uint32_t)0x00FF0000)) >> 16);
11800 }
11801
11802 /**
11803 * @brief Sets the VPEAKADCQDBV field of the RWNXAGCDSP0 register.
11804 *
11805 * The RWNXAGCDSP0 register will be read, modified to contain the new field value, and written.
11806 *
11807 * @param[in] vpeakadcqdbv - The value to set the field to.
11808 */
riu_vpeakadcqdbv_setf(uint8_t vpeakadcqdbv)11809 __INLINE void riu_vpeakadcqdbv_setf(uint8_t vpeakadcqdbv)
11810 {
11811 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP0_ADDR) & ~((uint32_t)0x00FF0000)) | ((uint32_t)vpeakadcqdbv << 16));
11812 }
11813
11814 /**
11815 * @brief Returns the current value of the ADCPOWMINDBV field in the RWNXAGCDSP0 register.
11816 *
11817 * The RWNXAGCDSP0 register will be read and the ADCPOWMINDBV field's value will be returned.
11818 *
11819 * @return The current value of the ADCPOWMINDBV field in the RWNXAGCDSP0 register.
11820 */
riu_adcpowmindbv_getf(void)11821 __INLINE uint8_t riu_adcpowmindbv_getf(void)
11822 {
11823 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP0_ADDR);
11824 return ((localVal & ((uint32_t)0x0000FF00)) >> 8);
11825 }
11826
11827 /**
11828 * @brief Sets the ADCPOWMINDBV field of the RWNXAGCDSP0 register.
11829 *
11830 * The RWNXAGCDSP0 register will be read, modified to contain the new field value, and written.
11831 *
11832 * @param[in] adcpowmindbv - The value to set the field to.
11833 */
riu_adcpowmindbv_setf(uint8_t adcpowmindbv)11834 __INLINE void riu_adcpowmindbv_setf(uint8_t adcpowmindbv)
11835 {
11836 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP0_ADDR) & ~((uint32_t)0x0000FF00)) | ((uint32_t)adcpowmindbv << 8));
11837 }
11838
11839 /**
11840 * @brief Returns the current value of the ADCPOWBIASQDBV field in the RWNXAGCDSP0 register.
11841 *
11842 * The RWNXAGCDSP0 register will be read and the ADCPOWBIASQDBV field's value will be returned.
11843 *
11844 * @return The current value of the ADCPOWBIASQDBV field in the RWNXAGCDSP0 register.
11845 */
riu_adcpowbiasqdbv_getf(void)11846 __INLINE uint8_t riu_adcpowbiasqdbv_getf(void)
11847 {
11848 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP0_ADDR);
11849 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
11850 }
11851
11852 /**
11853 * @brief Sets the ADCPOWBIASQDBV field of the RWNXAGCDSP0 register.
11854 *
11855 * The RWNXAGCDSP0 register will be read, modified to contain the new field value, and written.
11856 *
11857 * @param[in] adcpowbiasqdbv - The value to set the field to.
11858 */
riu_adcpowbiasqdbv_setf(uint8_t adcpowbiasqdbv)11859 __INLINE void riu_adcpowbiasqdbv_setf(uint8_t adcpowbiasqdbv)
11860 {
11861 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP0_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)adcpowbiasqdbv << 0));
11862 }
11863
11864 /// @}
11865
11866 /**
11867 * @name RWNXAGCDSP1 register definitions
11868 * <table>
11869 * <caption id="RWNXAGCDSP1_BF">RWNXAGCDSP1 bitfields</caption>
11870 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
11871 * <tr><td>15:08 <td> ADCPOWMINDBM <td>R <td>R/W <td>0x9C
11872 * <tr><td>07:00 <td> ADCPOWBIASQDBM <td>R <td>R/W <td>0x0
11873 * </table>
11874 *
11875 * @{
11876 */
11877
11878 /// Address of the RWNXAGCDSP1 register
11879 #define RIU_RWNXAGCDSP1_ADDR 0x4033B398
11880 /// Offset of the RWNXAGCDSP1 register from the base address
11881 #define RIU_RWNXAGCDSP1_OFFSET 0x00000398
11882 /// Index of the RWNXAGCDSP1 register
11883 #define RIU_RWNXAGCDSP1_INDEX 0x000000E6
11884 /// Reset value of the RWNXAGCDSP1 register
11885 #define RIU_RWNXAGCDSP1_RESET 0x00009C00
11886
11887 /**
11888 * @brief Returns the current value of the RWNXAGCDSP1 register.
11889 * The RWNXAGCDSP1 register will be read and its value returned.
11890 * @return The current value of the RWNXAGCDSP1 register.
11891 */
riu_rwnxagcdsp1_get(void)11892 __INLINE uint32_t riu_rwnxagcdsp1_get(void)
11893 {
11894 return PLATFORM_REG_READ(RIU_RWNXAGCDSP1_ADDR);
11895 }
11896
11897 /**
11898 * @brief Sets the RWNXAGCDSP1 register to a value.
11899 * The RWNXAGCDSP1 register will be written.
11900 * @param value - The value to write.
11901 */
riu_rwnxagcdsp1_set(uint32_t value)11902 __INLINE void riu_rwnxagcdsp1_set(uint32_t value)
11903 {
11904 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP1_ADDR, value);
11905 }
11906
11907 // field definitions
11908 /// ADCPOWMINDBM field mask
11909 #define RIU_ADCPOWMINDBM_MASK ((uint32_t)0x0000FF00)
11910 /// ADCPOWMINDBM field LSB position
11911 #define RIU_ADCPOWMINDBM_LSB 8
11912 /// ADCPOWMINDBM field width
11913 #define RIU_ADCPOWMINDBM_WIDTH ((uint32_t)0x00000008)
11914 /// ADCPOWBIASQDBM field mask
11915 #define RIU_ADCPOWBIASQDBM_MASK ((uint32_t)0x000000FF)
11916 /// ADCPOWBIASQDBM field LSB position
11917 #define RIU_ADCPOWBIASQDBM_LSB 0
11918 /// ADCPOWBIASQDBM field width
11919 #define RIU_ADCPOWBIASQDBM_WIDTH ((uint32_t)0x00000008)
11920
11921 /// ADCPOWMINDBM field reset value
11922 #define RIU_ADCPOWMINDBM_RST 0x9C
11923 /// ADCPOWBIASQDBM field reset value
11924 #define RIU_ADCPOWBIASQDBM_RST 0x0
11925
11926 /**
11927 * @brief Constructs a value for the RWNXAGCDSP1 register given values for its fields
11928 * and writes the value to the register.
11929 *
11930 * @param[in] adcpowmindbm - The value to use for the ADCPOWMINDBM field.
11931 * @param[in] adcpowbiasqdbm - The value to use for the ADCPOWBIASQDBM field.
11932 */
riu_rwnxagcdsp1_pack(uint8_t adcpowmindbm,uint8_t adcpowbiasqdbm)11933 __INLINE void riu_rwnxagcdsp1_pack(uint8_t adcpowmindbm, uint8_t adcpowbiasqdbm)
11934 {
11935 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP1_ADDR, ((uint32_t)adcpowmindbm << 8) | ((uint32_t)adcpowbiasqdbm << 0));
11936 }
11937
11938 /**
11939 * @brief Unpacks RWNXAGCDSP1's fields from current value of the RWNXAGCDSP1 register.
11940 *
11941 * Reads the RWNXAGCDSP1 register and populates all the _field variables with the corresponding
11942 * values from the register.
11943 *
11944 * @param[out] adcpowmindbm - Will be populated with the current value of this field from the register.
11945 * @param[out] adcpowbiasqdbm - Will be populated with the current value of this field from the register.
11946 */
riu_rwnxagcdsp1_unpack(uint8_t * adcpowmindbm,uint8_t * adcpowbiasqdbm)11947 __INLINE void riu_rwnxagcdsp1_unpack(uint8_t* adcpowmindbm, uint8_t* adcpowbiasqdbm)
11948 {
11949 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP1_ADDR);
11950
11951 *adcpowmindbm = (localVal & ((uint32_t)0x0000FF00)) >> 8;
11952 *adcpowbiasqdbm = (localVal & ((uint32_t)0x000000FF)) >> 0;
11953 }
11954
11955 /**
11956 * @brief Returns the current value of the ADCPOWMINDBM field in the RWNXAGCDSP1 register.
11957 *
11958 * The RWNXAGCDSP1 register will be read and the ADCPOWMINDBM field's value will be returned.
11959 *
11960 * @return The current value of the ADCPOWMINDBM field in the RWNXAGCDSP1 register.
11961 */
riu_adcpowmindbm_getf(void)11962 __INLINE uint8_t riu_adcpowmindbm_getf(void)
11963 {
11964 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP1_ADDR);
11965 return ((localVal & ((uint32_t)0x0000FF00)) >> 8);
11966 }
11967
11968 /**
11969 * @brief Sets the ADCPOWMINDBM field of the RWNXAGCDSP1 register.
11970 *
11971 * The RWNXAGCDSP1 register will be read, modified to contain the new field value, and written.
11972 *
11973 * @param[in] adcpowmindbm - The value to set the field to.
11974 */
riu_adcpowmindbm_setf(uint8_t adcpowmindbm)11975 __INLINE void riu_adcpowmindbm_setf(uint8_t adcpowmindbm)
11976 {
11977 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP1_ADDR) & ~((uint32_t)0x0000FF00)) | ((uint32_t)adcpowmindbm << 8));
11978 }
11979
11980 /**
11981 * @brief Returns the current value of the ADCPOWBIASQDBM field in the RWNXAGCDSP1 register.
11982 *
11983 * The RWNXAGCDSP1 register will be read and the ADCPOWBIASQDBM field's value will be returned.
11984 *
11985 * @return The current value of the ADCPOWBIASQDBM field in the RWNXAGCDSP1 register.
11986 */
riu_adcpowbiasqdbm_getf(void)11987 __INLINE uint8_t riu_adcpowbiasqdbm_getf(void)
11988 {
11989 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP1_ADDR);
11990 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
11991 }
11992
11993 /**
11994 * @brief Sets the ADCPOWBIASQDBM field of the RWNXAGCDSP1 register.
11995 *
11996 * The RWNXAGCDSP1 register will be read, modified to contain the new field value, and written.
11997 *
11998 * @param[in] adcpowbiasqdbm - The value to set the field to.
11999 */
riu_adcpowbiasqdbm_setf(uint8_t adcpowbiasqdbm)12000 __INLINE void riu_adcpowbiasqdbm_setf(uint8_t adcpowbiasqdbm)
12001 {
12002 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP1_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)adcpowbiasqdbm << 0));
12003 }
12004
12005 /// @}
12006
12007 /**
12008 * @name RWNXAGCDSP2 register definitions
12009 * <table>
12010 * <caption id="RWNXAGCDSP2_BF">RWNXAGCDSP2 bitfields</caption>
12011 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
12012 * <tr><td>23:16 <td> INBDPOW40SBIASQDB <td>R <td>R/W <td>0x0
12013 * <tr><td>15:08 <td> INBDPOW20SBIASQDB <td>R <td>R/W <td>0x0
12014 * <tr><td>07:00 <td> INBDPOW20PBIASQDB <td>R <td>R/W <td>0x0
12015 * </table>
12016 *
12017 * @{
12018 */
12019
12020 /// Address of the RWNXAGCDSP2 register
12021 #define RIU_RWNXAGCDSP2_ADDR 0x4033B39C
12022 /// Offset of the RWNXAGCDSP2 register from the base address
12023 #define RIU_RWNXAGCDSP2_OFFSET 0x0000039C
12024 /// Index of the RWNXAGCDSP2 register
12025 #define RIU_RWNXAGCDSP2_INDEX 0x000000E7
12026 /// Reset value of the RWNXAGCDSP2 register
12027 #define RIU_RWNXAGCDSP2_RESET 0x00000000
12028
12029 /**
12030 * @brief Returns the current value of the RWNXAGCDSP2 register.
12031 * The RWNXAGCDSP2 register will be read and its value returned.
12032 * @return The current value of the RWNXAGCDSP2 register.
12033 */
riu_rwnxagcdsp2_get(void)12034 __INLINE uint32_t riu_rwnxagcdsp2_get(void)
12035 {
12036 return PLATFORM_REG_READ(RIU_RWNXAGCDSP2_ADDR);
12037 }
12038
12039 /**
12040 * @brief Sets the RWNXAGCDSP2 register to a value.
12041 * The RWNXAGCDSP2 register will be written.
12042 * @param value - The value to write.
12043 */
riu_rwnxagcdsp2_set(uint32_t value)12044 __INLINE void riu_rwnxagcdsp2_set(uint32_t value)
12045 {
12046 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP2_ADDR, value);
12047 }
12048
12049 // field definitions
12050 /// INBDPOW40SBIASQDB field mask
12051 #define RIU_INBDPOW40SBIASQDB_MASK ((uint32_t)0x00FF0000)
12052 /// INBDPOW40SBIASQDB field LSB position
12053 #define RIU_INBDPOW40SBIASQDB_LSB 16
12054 /// INBDPOW40SBIASQDB field width
12055 #define RIU_INBDPOW40SBIASQDB_WIDTH ((uint32_t)0x00000008)
12056 /// INBDPOW20SBIASQDB field mask
12057 #define RIU_INBDPOW20SBIASQDB_MASK ((uint32_t)0x0000FF00)
12058 /// INBDPOW20SBIASQDB field LSB position
12059 #define RIU_INBDPOW20SBIASQDB_LSB 8
12060 /// INBDPOW20SBIASQDB field width
12061 #define RIU_INBDPOW20SBIASQDB_WIDTH ((uint32_t)0x00000008)
12062 /// INBDPOW20PBIASQDB field mask
12063 #define RIU_INBDPOW20PBIASQDB_MASK ((uint32_t)0x000000FF)
12064 /// INBDPOW20PBIASQDB field LSB position
12065 #define RIU_INBDPOW20PBIASQDB_LSB 0
12066 /// INBDPOW20PBIASQDB field width
12067 #define RIU_INBDPOW20PBIASQDB_WIDTH ((uint32_t)0x00000008)
12068
12069 /// INBDPOW40SBIASQDB field reset value
12070 #define RIU_INBDPOW40SBIASQDB_RST 0x0
12071 /// INBDPOW20SBIASQDB field reset value
12072 #define RIU_INBDPOW20SBIASQDB_RST 0x0
12073 /// INBDPOW20PBIASQDB field reset value
12074 #define RIU_INBDPOW20PBIASQDB_RST 0x0
12075
12076 /**
12077 * @brief Constructs a value for the RWNXAGCDSP2 register given values for its fields
12078 * and writes the value to the register.
12079 *
12080 * @param[in] inbdpow40sbiasqdb - The value to use for the INBDPOW40SBIASQDB field.
12081 * @param[in] inbdpow20sbiasqdb - The value to use for the INBDPOW20SBIASQDB field.
12082 * @param[in] inbdpow20pbiasqdb - The value to use for the INBDPOW20PBIASQDB field.
12083 */
riu_rwnxagcdsp2_pack(uint8_t inbdpow40sbiasqdb,uint8_t inbdpow20sbiasqdb,uint8_t inbdpow20pbiasqdb)12084 __INLINE void riu_rwnxagcdsp2_pack(uint8_t inbdpow40sbiasqdb, uint8_t inbdpow20sbiasqdb, uint8_t inbdpow20pbiasqdb)
12085 {
12086 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP2_ADDR, ((uint32_t)inbdpow40sbiasqdb << 16) | ((uint32_t)inbdpow20sbiasqdb << 8) | ((uint32_t)inbdpow20pbiasqdb << 0));
12087 }
12088
12089 /**
12090 * @brief Unpacks RWNXAGCDSP2's fields from current value of the RWNXAGCDSP2 register.
12091 *
12092 * Reads the RWNXAGCDSP2 register and populates all the _field variables with the corresponding
12093 * values from the register.
12094 *
12095 * @param[out] inbdpow40sbiasqdb - Will be populated with the current value of this field from the register.
12096 * @param[out] inbdpow20sbiasqdb - Will be populated with the current value of this field from the register.
12097 * @param[out] inbdpow20pbiasqdb - Will be populated with the current value of this field from the register.
12098 */
riu_rwnxagcdsp2_unpack(uint8_t * inbdpow40sbiasqdb,uint8_t * inbdpow20sbiasqdb,uint8_t * inbdpow20pbiasqdb)12099 __INLINE void riu_rwnxagcdsp2_unpack(uint8_t* inbdpow40sbiasqdb, uint8_t* inbdpow20sbiasqdb, uint8_t* inbdpow20pbiasqdb)
12100 {
12101 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP2_ADDR);
12102
12103 *inbdpow40sbiasqdb = (localVal & ((uint32_t)0x00FF0000)) >> 16;
12104 *inbdpow20sbiasqdb = (localVal & ((uint32_t)0x0000FF00)) >> 8;
12105 *inbdpow20pbiasqdb = (localVal & ((uint32_t)0x000000FF)) >> 0;
12106 }
12107
12108 /**
12109 * @brief Returns the current value of the INBDPOW40SBIASQDB field in the RWNXAGCDSP2 register.
12110 *
12111 * The RWNXAGCDSP2 register will be read and the INBDPOW40SBIASQDB field's value will be returned.
12112 *
12113 * @return The current value of the INBDPOW40SBIASQDB field in the RWNXAGCDSP2 register.
12114 */
riu_inbdpow40sbiasqdb_getf(void)12115 __INLINE uint8_t riu_inbdpow40sbiasqdb_getf(void)
12116 {
12117 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP2_ADDR);
12118 return ((localVal & ((uint32_t)0x00FF0000)) >> 16);
12119 }
12120
12121 /**
12122 * @brief Sets the INBDPOW40SBIASQDB field of the RWNXAGCDSP2 register.
12123 *
12124 * The RWNXAGCDSP2 register will be read, modified to contain the new field value, and written.
12125 *
12126 * @param[in] inbdpow40sbiasqdb - The value to set the field to.
12127 */
riu_inbdpow40sbiasqdb_setf(uint8_t inbdpow40sbiasqdb)12128 __INLINE void riu_inbdpow40sbiasqdb_setf(uint8_t inbdpow40sbiasqdb)
12129 {
12130 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP2_ADDR) & ~((uint32_t)0x00FF0000)) | ((uint32_t)inbdpow40sbiasqdb << 16));
12131 }
12132
12133 /**
12134 * @brief Returns the current value of the INBDPOW20SBIASQDB field in the RWNXAGCDSP2 register.
12135 *
12136 * The RWNXAGCDSP2 register will be read and the INBDPOW20SBIASQDB field's value will be returned.
12137 *
12138 * @return The current value of the INBDPOW20SBIASQDB field in the RWNXAGCDSP2 register.
12139 */
riu_inbdpow20sbiasqdb_getf(void)12140 __INLINE uint8_t riu_inbdpow20sbiasqdb_getf(void)
12141 {
12142 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP2_ADDR);
12143 return ((localVal & ((uint32_t)0x0000FF00)) >> 8);
12144 }
12145
12146 /**
12147 * @brief Sets the INBDPOW20SBIASQDB field of the RWNXAGCDSP2 register.
12148 *
12149 * The RWNXAGCDSP2 register will be read, modified to contain the new field value, and written.
12150 *
12151 * @param[in] inbdpow20sbiasqdb - The value to set the field to.
12152 */
riu_inbdpow20sbiasqdb_setf(uint8_t inbdpow20sbiasqdb)12153 __INLINE void riu_inbdpow20sbiasqdb_setf(uint8_t inbdpow20sbiasqdb)
12154 {
12155 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP2_ADDR) & ~((uint32_t)0x0000FF00)) | ((uint32_t)inbdpow20sbiasqdb << 8));
12156 }
12157
12158 /**
12159 * @brief Returns the current value of the INBDPOW20PBIASQDB field in the RWNXAGCDSP2 register.
12160 *
12161 * The RWNXAGCDSP2 register will be read and the INBDPOW20PBIASQDB field's value will be returned.
12162 *
12163 * @return The current value of the INBDPOW20PBIASQDB field in the RWNXAGCDSP2 register.
12164 */
riu_inbdpow20pbiasqdb_getf(void)12165 __INLINE uint8_t riu_inbdpow20pbiasqdb_getf(void)
12166 {
12167 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP2_ADDR);
12168 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
12169 }
12170
12171 /**
12172 * @brief Sets the INBDPOW20PBIASQDB field of the RWNXAGCDSP2 register.
12173 *
12174 * The RWNXAGCDSP2 register will be read, modified to contain the new field value, and written.
12175 *
12176 * @param[in] inbdpow20pbiasqdb - The value to set the field to.
12177 */
riu_inbdpow20pbiasqdb_setf(uint8_t inbdpow20pbiasqdb)12178 __INLINE void riu_inbdpow20pbiasqdb_setf(uint8_t inbdpow20pbiasqdb)
12179 {
12180 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP2_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)inbdpow20pbiasqdb << 0));
12181 }
12182
12183 /// @}
12184
12185 /**
12186 * @name RWNXAGCDSP3 register definitions
12187 * <table>
12188 * <caption id="RWNXAGCDSP3_BF">RWNXAGCDSP3 bitfields</caption>
12189 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
12190 * <tr><td>27:20 <td> INBDPOWMINDBV <td>R <td>R/W <td>0xBF
12191 * <tr><td>17:16 <td> INBDRND <td>R <td>R/W <td>0x3
12192 * <tr><td>07:00 <td> INBDPOWMINDBM <td>R <td>R/W <td>0x9C
12193 * </table>
12194 *
12195 * @{
12196 */
12197
12198 /// Address of the RWNXAGCDSP3 register
12199 #define RIU_RWNXAGCDSP3_ADDR 0x4033B3A0
12200 /// Offset of the RWNXAGCDSP3 register from the base address
12201 #define RIU_RWNXAGCDSP3_OFFSET 0x000003A0
12202 /// Index of the RWNXAGCDSP3 register
12203 #define RIU_RWNXAGCDSP3_INDEX 0x000000E8
12204 /// Reset value of the RWNXAGCDSP3 register
12205 #define RIU_RWNXAGCDSP3_RESET 0x0BF3009C
12206
12207 /**
12208 * @brief Returns the current value of the RWNXAGCDSP3 register.
12209 * The RWNXAGCDSP3 register will be read and its value returned.
12210 * @return The current value of the RWNXAGCDSP3 register.
12211 */
riu_rwnxagcdsp3_get(void)12212 __INLINE uint32_t riu_rwnxagcdsp3_get(void)
12213 {
12214 return PLATFORM_REG_READ(RIU_RWNXAGCDSP3_ADDR);
12215 }
12216
12217 /**
12218 * @brief Sets the RWNXAGCDSP3 register to a value.
12219 * The RWNXAGCDSP3 register will be written.
12220 * @param value - The value to write.
12221 */
riu_rwnxagcdsp3_set(uint32_t value)12222 __INLINE void riu_rwnxagcdsp3_set(uint32_t value)
12223 {
12224 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP3_ADDR, value);
12225 }
12226
12227 // field definitions
12228 /// INBDPOWMINDBV field mask
12229 #define RIU_INBDPOWMINDBV_MASK ((uint32_t)0x0FF00000)
12230 /// INBDPOWMINDBV field LSB position
12231 #define RIU_INBDPOWMINDBV_LSB 20
12232 /// INBDPOWMINDBV field width
12233 #define RIU_INBDPOWMINDBV_WIDTH ((uint32_t)0x00000008)
12234 /// INBDRND field mask
12235 #define RIU_INBDRND_MASK ((uint32_t)0x00030000)
12236 /// INBDRND field LSB position
12237 #define RIU_INBDRND_LSB 16
12238 /// INBDRND field width
12239 #define RIU_INBDRND_WIDTH ((uint32_t)0x00000002)
12240 /// INBDPOWMINDBM field mask
12241 #define RIU_INBDPOWMINDBM_MASK ((uint32_t)0x000000FF)
12242 /// INBDPOWMINDBM field LSB position
12243 #define RIU_INBDPOWMINDBM_LSB 0
12244 /// INBDPOWMINDBM field width
12245 #define RIU_INBDPOWMINDBM_WIDTH ((uint32_t)0x00000008)
12246
12247 /// INBDPOWMINDBV field reset value
12248 #define RIU_INBDPOWMINDBV_RST 0xBF
12249 /// INBDRND field reset value
12250 #define RIU_INBDRND_RST 0x3
12251 /// INBDPOWMINDBM field reset value
12252 #define RIU_INBDPOWMINDBM_RST 0x9C
12253
12254 /**
12255 * @brief Constructs a value for the RWNXAGCDSP3 register given values for its fields
12256 * and writes the value to the register.
12257 *
12258 * @param[in] inbdpowmindbv - The value to use for the INBDPOWMINDBV field.
12259 * @param[in] inbdrnd - The value to use for the INBDRND field.
12260 * @param[in] inbdpowmindbm - The value to use for the INBDPOWMINDBM field.
12261 */
riu_rwnxagcdsp3_pack(uint8_t inbdpowmindbv,uint8_t inbdrnd,uint8_t inbdpowmindbm)12262 __INLINE void riu_rwnxagcdsp3_pack(uint8_t inbdpowmindbv, uint8_t inbdrnd, uint8_t inbdpowmindbm)
12263 {
12264 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP3_ADDR, ((uint32_t)inbdpowmindbv << 20) | ((uint32_t)inbdrnd << 16) | ((uint32_t)inbdpowmindbm << 0));
12265 }
12266
12267 /**
12268 * @brief Unpacks RWNXAGCDSP3's fields from current value of the RWNXAGCDSP3 register.
12269 *
12270 * Reads the RWNXAGCDSP3 register and populates all the _field variables with the corresponding
12271 * values from the register.
12272 *
12273 * @param[out] inbdpowmindbv - Will be populated with the current value of this field from the register.
12274 * @param[out] inbdrnd - Will be populated with the current value of this field from the register.
12275 * @param[out] inbdpowmindbm - Will be populated with the current value of this field from the register.
12276 */
riu_rwnxagcdsp3_unpack(uint8_t * inbdpowmindbv,uint8_t * inbdrnd,uint8_t * inbdpowmindbm)12277 __INLINE void riu_rwnxagcdsp3_unpack(uint8_t* inbdpowmindbv, uint8_t* inbdrnd, uint8_t* inbdpowmindbm)
12278 {
12279 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP3_ADDR);
12280
12281 *inbdpowmindbv = (localVal & ((uint32_t)0x0FF00000)) >> 20;
12282 *inbdrnd = (localVal & ((uint32_t)0x00030000)) >> 16;
12283 *inbdpowmindbm = (localVal & ((uint32_t)0x000000FF)) >> 0;
12284 }
12285
12286 /**
12287 * @brief Returns the current value of the INBDPOWMINDBV field in the RWNXAGCDSP3 register.
12288 *
12289 * The RWNXAGCDSP3 register will be read and the INBDPOWMINDBV field's value will be returned.
12290 *
12291 * @return The current value of the INBDPOWMINDBV field in the RWNXAGCDSP3 register.
12292 */
riu_inbdpowmindbv_getf(void)12293 __INLINE uint8_t riu_inbdpowmindbv_getf(void)
12294 {
12295 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP3_ADDR);
12296 return ((localVal & ((uint32_t)0x0FF00000)) >> 20);
12297 }
12298
12299 /**
12300 * @brief Sets the INBDPOWMINDBV field of the RWNXAGCDSP3 register.
12301 *
12302 * The RWNXAGCDSP3 register will be read, modified to contain the new field value, and written.
12303 *
12304 * @param[in] inbdpowmindbv - The value to set the field to.
12305 */
riu_inbdpowmindbv_setf(uint8_t inbdpowmindbv)12306 __INLINE void riu_inbdpowmindbv_setf(uint8_t inbdpowmindbv)
12307 {
12308 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP3_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP3_ADDR) & ~((uint32_t)0x0FF00000)) | ((uint32_t)inbdpowmindbv << 20));
12309 }
12310
12311 /**
12312 * @brief Returns the current value of the INBDRND field in the RWNXAGCDSP3 register.
12313 *
12314 * The RWNXAGCDSP3 register will be read and the INBDRND field's value will be returned.
12315 *
12316 * @return The current value of the INBDRND field in the RWNXAGCDSP3 register.
12317 */
riu_inbdrnd_getf(void)12318 __INLINE uint8_t riu_inbdrnd_getf(void)
12319 {
12320 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP3_ADDR);
12321 return ((localVal & ((uint32_t)0x00030000)) >> 16);
12322 }
12323
12324 /**
12325 * @brief Sets the INBDRND field of the RWNXAGCDSP3 register.
12326 *
12327 * The RWNXAGCDSP3 register will be read, modified to contain the new field value, and written.
12328 *
12329 * @param[in] inbdrnd - The value to set the field to.
12330 */
riu_inbdrnd_setf(uint8_t inbdrnd)12331 __INLINE void riu_inbdrnd_setf(uint8_t inbdrnd)
12332 {
12333 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP3_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP3_ADDR) & ~((uint32_t)0x00030000)) | ((uint32_t)inbdrnd << 16));
12334 }
12335
12336 /**
12337 * @brief Returns the current value of the INBDPOWMINDBM field in the RWNXAGCDSP3 register.
12338 *
12339 * The RWNXAGCDSP3 register will be read and the INBDPOWMINDBM field's value will be returned.
12340 *
12341 * @return The current value of the INBDPOWMINDBM field in the RWNXAGCDSP3 register.
12342 */
riu_inbdpowmindbm_getf(void)12343 __INLINE uint8_t riu_inbdpowmindbm_getf(void)
12344 {
12345 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP3_ADDR);
12346 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
12347 }
12348
12349 /**
12350 * @brief Sets the INBDPOWMINDBM field of the RWNXAGCDSP3 register.
12351 *
12352 * The RWNXAGCDSP3 register will be read, modified to contain the new field value, and written.
12353 *
12354 * @param[in] inbdpowmindbm - The value to set the field to.
12355 */
riu_inbdpowmindbm_setf(uint8_t inbdpowmindbm)12356 __INLINE void riu_inbdpowmindbm_setf(uint8_t inbdpowmindbm)
12357 {
12358 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP3_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP3_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)inbdpowmindbm << 0));
12359 }
12360
12361 /// @}
12362
12363 /**
12364 * @name RWNXAGCDSP4 register definitions
12365 * <table>
12366 * <caption id="RWNXAGCDSP4_BF">RWNXAGCDSP4 bitfields</caption>
12367 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
12368 * <tr><td>15:08 <td> FE40GAIN <td>R <td>R/W <td>0x2
12369 * <tr><td>07:00 <td> FE20GAIN <td>R <td>R/W <td>0x2
12370 * </table>
12371 *
12372 * @{
12373 */
12374
12375 /// Address of the RWNXAGCDSP4 register
12376 #define RIU_RWNXAGCDSP4_ADDR 0x4033B3A4
12377 /// Offset of the RWNXAGCDSP4 register from the base address
12378 #define RIU_RWNXAGCDSP4_OFFSET 0x000003A4
12379 /// Index of the RWNXAGCDSP4 register
12380 #define RIU_RWNXAGCDSP4_INDEX 0x000000E9
12381 /// Reset value of the RWNXAGCDSP4 register
12382 #define RIU_RWNXAGCDSP4_RESET 0x00000202
12383
12384 /**
12385 * @brief Returns the current value of the RWNXAGCDSP4 register.
12386 * The RWNXAGCDSP4 register will be read and its value returned.
12387 * @return The current value of the RWNXAGCDSP4 register.
12388 */
riu_rwnxagcdsp4_get(void)12389 __INLINE uint32_t riu_rwnxagcdsp4_get(void)
12390 {
12391 return PLATFORM_REG_READ(RIU_RWNXAGCDSP4_ADDR);
12392 }
12393
12394 /**
12395 * @brief Sets the RWNXAGCDSP4 register to a value.
12396 * The RWNXAGCDSP4 register will be written.
12397 * @param value - The value to write.
12398 */
riu_rwnxagcdsp4_set(uint32_t value)12399 __INLINE void riu_rwnxagcdsp4_set(uint32_t value)
12400 {
12401 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP4_ADDR, value);
12402 }
12403
12404 // field definitions
12405 /// FE40GAIN field mask
12406 #define RIU_FE40GAIN_MASK ((uint32_t)0x0000FF00)
12407 /// FE40GAIN field LSB position
12408 #define RIU_FE40GAIN_LSB 8
12409 /// FE40GAIN field width
12410 #define RIU_FE40GAIN_WIDTH ((uint32_t)0x00000008)
12411 /// FE20GAIN field mask
12412 #define RIU_FE20GAIN_MASK ((uint32_t)0x000000FF)
12413 /// FE20GAIN field LSB position
12414 #define RIU_FE20GAIN_LSB 0
12415 /// FE20GAIN field width
12416 #define RIU_FE20GAIN_WIDTH ((uint32_t)0x00000008)
12417
12418 /// FE40GAIN field reset value
12419 #define RIU_FE40GAIN_RST 0x2
12420 /// FE20GAIN field reset value
12421 #define RIU_FE20GAIN_RST 0x2
12422
12423 /**
12424 * @brief Constructs a value for the RWNXAGCDSP4 register given values for its fields
12425 * and writes the value to the register.
12426 *
12427 * @param[in] fe40gain - The value to use for the FE40GAIN field.
12428 * @param[in] fe20gain - The value to use for the FE20GAIN field.
12429 */
riu_rwnxagcdsp4_pack(uint8_t fe40gain,uint8_t fe20gain)12430 __INLINE void riu_rwnxagcdsp4_pack(uint8_t fe40gain, uint8_t fe20gain)
12431 {
12432 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP4_ADDR, ((uint32_t)fe40gain << 8) | ((uint32_t)fe20gain << 0));
12433 }
12434
12435 /**
12436 * @brief Unpacks RWNXAGCDSP4's fields from current value of the RWNXAGCDSP4 register.
12437 *
12438 * Reads the RWNXAGCDSP4 register and populates all the _field variables with the corresponding
12439 * values from the register.
12440 *
12441 * @param[out] fe40gain - Will be populated with the current value of this field from the register.
12442 * @param[out] fe20gain - Will be populated with the current value of this field from the register.
12443 */
riu_rwnxagcdsp4_unpack(uint8_t * fe40gain,uint8_t * fe20gain)12444 __INLINE void riu_rwnxagcdsp4_unpack(uint8_t* fe40gain, uint8_t* fe20gain)
12445 {
12446 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP4_ADDR);
12447
12448 *fe40gain = (localVal & ((uint32_t)0x0000FF00)) >> 8;
12449 *fe20gain = (localVal & ((uint32_t)0x000000FF)) >> 0;
12450 }
12451
12452 /**
12453 * @brief Returns the current value of the FE40GAIN field in the RWNXAGCDSP4 register.
12454 *
12455 * The RWNXAGCDSP4 register will be read and the FE40GAIN field's value will be returned.
12456 *
12457 * @return The current value of the FE40GAIN field in the RWNXAGCDSP4 register.
12458 */
riu_fe40gain_getf(void)12459 __INLINE uint8_t riu_fe40gain_getf(void)
12460 {
12461 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP4_ADDR);
12462 return ((localVal & ((uint32_t)0x0000FF00)) >> 8);
12463 }
12464
12465 /**
12466 * @brief Sets the FE40GAIN field of the RWNXAGCDSP4 register.
12467 *
12468 * The RWNXAGCDSP4 register will be read, modified to contain the new field value, and written.
12469 *
12470 * @param[in] fe40gain - The value to set the field to.
12471 */
riu_fe40gain_setf(uint8_t fe40gain)12472 __INLINE void riu_fe40gain_setf(uint8_t fe40gain)
12473 {
12474 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP4_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP4_ADDR) & ~((uint32_t)0x0000FF00)) | ((uint32_t)fe40gain << 8));
12475 }
12476
12477 /**
12478 * @brief Returns the current value of the FE20GAIN field in the RWNXAGCDSP4 register.
12479 *
12480 * The RWNXAGCDSP4 register will be read and the FE20GAIN field's value will be returned.
12481 *
12482 * @return The current value of the FE20GAIN field in the RWNXAGCDSP4 register.
12483 */
riu_fe20gain_getf(void)12484 __INLINE uint8_t riu_fe20gain_getf(void)
12485 {
12486 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDSP4_ADDR);
12487 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
12488 }
12489
12490 /**
12491 * @brief Sets the FE20GAIN field of the RWNXAGCDSP4 register.
12492 *
12493 * The RWNXAGCDSP4 register will be read, modified to contain the new field value, and written.
12494 *
12495 * @param[in] fe20gain - The value to set the field to.
12496 */
riu_fe20gain_setf(uint8_t fe20gain)12497 __INLINE void riu_fe20gain_setf(uint8_t fe20gain)
12498 {
12499 PLATFORM_REG_WRITE(RIU_RWNXAGCDSP4_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDSP4_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)fe20gain << 0));
12500 }
12501
12502 /// @}
12503
12504 /**
12505 * @name RWNXAGCCCA0 register definitions
12506 * <table>
12507 * <caption id="RWNXAGCCCA0_BF">RWNXAGCCCA0 bitfields</caption>
12508 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
12509 * <tr><td>22:20 <td> DELCCARAMPDNTAP <td>R <td>R/W <td>0x5
12510 * <tr><td>18:16 <td> DELCCARAMPUPTAP <td>R <td>R/W <td>0x5
12511 * <tr><td>13:08 <td> CCADETRAMPDN <td>R <td>R/W <td>0x9
12512 * <tr><td>05:00 <td> CCADETRAMPUP <td>R <td>R/W <td>0x9
12513 * </table>
12514 *
12515 * @{
12516 */
12517
12518 /// Address of the RWNXAGCCCA0 register
12519 #define RIU_RWNXAGCCCA0_ADDR 0x4033B3A8
12520 /// Offset of the RWNXAGCCCA0 register from the base address
12521 #define RIU_RWNXAGCCCA0_OFFSET 0x000003A8
12522 /// Index of the RWNXAGCCCA0 register
12523 #define RIU_RWNXAGCCCA0_INDEX 0x000000EA
12524 /// Reset value of the RWNXAGCCCA0 register
12525 #define RIU_RWNXAGCCCA0_RESET 0x00550909
12526
12527 /**
12528 * @brief Returns the current value of the RWNXAGCCCA0 register.
12529 * The RWNXAGCCCA0 register will be read and its value returned.
12530 * @return The current value of the RWNXAGCCCA0 register.
12531 */
riu_rwnxagccca0_get(void)12532 __INLINE uint32_t riu_rwnxagccca0_get(void)
12533 {
12534 return PLATFORM_REG_READ(RIU_RWNXAGCCCA0_ADDR);
12535 }
12536
12537 /**
12538 * @brief Sets the RWNXAGCCCA0 register to a value.
12539 * The RWNXAGCCCA0 register will be written.
12540 * @param value - The value to write.
12541 */
riu_rwnxagccca0_set(uint32_t value)12542 __INLINE void riu_rwnxagccca0_set(uint32_t value)
12543 {
12544 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA0_ADDR, value);
12545 }
12546
12547 // field definitions
12548 /// DELCCARAMPDNTAP field mask
12549 #define RIU_DELCCARAMPDNTAP_MASK ((uint32_t)0x00700000)
12550 /// DELCCARAMPDNTAP field LSB position
12551 #define RIU_DELCCARAMPDNTAP_LSB 20
12552 /// DELCCARAMPDNTAP field width
12553 #define RIU_DELCCARAMPDNTAP_WIDTH ((uint32_t)0x00000003)
12554 /// DELCCARAMPUPTAP field mask
12555 #define RIU_DELCCARAMPUPTAP_MASK ((uint32_t)0x00070000)
12556 /// DELCCARAMPUPTAP field LSB position
12557 #define RIU_DELCCARAMPUPTAP_LSB 16
12558 /// DELCCARAMPUPTAP field width
12559 #define RIU_DELCCARAMPUPTAP_WIDTH ((uint32_t)0x00000003)
12560 /// CCADETRAMPDN field mask
12561 #define RIU_CCADETRAMPDN_MASK ((uint32_t)0x00003F00)
12562 /// CCADETRAMPDN field LSB position
12563 #define RIU_CCADETRAMPDN_LSB 8
12564 /// CCADETRAMPDN field width
12565 #define RIU_CCADETRAMPDN_WIDTH ((uint32_t)0x00000006)
12566 /// CCADETRAMPUP field mask
12567 #define RIU_CCADETRAMPUP_MASK ((uint32_t)0x0000003F)
12568 /// CCADETRAMPUP field LSB position
12569 #define RIU_CCADETRAMPUP_LSB 0
12570 /// CCADETRAMPUP field width
12571 #define RIU_CCADETRAMPUP_WIDTH ((uint32_t)0x00000006)
12572
12573 /// DELCCARAMPDNTAP field reset value
12574 #define RIU_DELCCARAMPDNTAP_RST 0x5
12575 /// DELCCARAMPUPTAP field reset value
12576 #define RIU_DELCCARAMPUPTAP_RST 0x5
12577 /// CCADETRAMPDN field reset value
12578 #define RIU_CCADETRAMPDN_RST 0x9
12579 /// CCADETRAMPUP field reset value
12580 #define RIU_CCADETRAMPUP_RST 0x9
12581
12582 /**
12583 * @brief Constructs a value for the RWNXAGCCCA0 register given values for its fields
12584 * and writes the value to the register.
12585 *
12586 * @param[in] delccarampdntap - The value to use for the DELCCARAMPDNTAP field.
12587 * @param[in] delccarampuptap - The value to use for the DELCCARAMPUPTAP field.
12588 * @param[in] ccadetrampdn - The value to use for the CCADETRAMPDN field.
12589 * @param[in] ccadetrampup - The value to use for the CCADETRAMPUP field.
12590 */
riu_rwnxagccca0_pack(uint8_t delccarampdntap,uint8_t delccarampuptap,uint8_t ccadetrampdn,uint8_t ccadetrampup)12591 __INLINE void riu_rwnxagccca0_pack(uint8_t delccarampdntap, uint8_t delccarampuptap, uint8_t ccadetrampdn, uint8_t ccadetrampup)
12592 {
12593 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA0_ADDR, ((uint32_t)delccarampdntap << 20) | ((uint32_t)delccarampuptap << 16) | ((uint32_t)ccadetrampdn << 8) | ((uint32_t)ccadetrampup << 0));
12594 }
12595
12596 /**
12597 * @brief Unpacks RWNXAGCCCA0's fields from current value of the RWNXAGCCCA0 register.
12598 *
12599 * Reads the RWNXAGCCCA0 register and populates all the _field variables with the corresponding
12600 * values from the register.
12601 *
12602 * @param[out] delccarampdntap - Will be populated with the current value of this field from the register.
12603 * @param[out] delccarampuptap - Will be populated with the current value of this field from the register.
12604 * @param[out] ccadetrampdn - Will be populated with the current value of this field from the register.
12605 * @param[out] ccadetrampup - Will be populated with the current value of this field from the register.
12606 */
riu_rwnxagccca0_unpack(uint8_t * delccarampdntap,uint8_t * delccarampuptap,uint8_t * ccadetrampdn,uint8_t * ccadetrampup)12607 __INLINE void riu_rwnxagccca0_unpack(uint8_t* delccarampdntap, uint8_t* delccarampuptap, uint8_t* ccadetrampdn, uint8_t* ccadetrampup)
12608 {
12609 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA0_ADDR);
12610
12611 *delccarampdntap = (localVal & ((uint32_t)0x00700000)) >> 20;
12612 *delccarampuptap = (localVal & ((uint32_t)0x00070000)) >> 16;
12613 *ccadetrampdn = (localVal & ((uint32_t)0x00003F00)) >> 8;
12614 *ccadetrampup = (localVal & ((uint32_t)0x0000003F)) >> 0;
12615 }
12616
12617 /**
12618 * @brief Returns the current value of the DELCCARAMPDNTAP field in the RWNXAGCCCA0 register.
12619 *
12620 * The RWNXAGCCCA0 register will be read and the DELCCARAMPDNTAP field's value will be returned.
12621 *
12622 * @return The current value of the DELCCARAMPDNTAP field in the RWNXAGCCCA0 register.
12623 */
riu_delccarampdntap_getf(void)12624 __INLINE uint8_t riu_delccarampdntap_getf(void)
12625 {
12626 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA0_ADDR);
12627 return ((localVal & ((uint32_t)0x00700000)) >> 20);
12628 }
12629
12630 /**
12631 * @brief Sets the DELCCARAMPDNTAP field of the RWNXAGCCCA0 register.
12632 *
12633 * The RWNXAGCCCA0 register will be read, modified to contain the new field value, and written.
12634 *
12635 * @param[in] delccarampdntap - The value to set the field to.
12636 */
riu_delccarampdntap_setf(uint8_t delccarampdntap)12637 __INLINE void riu_delccarampdntap_setf(uint8_t delccarampdntap)
12638 {
12639 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA0_ADDR) & ~((uint32_t)0x00700000)) | ((uint32_t)delccarampdntap << 20));
12640 }
12641
12642 /**
12643 * @brief Returns the current value of the DELCCARAMPUPTAP field in the RWNXAGCCCA0 register.
12644 *
12645 * The RWNXAGCCCA0 register will be read and the DELCCARAMPUPTAP field's value will be returned.
12646 *
12647 * @return The current value of the DELCCARAMPUPTAP field in the RWNXAGCCCA0 register.
12648 */
riu_delccarampuptap_getf(void)12649 __INLINE uint8_t riu_delccarampuptap_getf(void)
12650 {
12651 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA0_ADDR);
12652 return ((localVal & ((uint32_t)0x00070000)) >> 16);
12653 }
12654
12655 /**
12656 * @brief Sets the DELCCARAMPUPTAP field of the RWNXAGCCCA0 register.
12657 *
12658 * The RWNXAGCCCA0 register will be read, modified to contain the new field value, and written.
12659 *
12660 * @param[in] delccarampuptap - The value to set the field to.
12661 */
riu_delccarampuptap_setf(uint8_t delccarampuptap)12662 __INLINE void riu_delccarampuptap_setf(uint8_t delccarampuptap)
12663 {
12664 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA0_ADDR) & ~((uint32_t)0x00070000)) | ((uint32_t)delccarampuptap << 16));
12665 }
12666
12667 /**
12668 * @brief Returns the current value of the CCADETRAMPDN field in the RWNXAGCCCA0 register.
12669 *
12670 * The RWNXAGCCCA0 register will be read and the CCADETRAMPDN field's value will be returned.
12671 *
12672 * @return The current value of the CCADETRAMPDN field in the RWNXAGCCCA0 register.
12673 */
riu_ccadetrampdn_getf(void)12674 __INLINE uint8_t riu_ccadetrampdn_getf(void)
12675 {
12676 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA0_ADDR);
12677 return ((localVal & ((uint32_t)0x00003F00)) >> 8);
12678 }
12679
12680 /**
12681 * @brief Sets the CCADETRAMPDN field of the RWNXAGCCCA0 register.
12682 *
12683 * The RWNXAGCCCA0 register will be read, modified to contain the new field value, and written.
12684 *
12685 * @param[in] ccadetrampdn - The value to set the field to.
12686 */
riu_ccadetrampdn_setf(uint8_t ccadetrampdn)12687 __INLINE void riu_ccadetrampdn_setf(uint8_t ccadetrampdn)
12688 {
12689 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA0_ADDR) & ~((uint32_t)0x00003F00)) | ((uint32_t)ccadetrampdn << 8));
12690 }
12691
12692 /**
12693 * @brief Returns the current value of the CCADETRAMPUP field in the RWNXAGCCCA0 register.
12694 *
12695 * The RWNXAGCCCA0 register will be read and the CCADETRAMPUP field's value will be returned.
12696 *
12697 * @return The current value of the CCADETRAMPUP field in the RWNXAGCCCA0 register.
12698 */
riu_ccadetrampup_getf(void)12699 __INLINE uint8_t riu_ccadetrampup_getf(void)
12700 {
12701 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA0_ADDR);
12702 return ((localVal & ((uint32_t)0x0000003F)) >> 0);
12703 }
12704
12705 /**
12706 * @brief Sets the CCADETRAMPUP field of the RWNXAGCCCA0 register.
12707 *
12708 * The RWNXAGCCCA0 register will be read, modified to contain the new field value, and written.
12709 *
12710 * @param[in] ccadetrampup - The value to set the field to.
12711 */
riu_ccadetrampup_setf(uint8_t ccadetrampup)12712 __INLINE void riu_ccadetrampup_setf(uint8_t ccadetrampup)
12713 {
12714 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA0_ADDR) & ~((uint32_t)0x0000003F)) | ((uint32_t)ccadetrampup << 0));
12715 }
12716
12717 /// @}
12718
12719 /**
12720 * @name RWNXAGCCCA1 register definitions
12721 * <table>
12722 * <caption id="RWNXAGCCCA1_BF">RWNXAGCCCA1 bitfields</caption>
12723 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
12724 * <tr><td>28:20 <td>INBDCCA20PPOWMINDBM <td>R <td>R/W <td>0x1B5
12725 * <tr><td>19:12 <td> CCA20PFALLTHRDBM <td>R <td>R/W <td>0xBF
12726 * <tr><td>09 <td> DISCCAEN <td>R <td>R/W <td>1
12727 * <tr><td>08 <td> SATCCAEN <td>R <td>R/W <td>1
12728 * <tr><td>07:00 <td> CCA20PRISETHRDBM <td>R <td>R/W <td>0xC2
12729 * </table>
12730 *
12731 * @{
12732 */
12733
12734 /// Address of the RWNXAGCCCA1 register
12735 #define RIU_RWNXAGCCCA1_ADDR 0x4033B3AC
12736 /// Offset of the RWNXAGCCCA1 register from the base address
12737 #define RIU_RWNXAGCCCA1_OFFSET 0x000003AC
12738 /// Index of the RWNXAGCCCA1 register
12739 #define RIU_RWNXAGCCCA1_INDEX 0x000000EB
12740 /// Reset value of the RWNXAGCCCA1 register
12741 #define RIU_RWNXAGCCCA1_RESET 0x1B5BF3C2
12742
12743 /**
12744 * @brief Returns the current value of the RWNXAGCCCA1 register.
12745 * The RWNXAGCCCA1 register will be read and its value returned.
12746 * @return The current value of the RWNXAGCCCA1 register.
12747 */
riu_rwnxagccca1_get(void)12748 __INLINE uint32_t riu_rwnxagccca1_get(void)
12749 {
12750 return PLATFORM_REG_READ(RIU_RWNXAGCCCA1_ADDR);
12751 }
12752
12753 /**
12754 * @brief Sets the RWNXAGCCCA1 register to a value.
12755 * The RWNXAGCCCA1 register will be written.
12756 * @param value - The value to write.
12757 */
riu_rwnxagccca1_set(uint32_t value)12758 __INLINE void riu_rwnxagccca1_set(uint32_t value)
12759 {
12760 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA1_ADDR, value);
12761 }
12762
12763 // field definitions
12764 /// INBDCCA20PPOWMINDBM field mask
12765 #define RIU_INBDCCA20PPOWMINDBM_MASK ((uint32_t)0x1FF00000)
12766 /// INBDCCA20PPOWMINDBM field LSB position
12767 #define RIU_INBDCCA20PPOWMINDBM_LSB 20
12768 /// INBDCCA20PPOWMINDBM field width
12769 #define RIU_INBDCCA20PPOWMINDBM_WIDTH ((uint32_t)0x00000009)
12770 /// CCA20PFALLTHRDBM field mask
12771 #define RIU_CCA20PFALLTHRDBM_MASK ((uint32_t)0x000FF000)
12772 /// CCA20PFALLTHRDBM field LSB position
12773 #define RIU_CCA20PFALLTHRDBM_LSB 12
12774 /// CCA20PFALLTHRDBM field width
12775 #define RIU_CCA20PFALLTHRDBM_WIDTH ((uint32_t)0x00000008)
12776 /// DISCCAEN field bit
12777 #define RIU_DISCCAEN_BIT ((uint32_t)0x00000200)
12778 /// DISCCAEN field position
12779 #define RIU_DISCCAEN_POS 9
12780 /// SATCCAEN field bit
12781 #define RIU_SATCCAEN_BIT ((uint32_t)0x00000100)
12782 /// SATCCAEN field position
12783 #define RIU_SATCCAEN_POS 8
12784 /// CCA20PRISETHRDBM field mask
12785 #define RIU_CCA20PRISETHRDBM_MASK ((uint32_t)0x000000FF)
12786 /// CCA20PRISETHRDBM field LSB position
12787 #define RIU_CCA20PRISETHRDBM_LSB 0
12788 /// CCA20PRISETHRDBM field width
12789 #define RIU_CCA20PRISETHRDBM_WIDTH ((uint32_t)0x00000008)
12790
12791 /// INBDCCA20PPOWMINDBM field reset value
12792 #define RIU_INBDCCA20PPOWMINDBM_RST 0x1B5
12793 /// CCA20PFALLTHRDBM field reset value
12794 #define RIU_CCA20PFALLTHRDBM_RST 0xBF
12795 /// DISCCAEN field reset value
12796 #define RIU_DISCCAEN_RST 0x1
12797 /// SATCCAEN field reset value
12798 #define RIU_SATCCAEN_RST 0x1
12799 /// CCA20PRISETHRDBM field reset value
12800 #define RIU_CCA20PRISETHRDBM_RST 0xC2
12801
12802 /**
12803 * @brief Constructs a value for the RWNXAGCCCA1 register given values for its fields
12804 * and writes the value to the register.
12805 *
12806 * @param[in] inbdcca20ppowmindbm - The value to use for the INBDCCA20PPOWMINDBM field.
12807 * @param[in] cca20pfallthrdbm - The value to use for the CCA20PFALLTHRDBM field.
12808 * @param[in] disccaen - The value to use for the DISCCAEN field.
12809 * @param[in] satccaen - The value to use for the SATCCAEN field.
12810 * @param[in] cca20prisethrdbm - The value to use for the CCA20PRISETHRDBM field.
12811 */
riu_rwnxagccca1_pack(uint16_t inbdcca20ppowmindbm,uint8_t cca20pfallthrdbm,uint8_t disccaen,uint8_t satccaen,uint8_t cca20prisethrdbm)12812 __INLINE void riu_rwnxagccca1_pack(uint16_t inbdcca20ppowmindbm, uint8_t cca20pfallthrdbm, uint8_t disccaen, uint8_t satccaen, uint8_t cca20prisethrdbm)
12813 {
12814 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA1_ADDR, ((uint32_t)inbdcca20ppowmindbm << 20) | ((uint32_t)cca20pfallthrdbm << 12) | ((uint32_t)disccaen << 9) | ((uint32_t)satccaen << 8) | ((uint32_t)cca20prisethrdbm << 0));
12815 }
12816
12817 /**
12818 * @brief Unpacks RWNXAGCCCA1's fields from current value of the RWNXAGCCCA1 register.
12819 *
12820 * Reads the RWNXAGCCCA1 register and populates all the _field variables with the corresponding
12821 * values from the register.
12822 *
12823 * @param[out] inbdcca20ppowmindbm - Will be populated with the current value of this field from the register.
12824 * @param[out] cca20pfallthrdbm - Will be populated with the current value of this field from the register.
12825 * @param[out] disccaen - Will be populated with the current value of this field from the register.
12826 * @param[out] satccaen - Will be populated with the current value of this field from the register.
12827 * @param[out] cca20prisethrdbm - Will be populated with the current value of this field from the register.
12828 */
riu_rwnxagccca1_unpack(uint16_t * inbdcca20ppowmindbm,uint8_t * cca20pfallthrdbm,uint8_t * disccaen,uint8_t * satccaen,uint8_t * cca20prisethrdbm)12829 __INLINE void riu_rwnxagccca1_unpack(uint16_t* inbdcca20ppowmindbm, uint8_t* cca20pfallthrdbm, uint8_t* disccaen, uint8_t* satccaen, uint8_t* cca20prisethrdbm)
12830 {
12831 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA1_ADDR);
12832
12833 *inbdcca20ppowmindbm = (localVal & ((uint32_t)0x1FF00000)) >> 20;
12834 *cca20pfallthrdbm = (localVal & ((uint32_t)0x000FF000)) >> 12;
12835 *disccaen = (localVal & ((uint32_t)0x00000200)) >> 9;
12836 *satccaen = (localVal & ((uint32_t)0x00000100)) >> 8;
12837 *cca20prisethrdbm = (localVal & ((uint32_t)0x000000FF)) >> 0;
12838 }
12839
12840 /**
12841 * @brief Returns the current value of the INBDCCA20PPOWMINDBM field in the RWNXAGCCCA1 register.
12842 *
12843 * The RWNXAGCCCA1 register will be read and the INBDCCA20PPOWMINDBM field's value will be returned.
12844 *
12845 * @return The current value of the INBDCCA20PPOWMINDBM field in the RWNXAGCCCA1 register.
12846 */
riu_inbdcca20ppowmindbm_getf(void)12847 __INLINE uint16_t riu_inbdcca20ppowmindbm_getf(void)
12848 {
12849 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA1_ADDR);
12850 return ((localVal & ((uint32_t)0x1FF00000)) >> 20);
12851 }
12852
12853 /**
12854 * @brief Sets the INBDCCA20PPOWMINDBM field of the RWNXAGCCCA1 register.
12855 *
12856 * The RWNXAGCCCA1 register will be read, modified to contain the new field value, and written.
12857 *
12858 * @param[in] inbdcca20ppowmindbm - The value to set the field to.
12859 */
riu_inbdcca20ppowmindbm_setf(uint16_t inbdcca20ppowmindbm)12860 __INLINE void riu_inbdcca20ppowmindbm_setf(uint16_t inbdcca20ppowmindbm)
12861 {
12862 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA1_ADDR) & ~((uint32_t)0x1FF00000)) | ((uint32_t)inbdcca20ppowmindbm << 20));
12863 }
12864
12865 /**
12866 * @brief Returns the current value of the CCA20PFALLTHRDBM field in the RWNXAGCCCA1 register.
12867 *
12868 * The RWNXAGCCCA1 register will be read and the CCA20PFALLTHRDBM field's value will be returned.
12869 *
12870 * @return The current value of the CCA20PFALLTHRDBM field in the RWNXAGCCCA1 register.
12871 */
riu_cca20pfallthrdbm_getf(void)12872 __INLINE uint8_t riu_cca20pfallthrdbm_getf(void)
12873 {
12874 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA1_ADDR);
12875 return ((localVal & ((uint32_t)0x000FF000)) >> 12);
12876 }
12877
12878 /**
12879 * @brief Sets the CCA20PFALLTHRDBM field of the RWNXAGCCCA1 register.
12880 *
12881 * The RWNXAGCCCA1 register will be read, modified to contain the new field value, and written.
12882 *
12883 * @param[in] cca20pfallthrdbm - The value to set the field to.
12884 */
riu_cca20pfallthrdbm_setf(uint8_t cca20pfallthrdbm)12885 __INLINE void riu_cca20pfallthrdbm_setf(uint8_t cca20pfallthrdbm)
12886 {
12887 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA1_ADDR) & ~((uint32_t)0x000FF000)) | ((uint32_t)cca20pfallthrdbm << 12));
12888 }
12889
12890 /**
12891 * @brief Returns the current value of the DISCCAEN field in the RWNXAGCCCA1 register.
12892 *
12893 * The RWNXAGCCCA1 register will be read and the DISCCAEN field's value will be returned.
12894 *
12895 * @return The current value of the DISCCAEN field in the RWNXAGCCCA1 register.
12896 */
riu_disccaen_getf(void)12897 __INLINE uint8_t riu_disccaen_getf(void)
12898 {
12899 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA1_ADDR);
12900 return ((localVal & ((uint32_t)0x00000200)) >> 9);
12901 }
12902
12903 /**
12904 * @brief Sets the DISCCAEN field of the RWNXAGCCCA1 register.
12905 *
12906 * The RWNXAGCCCA1 register will be read, modified to contain the new field value, and written.
12907 *
12908 * @param[in] disccaen - The value to set the field to.
12909 */
riu_disccaen_setf(uint8_t disccaen)12910 __INLINE void riu_disccaen_setf(uint8_t disccaen)
12911 {
12912 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA1_ADDR) & ~((uint32_t)0x00000200)) | ((uint32_t)disccaen << 9));
12913 }
12914
12915 /**
12916 * @brief Returns the current value of the SATCCAEN field in the RWNXAGCCCA1 register.
12917 *
12918 * The RWNXAGCCCA1 register will be read and the SATCCAEN field's value will be returned.
12919 *
12920 * @return The current value of the SATCCAEN field in the RWNXAGCCCA1 register.
12921 */
riu_satccaen_getf(void)12922 __INLINE uint8_t riu_satccaen_getf(void)
12923 {
12924 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA1_ADDR);
12925 return ((localVal & ((uint32_t)0x00000100)) >> 8);
12926 }
12927
12928 /**
12929 * @brief Sets the SATCCAEN field of the RWNXAGCCCA1 register.
12930 *
12931 * The RWNXAGCCCA1 register will be read, modified to contain the new field value, and written.
12932 *
12933 * @param[in] satccaen - The value to set the field to.
12934 */
riu_satccaen_setf(uint8_t satccaen)12935 __INLINE void riu_satccaen_setf(uint8_t satccaen)
12936 {
12937 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA1_ADDR) & ~((uint32_t)0x00000100)) | ((uint32_t)satccaen << 8));
12938 }
12939
12940 /**
12941 * @brief Returns the current value of the CCA20PRISETHRDBM field in the RWNXAGCCCA1 register.
12942 *
12943 * The RWNXAGCCCA1 register will be read and the CCA20PRISETHRDBM field's value will be returned.
12944 *
12945 * @return The current value of the CCA20PRISETHRDBM field in the RWNXAGCCCA1 register.
12946 */
riu_cca20prisethrdbm_getf(void)12947 __INLINE uint8_t riu_cca20prisethrdbm_getf(void)
12948 {
12949 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA1_ADDR);
12950 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
12951 }
12952
12953 /**
12954 * @brief Sets the CCA20PRISETHRDBM field of the RWNXAGCCCA1 register.
12955 *
12956 * The RWNXAGCCCA1 register will be read, modified to contain the new field value, and written.
12957 *
12958 * @param[in] cca20prisethrdbm - The value to set the field to.
12959 */
riu_cca20prisethrdbm_setf(uint8_t cca20prisethrdbm)12960 __INLINE void riu_cca20prisethrdbm_setf(uint8_t cca20prisethrdbm)
12961 {
12962 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA1_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)cca20prisethrdbm << 0));
12963 }
12964
12965 /// @}
12966
12967 /**
12968 * @name RWNXAGCCCACTRL register definitions
12969 * <table>
12970 * <caption id="RWNXAGCCCACTRL_BF">RWNXAGCCCACTRL bitfields</caption>
12971 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
12972 * <tr><td>31:28 <td> CCAFLAG3CTRL <td>R <td>R/W <td>0xA
12973 * <tr><td>27:24 <td> CCAFLAG2CTRL <td>R <td>R/W <td>0xA
12974 * <tr><td>23:20 <td> CCAFLAG1CTRL <td>R <td>R/W <td>0xA
12975 * <tr><td>19:16 <td> CCAFLAG0CTRL <td>R <td>R/W <td>0xA
12976 * <tr><td>15:14 <td> ANTSELCCA40S <td>R <td>R/W <td>0x0
12977 * <tr><td>13:12 <td> ANTSELCCA20S <td>R <td>R/W <td>0x0
12978 * <tr><td>09 <td> CCADEMOD <td>R <td>R/W <td>1
12979 * <tr><td>08 <td> CCACSEN <td>R <td>R/W <td>1
12980 * <tr><td>06:04 <td> CCARAMPUDEN <td>R <td>R/W <td>0x7
12981 * <tr><td>02:00 <td> CCAENERGYEN <td>R <td>R/W <td>0x7
12982 * </table>
12983 *
12984 * @{
12985 */
12986
12987 /// Address of the RWNXAGCCCACTRL register
12988 #define RIU_RWNXAGCCCACTRL_ADDR 0x4033B3B0
12989 /// Offset of the RWNXAGCCCACTRL register from the base address
12990 #define RIU_RWNXAGCCCACTRL_OFFSET 0x000003B0
12991 /// Index of the RWNXAGCCCACTRL register
12992 #define RIU_RWNXAGCCCACTRL_INDEX 0x000000EC
12993 /// Reset value of the RWNXAGCCCACTRL register
12994 #define RIU_RWNXAGCCCACTRL_RESET 0xAAAA0377
12995
12996 /**
12997 * @brief Returns the current value of the RWNXAGCCCACTRL register.
12998 * The RWNXAGCCCACTRL register will be read and its value returned.
12999 * @return The current value of the RWNXAGCCCACTRL register.
13000 */
riu_rwnxagcccactrl_get(void)13001 __INLINE uint32_t riu_rwnxagcccactrl_get(void)
13002 {
13003 return PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR);
13004 }
13005
13006 /**
13007 * @brief Sets the RWNXAGCCCACTRL register to a value.
13008 * The RWNXAGCCCACTRL register will be written.
13009 * @param value - The value to write.
13010 */
riu_rwnxagcccactrl_set(uint32_t value)13011 __INLINE void riu_rwnxagcccactrl_set(uint32_t value)
13012 {
13013 PLATFORM_REG_WRITE(RIU_RWNXAGCCCACTRL_ADDR, value);
13014 }
13015
13016 // field definitions
13017 /// CCAFLAG3CTRL field mask
13018 #define RIU_CCAFLAG3CTRL_MASK ((uint32_t)0xF0000000)
13019 /// CCAFLAG3CTRL field LSB position
13020 #define RIU_CCAFLAG3CTRL_LSB 28
13021 /// CCAFLAG3CTRL field width
13022 #define RIU_CCAFLAG3CTRL_WIDTH ((uint32_t)0x00000004)
13023 /// CCAFLAG2CTRL field mask
13024 #define RIU_CCAFLAG2CTRL_MASK ((uint32_t)0x0F000000)
13025 /// CCAFLAG2CTRL field LSB position
13026 #define RIU_CCAFLAG2CTRL_LSB 24
13027 /// CCAFLAG2CTRL field width
13028 #define RIU_CCAFLAG2CTRL_WIDTH ((uint32_t)0x00000004)
13029 /// CCAFLAG1CTRL field mask
13030 #define RIU_CCAFLAG1CTRL_MASK ((uint32_t)0x00F00000)
13031 /// CCAFLAG1CTRL field LSB position
13032 #define RIU_CCAFLAG1CTRL_LSB 20
13033 /// CCAFLAG1CTRL field width
13034 #define RIU_CCAFLAG1CTRL_WIDTH ((uint32_t)0x00000004)
13035 /// CCAFLAG0CTRL field mask
13036 #define RIU_CCAFLAG0CTRL_MASK ((uint32_t)0x000F0000)
13037 /// CCAFLAG0CTRL field LSB position
13038 #define RIU_CCAFLAG0CTRL_LSB 16
13039 /// CCAFLAG0CTRL field width
13040 #define RIU_CCAFLAG0CTRL_WIDTH ((uint32_t)0x00000004)
13041 /// ANTSELCCA40S field mask
13042 #define RIU_ANTSELCCA40S_MASK ((uint32_t)0x0000C000)
13043 /// ANTSELCCA40S field LSB position
13044 #define RIU_ANTSELCCA40S_LSB 14
13045 /// ANTSELCCA40S field width
13046 #define RIU_ANTSELCCA40S_WIDTH ((uint32_t)0x00000002)
13047 /// ANTSELCCA20S field mask
13048 #define RIU_ANTSELCCA20S_MASK ((uint32_t)0x00003000)
13049 /// ANTSELCCA20S field LSB position
13050 #define RIU_ANTSELCCA20S_LSB 12
13051 /// ANTSELCCA20S field width
13052 #define RIU_ANTSELCCA20S_WIDTH ((uint32_t)0x00000002)
13053 /// CCADEMOD field bit
13054 #define RIU_CCADEMOD_BIT ((uint32_t)0x00000200)
13055 /// CCADEMOD field position
13056 #define RIU_CCADEMOD_POS 9
13057 /// CCACSEN field bit
13058 #define RIU_CCACSEN_BIT ((uint32_t)0x00000100)
13059 /// CCACSEN field position
13060 #define RIU_CCACSEN_POS 8
13061 /// CCARAMPUDEN field mask
13062 #define RIU_CCARAMPUDEN_MASK ((uint32_t)0x00000070)
13063 /// CCARAMPUDEN field LSB position
13064 #define RIU_CCARAMPUDEN_LSB 4
13065 /// CCARAMPUDEN field width
13066 #define RIU_CCARAMPUDEN_WIDTH ((uint32_t)0x00000003)
13067 /// CCAENERGYEN field mask
13068 #define RIU_CCAENERGYEN_MASK ((uint32_t)0x00000007)
13069 /// CCAENERGYEN field LSB position
13070 #define RIU_CCAENERGYEN_LSB 0
13071 /// CCAENERGYEN field width
13072 #define RIU_CCAENERGYEN_WIDTH ((uint32_t)0x00000003)
13073
13074 /// CCAFLAG3CTRL field reset value
13075 #define RIU_CCAFLAG3CTRL_RST 0xA
13076 /// CCAFLAG2CTRL field reset value
13077 #define RIU_CCAFLAG2CTRL_RST 0xA
13078 /// CCAFLAG1CTRL field reset value
13079 #define RIU_CCAFLAG1CTRL_RST 0xA
13080 /// CCAFLAG0CTRL field reset value
13081 #define RIU_CCAFLAG0CTRL_RST 0xA
13082 /// ANTSELCCA40S field reset value
13083 #define RIU_ANTSELCCA40S_RST 0x0
13084 /// ANTSELCCA20S field reset value
13085 #define RIU_ANTSELCCA20S_RST 0x0
13086 /// CCADEMOD field reset value
13087 #define RIU_CCADEMOD_RST 0x1
13088 /// CCACSEN field reset value
13089 #define RIU_CCACSEN_RST 0x1
13090 /// CCARAMPUDEN field reset value
13091 #define RIU_CCARAMPUDEN_RST 0x7
13092 /// CCAENERGYEN field reset value
13093 #define RIU_CCAENERGYEN_RST 0x7
13094
13095 /**
13096 * @brief Constructs a value for the RWNXAGCCCACTRL register given values for its fields
13097 * and writes the value to the register.
13098 *
13099 * @param[in] ccaflag3ctrl - The value to use for the CCAFLAG3CTRL field.
13100 * @param[in] ccaflag2ctrl - The value to use for the CCAFLAG2CTRL field.
13101 * @param[in] ccaflag1ctrl - The value to use for the CCAFLAG1CTRL field.
13102 * @param[in] ccaflag0ctrl - The value to use for the CCAFLAG0CTRL field.
13103 * @param[in] antselcca40s - The value to use for the ANTSELCCA40S field.
13104 * @param[in] antselcca20s - The value to use for the ANTSELCCA20S field.
13105 * @param[in] ccademod - The value to use for the CCADEMOD field.
13106 * @param[in] ccacsen - The value to use for the CCACSEN field.
13107 * @param[in] ccarampuden - The value to use for the CCARAMPUDEN field.
13108 * @param[in] ccaenergyen - The value to use for the CCAENERGYEN field.
13109 */
riu_rwnxagcccactrl_pack(uint8_t ccaflag3ctrl,uint8_t ccaflag2ctrl,uint8_t ccaflag1ctrl,uint8_t ccaflag0ctrl,uint8_t antselcca40s,uint8_t antselcca20s,uint8_t ccademod,uint8_t ccacsen,uint8_t ccarampuden,uint8_t ccaenergyen)13110 __INLINE void riu_rwnxagcccactrl_pack(uint8_t ccaflag3ctrl, uint8_t ccaflag2ctrl, uint8_t ccaflag1ctrl, uint8_t ccaflag0ctrl, uint8_t antselcca40s, uint8_t antselcca20s, uint8_t ccademod, uint8_t ccacsen, uint8_t ccarampuden, uint8_t ccaenergyen)
13111 {
13112 PLATFORM_REG_WRITE(RIU_RWNXAGCCCACTRL_ADDR, ((uint32_t)ccaflag3ctrl << 28) | ((uint32_t)ccaflag2ctrl << 24) | ((uint32_t)ccaflag1ctrl << 20) | ((uint32_t)ccaflag0ctrl << 16) | ((uint32_t)antselcca40s << 14) | ((uint32_t)antselcca20s << 12) | ((uint32_t)ccademod << 9) | ((uint32_t)ccacsen << 8) | ((uint32_t)ccarampuden << 4) | ((uint32_t)ccaenergyen << 0));
13113 }
13114
13115 /**
13116 * @brief Unpacks RWNXAGCCCACTRL's fields from current value of the RWNXAGCCCACTRL register.
13117 *
13118 * Reads the RWNXAGCCCACTRL register and populates all the _field variables with the corresponding
13119 * values from the register.
13120 *
13121 * @param[out] ccaflag3ctrl - Will be populated with the current value of this field from the register.
13122 * @param[out] ccaflag2ctrl - Will be populated with the current value of this field from the register.
13123 * @param[out] ccaflag1ctrl - Will be populated with the current value of this field from the register.
13124 * @param[out] ccaflag0ctrl - Will be populated with the current value of this field from the register.
13125 * @param[out] antselcca40s - Will be populated with the current value of this field from the register.
13126 * @param[out] antselcca20s - Will be populated with the current value of this field from the register.
13127 * @param[out] ccademod - Will be populated with the current value of this field from the register.
13128 * @param[out] ccacsen - Will be populated with the current value of this field from the register.
13129 * @param[out] ccarampuden - Will be populated with the current value of this field from the register.
13130 * @param[out] ccaenergyen - Will be populated with the current value of this field from the register.
13131 */
riu_rwnxagcccactrl_unpack(uint8_t * ccaflag3ctrl,uint8_t * ccaflag2ctrl,uint8_t * ccaflag1ctrl,uint8_t * ccaflag0ctrl,uint8_t * antselcca40s,uint8_t * antselcca20s,uint8_t * ccademod,uint8_t * ccacsen,uint8_t * ccarampuden,uint8_t * ccaenergyen)13132 __INLINE void riu_rwnxagcccactrl_unpack(uint8_t* ccaflag3ctrl, uint8_t* ccaflag2ctrl, uint8_t* ccaflag1ctrl, uint8_t* ccaflag0ctrl, uint8_t* antselcca40s, uint8_t* antselcca20s, uint8_t* ccademod, uint8_t* ccacsen, uint8_t* ccarampuden, uint8_t* ccaenergyen)
13133 {
13134 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR);
13135
13136 *ccaflag3ctrl = (localVal & ((uint32_t)0xF0000000)) >> 28;
13137 *ccaflag2ctrl = (localVal & ((uint32_t)0x0F000000)) >> 24;
13138 *ccaflag1ctrl = (localVal & ((uint32_t)0x00F00000)) >> 20;
13139 *ccaflag0ctrl = (localVal & ((uint32_t)0x000F0000)) >> 16;
13140 *antselcca40s = (localVal & ((uint32_t)0x0000C000)) >> 14;
13141 *antselcca20s = (localVal & ((uint32_t)0x00003000)) >> 12;
13142 *ccademod = (localVal & ((uint32_t)0x00000200)) >> 9;
13143 *ccacsen = (localVal & ((uint32_t)0x00000100)) >> 8;
13144 *ccarampuden = (localVal & ((uint32_t)0x00000070)) >> 4;
13145 *ccaenergyen = (localVal & ((uint32_t)0x00000007)) >> 0;
13146 }
13147
13148 /**
13149 * @brief Returns the current value of the CCAFLAG3CTRL field in the RWNXAGCCCACTRL register.
13150 *
13151 * The RWNXAGCCCACTRL register will be read and the CCAFLAG3CTRL field's value will be returned.
13152 *
13153 * @return The current value of the CCAFLAG3CTRL field in the RWNXAGCCCACTRL register.
13154 */
riu_ccaflag3ctrl_getf(void)13155 __INLINE uint8_t riu_ccaflag3ctrl_getf(void)
13156 {
13157 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR);
13158 return ((localVal & ((uint32_t)0xF0000000)) >> 28);
13159 }
13160
13161 /**
13162 * @brief Sets the CCAFLAG3CTRL field of the RWNXAGCCCACTRL register.
13163 *
13164 * The RWNXAGCCCACTRL register will be read, modified to contain the new field value, and written.
13165 *
13166 * @param[in] ccaflag3ctrl - The value to set the field to.
13167 */
riu_ccaflag3ctrl_setf(uint8_t ccaflag3ctrl)13168 __INLINE void riu_ccaflag3ctrl_setf(uint8_t ccaflag3ctrl)
13169 {
13170 PLATFORM_REG_WRITE(RIU_RWNXAGCCCACTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR) & ~((uint32_t)0xF0000000)) | ((uint32_t)ccaflag3ctrl << 28));
13171 }
13172
13173 /**
13174 * @brief Returns the current value of the CCAFLAG2CTRL field in the RWNXAGCCCACTRL register.
13175 *
13176 * The RWNXAGCCCACTRL register will be read and the CCAFLAG2CTRL field's value will be returned.
13177 *
13178 * @return The current value of the CCAFLAG2CTRL field in the RWNXAGCCCACTRL register.
13179 */
riu_ccaflag2ctrl_getf(void)13180 __INLINE uint8_t riu_ccaflag2ctrl_getf(void)
13181 {
13182 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR);
13183 return ((localVal & ((uint32_t)0x0F000000)) >> 24);
13184 }
13185
13186 /**
13187 * @brief Sets the CCAFLAG2CTRL field of the RWNXAGCCCACTRL register.
13188 *
13189 * The RWNXAGCCCACTRL register will be read, modified to contain the new field value, and written.
13190 *
13191 * @param[in] ccaflag2ctrl - The value to set the field to.
13192 */
riu_ccaflag2ctrl_setf(uint8_t ccaflag2ctrl)13193 __INLINE void riu_ccaflag2ctrl_setf(uint8_t ccaflag2ctrl)
13194 {
13195 PLATFORM_REG_WRITE(RIU_RWNXAGCCCACTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR) & ~((uint32_t)0x0F000000)) | ((uint32_t)ccaflag2ctrl << 24));
13196 }
13197
13198 /**
13199 * @brief Returns the current value of the CCAFLAG1CTRL field in the RWNXAGCCCACTRL register.
13200 *
13201 * The RWNXAGCCCACTRL register will be read and the CCAFLAG1CTRL field's value will be returned.
13202 *
13203 * @return The current value of the CCAFLAG1CTRL field in the RWNXAGCCCACTRL register.
13204 */
riu_ccaflag1ctrl_getf(void)13205 __INLINE uint8_t riu_ccaflag1ctrl_getf(void)
13206 {
13207 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR);
13208 return ((localVal & ((uint32_t)0x00F00000)) >> 20);
13209 }
13210
13211 /**
13212 * @brief Sets the CCAFLAG1CTRL field of the RWNXAGCCCACTRL register.
13213 *
13214 * The RWNXAGCCCACTRL register will be read, modified to contain the new field value, and written.
13215 *
13216 * @param[in] ccaflag1ctrl - The value to set the field to.
13217 */
riu_ccaflag1ctrl_setf(uint8_t ccaflag1ctrl)13218 __INLINE void riu_ccaflag1ctrl_setf(uint8_t ccaflag1ctrl)
13219 {
13220 PLATFORM_REG_WRITE(RIU_RWNXAGCCCACTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR) & ~((uint32_t)0x00F00000)) | ((uint32_t)ccaflag1ctrl << 20));
13221 }
13222
13223 /**
13224 * @brief Returns the current value of the CCAFLAG0CTRL field in the RWNXAGCCCACTRL register.
13225 *
13226 * The RWNXAGCCCACTRL register will be read and the CCAFLAG0CTRL field's value will be returned.
13227 *
13228 * @return The current value of the CCAFLAG0CTRL field in the RWNXAGCCCACTRL register.
13229 */
riu_ccaflag0ctrl_getf(void)13230 __INLINE uint8_t riu_ccaflag0ctrl_getf(void)
13231 {
13232 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR);
13233 return ((localVal & ((uint32_t)0x000F0000)) >> 16);
13234 }
13235
13236 /**
13237 * @brief Sets the CCAFLAG0CTRL field of the RWNXAGCCCACTRL register.
13238 *
13239 * The RWNXAGCCCACTRL register will be read, modified to contain the new field value, and written.
13240 *
13241 * @param[in] ccaflag0ctrl - The value to set the field to.
13242 */
riu_ccaflag0ctrl_setf(uint8_t ccaflag0ctrl)13243 __INLINE void riu_ccaflag0ctrl_setf(uint8_t ccaflag0ctrl)
13244 {
13245 PLATFORM_REG_WRITE(RIU_RWNXAGCCCACTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR) & ~((uint32_t)0x000F0000)) | ((uint32_t)ccaflag0ctrl << 16));
13246 }
13247
13248 /**
13249 * @brief Returns the current value of the ANTSELCCA40S field in the RWNXAGCCCACTRL register.
13250 *
13251 * The RWNXAGCCCACTRL register will be read and the ANTSELCCA40S field's value will be returned.
13252 *
13253 * @return The current value of the ANTSELCCA40S field in the RWNXAGCCCACTRL register.
13254 */
riu_antselcca40s_getf(void)13255 __INLINE uint8_t riu_antselcca40s_getf(void)
13256 {
13257 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR);
13258 return ((localVal & ((uint32_t)0x0000C000)) >> 14);
13259 }
13260
13261 /**
13262 * @brief Sets the ANTSELCCA40S field of the RWNXAGCCCACTRL register.
13263 *
13264 * The RWNXAGCCCACTRL register will be read, modified to contain the new field value, and written.
13265 *
13266 * @param[in] antselcca40s - The value to set the field to.
13267 */
riu_antselcca40s_setf(uint8_t antselcca40s)13268 __INLINE void riu_antselcca40s_setf(uint8_t antselcca40s)
13269 {
13270 PLATFORM_REG_WRITE(RIU_RWNXAGCCCACTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR) & ~((uint32_t)0x0000C000)) | ((uint32_t)antselcca40s << 14));
13271 }
13272
13273 /**
13274 * @brief Returns the current value of the ANTSELCCA20S field in the RWNXAGCCCACTRL register.
13275 *
13276 * The RWNXAGCCCACTRL register will be read and the ANTSELCCA20S field's value will be returned.
13277 *
13278 * @return The current value of the ANTSELCCA20S field in the RWNXAGCCCACTRL register.
13279 */
riu_antselcca20s_getf(void)13280 __INLINE uint8_t riu_antselcca20s_getf(void)
13281 {
13282 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR);
13283 return ((localVal & ((uint32_t)0x00003000)) >> 12);
13284 }
13285
13286 /**
13287 * @brief Sets the ANTSELCCA20S field of the RWNXAGCCCACTRL register.
13288 *
13289 * The RWNXAGCCCACTRL register will be read, modified to contain the new field value, and written.
13290 *
13291 * @param[in] antselcca20s - The value to set the field to.
13292 */
riu_antselcca20s_setf(uint8_t antselcca20s)13293 __INLINE void riu_antselcca20s_setf(uint8_t antselcca20s)
13294 {
13295 PLATFORM_REG_WRITE(RIU_RWNXAGCCCACTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR) & ~((uint32_t)0x00003000)) | ((uint32_t)antselcca20s << 12));
13296 }
13297
13298 /**
13299 * @brief Returns the current value of the CCADEMOD field in the RWNXAGCCCACTRL register.
13300 *
13301 * The RWNXAGCCCACTRL register will be read and the CCADEMOD field's value will be returned.
13302 *
13303 * @return The current value of the CCADEMOD field in the RWNXAGCCCACTRL register.
13304 */
riu_ccademod_getf(void)13305 __INLINE uint8_t riu_ccademod_getf(void)
13306 {
13307 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR);
13308 return ((localVal & ((uint32_t)0x00000200)) >> 9);
13309 }
13310
13311 /**
13312 * @brief Sets the CCADEMOD field of the RWNXAGCCCACTRL register.
13313 *
13314 * The RWNXAGCCCACTRL register will be read, modified to contain the new field value, and written.
13315 *
13316 * @param[in] ccademod - The value to set the field to.
13317 */
riu_ccademod_setf(uint8_t ccademod)13318 __INLINE void riu_ccademod_setf(uint8_t ccademod)
13319 {
13320 PLATFORM_REG_WRITE(RIU_RWNXAGCCCACTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR) & ~((uint32_t)0x00000200)) | ((uint32_t)ccademod << 9));
13321 }
13322
13323 /**
13324 * @brief Returns the current value of the CCACSEN field in the RWNXAGCCCACTRL register.
13325 *
13326 * The RWNXAGCCCACTRL register will be read and the CCACSEN field's value will be returned.
13327 *
13328 * @return The current value of the CCACSEN field in the RWNXAGCCCACTRL register.
13329 */
riu_ccacsen_getf(void)13330 __INLINE uint8_t riu_ccacsen_getf(void)
13331 {
13332 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR);
13333 return ((localVal & ((uint32_t)0x00000100)) >> 8);
13334 }
13335
13336 /**
13337 * @brief Sets the CCACSEN field of the RWNXAGCCCACTRL register.
13338 *
13339 * The RWNXAGCCCACTRL register will be read, modified to contain the new field value, and written.
13340 *
13341 * @param[in] ccacsen - The value to set the field to.
13342 */
riu_ccacsen_setf(uint8_t ccacsen)13343 __INLINE void riu_ccacsen_setf(uint8_t ccacsen)
13344 {
13345 PLATFORM_REG_WRITE(RIU_RWNXAGCCCACTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR) & ~((uint32_t)0x00000100)) | ((uint32_t)ccacsen << 8));
13346 }
13347
13348 /**
13349 * @brief Returns the current value of the CCARAMPUDEN field in the RWNXAGCCCACTRL register.
13350 *
13351 * The RWNXAGCCCACTRL register will be read and the CCARAMPUDEN field's value will be returned.
13352 *
13353 * @return The current value of the CCARAMPUDEN field in the RWNXAGCCCACTRL register.
13354 */
riu_ccarampuden_getf(void)13355 __INLINE uint8_t riu_ccarampuden_getf(void)
13356 {
13357 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR);
13358 return ((localVal & ((uint32_t)0x00000070)) >> 4);
13359 }
13360
13361 /**
13362 * @brief Sets the CCARAMPUDEN field of the RWNXAGCCCACTRL register.
13363 *
13364 * The RWNXAGCCCACTRL register will be read, modified to contain the new field value, and written.
13365 *
13366 * @param[in] ccarampuden - The value to set the field to.
13367 */
riu_ccarampuden_setf(uint8_t ccarampuden)13368 __INLINE void riu_ccarampuden_setf(uint8_t ccarampuden)
13369 {
13370 PLATFORM_REG_WRITE(RIU_RWNXAGCCCACTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR) & ~((uint32_t)0x00000070)) | ((uint32_t)ccarampuden << 4));
13371 }
13372
13373 /**
13374 * @brief Returns the current value of the CCAENERGYEN field in the RWNXAGCCCACTRL register.
13375 *
13376 * The RWNXAGCCCACTRL register will be read and the CCAENERGYEN field's value will be returned.
13377 *
13378 * @return The current value of the CCAENERGYEN field in the RWNXAGCCCACTRL register.
13379 */
riu_ccaenergyen_getf(void)13380 __INLINE uint8_t riu_ccaenergyen_getf(void)
13381 {
13382 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR);
13383 return ((localVal & ((uint32_t)0x00000007)) >> 0);
13384 }
13385
13386 /**
13387 * @brief Sets the CCAENERGYEN field of the RWNXAGCCCACTRL register.
13388 *
13389 * The RWNXAGCCCACTRL register will be read, modified to contain the new field value, and written.
13390 *
13391 * @param[in] ccaenergyen - The value to set the field to.
13392 */
riu_ccaenergyen_setf(uint8_t ccaenergyen)13393 __INLINE void riu_ccaenergyen_setf(uint8_t ccaenergyen)
13394 {
13395 PLATFORM_REG_WRITE(RIU_RWNXAGCCCACTRL_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCACTRL_ADDR) & ~((uint32_t)0x00000007)) | ((uint32_t)ccaenergyen << 0));
13396 }
13397
13398 /// @}
13399
13400 /**
13401 * @name RWNXAGCCCASTATE0 register definitions
13402 * <table>
13403 * <caption id="RWNXAGCCCASTATE0_BF">RWNXAGCCCASTATE0 bitfields</caption>
13404 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
13405 * <tr><td>26:16 <td> RXSTATECCA20SSEL <td>R <td>R/W <td>0xD4
13406 * <tr><td>10:00 <td> RXSTATECCA20PSEL <td>R <td>R/W <td>0x6FE
13407 * </table>
13408 *
13409 * @{
13410 */
13411
13412 /// Address of the RWNXAGCCCASTATE0 register
13413 #define RIU_RWNXAGCCCASTATE0_ADDR 0x4033B3B4
13414 /// Offset of the RWNXAGCCCASTATE0 register from the base address
13415 #define RIU_RWNXAGCCCASTATE0_OFFSET 0x000003B4
13416 /// Index of the RWNXAGCCCASTATE0 register
13417 #define RIU_RWNXAGCCCASTATE0_INDEX 0x000000ED
13418 /// Reset value of the RWNXAGCCCASTATE0 register
13419 #define RIU_RWNXAGCCCASTATE0_RESET 0x00D406FE
13420
13421 /**
13422 * @brief Returns the current value of the RWNXAGCCCASTATE0 register.
13423 * The RWNXAGCCCASTATE0 register will be read and its value returned.
13424 * @return The current value of the RWNXAGCCCASTATE0 register.
13425 */
riu_rwnxagcccastate0_get(void)13426 __INLINE uint32_t riu_rwnxagcccastate0_get(void)
13427 {
13428 return PLATFORM_REG_READ(RIU_RWNXAGCCCASTATE0_ADDR);
13429 }
13430
13431 /**
13432 * @brief Sets the RWNXAGCCCASTATE0 register to a value.
13433 * The RWNXAGCCCASTATE0 register will be written.
13434 * @param value - The value to write.
13435 */
riu_rwnxagcccastate0_set(uint32_t value)13436 __INLINE void riu_rwnxagcccastate0_set(uint32_t value)
13437 {
13438 PLATFORM_REG_WRITE(RIU_RWNXAGCCCASTATE0_ADDR, value);
13439 }
13440
13441 // field definitions
13442 /// RXSTATECCA20SSEL field mask
13443 #define RIU_RXSTATECCA20SSEL_MASK ((uint32_t)0x07FF0000)
13444 /// RXSTATECCA20SSEL field LSB position
13445 #define RIU_RXSTATECCA20SSEL_LSB 16
13446 /// RXSTATECCA20SSEL field width
13447 #define RIU_RXSTATECCA20SSEL_WIDTH ((uint32_t)0x0000000B)
13448 /// RXSTATECCA20PSEL field mask
13449 #define RIU_RXSTATECCA20PSEL_MASK ((uint32_t)0x000007FF)
13450 /// RXSTATECCA20PSEL field LSB position
13451 #define RIU_RXSTATECCA20PSEL_LSB 0
13452 /// RXSTATECCA20PSEL field width
13453 #define RIU_RXSTATECCA20PSEL_WIDTH ((uint32_t)0x0000000B)
13454
13455 /// RXSTATECCA20SSEL field reset value
13456 #define RIU_RXSTATECCA20SSEL_RST 0xD4
13457 /// RXSTATECCA20PSEL field reset value
13458 #define RIU_RXSTATECCA20PSEL_RST 0x6FE
13459
13460 /**
13461 * @brief Constructs a value for the RWNXAGCCCASTATE0 register given values for its fields
13462 * and writes the value to the register.
13463 *
13464 * @param[in] rxstatecca20ssel - The value to use for the RXSTATECCA20SSEL field.
13465 * @param[in] rxstatecca20psel - The value to use for the RXSTATECCA20PSEL field.
13466 */
riu_rwnxagcccastate0_pack(uint16_t rxstatecca20ssel,uint16_t rxstatecca20psel)13467 __INLINE void riu_rwnxagcccastate0_pack(uint16_t rxstatecca20ssel, uint16_t rxstatecca20psel)
13468 {
13469 PLATFORM_REG_WRITE(RIU_RWNXAGCCCASTATE0_ADDR, ((uint32_t)rxstatecca20ssel << 16) | ((uint32_t)rxstatecca20psel << 0));
13470 }
13471
13472 /**
13473 * @brief Unpacks RWNXAGCCCASTATE0's fields from current value of the RWNXAGCCCASTATE0 register.
13474 *
13475 * Reads the RWNXAGCCCASTATE0 register and populates all the _field variables with the corresponding
13476 * values from the register.
13477 *
13478 * @param[out] rxstatecca20ssel - Will be populated with the current value of this field from the register.
13479 * @param[out] rxstatecca20psel - Will be populated with the current value of this field from the register.
13480 */
riu_rwnxagcccastate0_unpack(uint16_t * rxstatecca20ssel,uint16_t * rxstatecca20psel)13481 __INLINE void riu_rwnxagcccastate0_unpack(uint16_t* rxstatecca20ssel, uint16_t* rxstatecca20psel)
13482 {
13483 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCASTATE0_ADDR);
13484
13485 *rxstatecca20ssel = (localVal & ((uint32_t)0x07FF0000)) >> 16;
13486 *rxstatecca20psel = (localVal & ((uint32_t)0x000007FF)) >> 0;
13487 }
13488
13489 /**
13490 * @brief Returns the current value of the RXSTATECCA20SSEL field in the RWNXAGCCCASTATE0 register.
13491 *
13492 * The RWNXAGCCCASTATE0 register will be read and the RXSTATECCA20SSEL field's value will be returned.
13493 *
13494 * @return The current value of the RXSTATECCA20SSEL field in the RWNXAGCCCASTATE0 register.
13495 */
riu_rxstatecca20ssel_getf(void)13496 __INLINE uint16_t riu_rxstatecca20ssel_getf(void)
13497 {
13498 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCASTATE0_ADDR);
13499 return ((localVal & ((uint32_t)0x07FF0000)) >> 16);
13500 }
13501
13502 /**
13503 * @brief Sets the RXSTATECCA20SSEL field of the RWNXAGCCCASTATE0 register.
13504 *
13505 * The RWNXAGCCCASTATE0 register will be read, modified to contain the new field value, and written.
13506 *
13507 * @param[in] rxstatecca20ssel - The value to set the field to.
13508 */
riu_rxstatecca20ssel_setf(uint16_t rxstatecca20ssel)13509 __INLINE void riu_rxstatecca20ssel_setf(uint16_t rxstatecca20ssel)
13510 {
13511 PLATFORM_REG_WRITE(RIU_RWNXAGCCCASTATE0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCASTATE0_ADDR) & ~((uint32_t)0x07FF0000)) | ((uint32_t)rxstatecca20ssel << 16));
13512 }
13513
13514 /**
13515 * @brief Returns the current value of the RXSTATECCA20PSEL field in the RWNXAGCCCASTATE0 register.
13516 *
13517 * The RWNXAGCCCASTATE0 register will be read and the RXSTATECCA20PSEL field's value will be returned.
13518 *
13519 * @return The current value of the RXSTATECCA20PSEL field in the RWNXAGCCCASTATE0 register.
13520 */
riu_rxstatecca20psel_getf(void)13521 __INLINE uint16_t riu_rxstatecca20psel_getf(void)
13522 {
13523 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCASTATE0_ADDR);
13524 return ((localVal & ((uint32_t)0x000007FF)) >> 0);
13525 }
13526
13527 /**
13528 * @brief Sets the RXSTATECCA20PSEL field of the RWNXAGCCCASTATE0 register.
13529 *
13530 * The RWNXAGCCCASTATE0 register will be read, modified to contain the new field value, and written.
13531 *
13532 * @param[in] rxstatecca20psel - The value to set the field to.
13533 */
riu_rxstatecca20psel_setf(uint16_t rxstatecca20psel)13534 __INLINE void riu_rxstatecca20psel_setf(uint16_t rxstatecca20psel)
13535 {
13536 PLATFORM_REG_WRITE(RIU_RWNXAGCCCASTATE0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCASTATE0_ADDR) & ~((uint32_t)0x000007FF)) | ((uint32_t)rxstatecca20psel << 0));
13537 }
13538
13539 /// @}
13540
13541 /**
13542 * @name RWNXAGCCCASTATE1 register definitions
13543 * <table>
13544 * <caption id="RWNXAGCCCASTATE1_BF">RWNXAGCCCASTATE1 bitfields</caption>
13545 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
13546 * <tr><td>10:00 <td> RXSTATECCA40SSEL <td>R <td>R/W <td>0x80
13547 * </table>
13548 *
13549 * @{
13550 */
13551
13552 /// Address of the RWNXAGCCCASTATE1 register
13553 #define RIU_RWNXAGCCCASTATE1_ADDR 0x4033B3B8
13554 /// Offset of the RWNXAGCCCASTATE1 register from the base address
13555 #define RIU_RWNXAGCCCASTATE1_OFFSET 0x000003B8
13556 /// Index of the RWNXAGCCCASTATE1 register
13557 #define RIU_RWNXAGCCCASTATE1_INDEX 0x000000EE
13558 /// Reset value of the RWNXAGCCCASTATE1 register
13559 #define RIU_RWNXAGCCCASTATE1_RESET 0x00000080
13560
13561 /**
13562 * @brief Returns the current value of the RWNXAGCCCASTATE1 register.
13563 * The RWNXAGCCCASTATE1 register will be read and its value returned.
13564 * @return The current value of the RWNXAGCCCASTATE1 register.
13565 */
riu_rwnxagcccastate1_get(void)13566 __INLINE uint32_t riu_rwnxagcccastate1_get(void)
13567 {
13568 return PLATFORM_REG_READ(RIU_RWNXAGCCCASTATE1_ADDR);
13569 }
13570
13571 /**
13572 * @brief Sets the RWNXAGCCCASTATE1 register to a value.
13573 * The RWNXAGCCCASTATE1 register will be written.
13574 * @param value - The value to write.
13575 */
riu_rwnxagcccastate1_set(uint32_t value)13576 __INLINE void riu_rwnxagcccastate1_set(uint32_t value)
13577 {
13578 PLATFORM_REG_WRITE(RIU_RWNXAGCCCASTATE1_ADDR, value);
13579 }
13580
13581 // field definitions
13582 /// RXSTATECCA40SSEL field mask
13583 #define RIU_RXSTATECCA40SSEL_MASK ((uint32_t)0x000007FF)
13584 /// RXSTATECCA40SSEL field LSB position
13585 #define RIU_RXSTATECCA40SSEL_LSB 0
13586 /// RXSTATECCA40SSEL field width
13587 #define RIU_RXSTATECCA40SSEL_WIDTH ((uint32_t)0x0000000B)
13588
13589 /// RXSTATECCA40SSEL field reset value
13590 #define RIU_RXSTATECCA40SSEL_RST 0x80
13591
13592 /**
13593 * @brief Returns the current value of the RXSTATECCA40SSEL field in the RWNXAGCCCASTATE1 register.
13594 *
13595 * The RWNXAGCCCASTATE1 register will be read and the RXSTATECCA40SSEL field's value will be returned.
13596 *
13597 * @return The current value of the RXSTATECCA40SSEL field in the RWNXAGCCCASTATE1 register.
13598 */
riu_rxstatecca40ssel_getf(void)13599 __INLINE uint16_t riu_rxstatecca40ssel_getf(void)
13600 {
13601 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCASTATE1_ADDR);
13602 return (localVal >> 0);
13603 }
13604
13605 /**
13606 * @brief Sets the RXSTATECCA40SSEL field of the RWNXAGCCCASTATE1 register.
13607 *
13608 * The RWNXAGCCCASTATE1 register will be read, modified to contain the new field value, and written.
13609 *
13610 * @param[in] rxstatecca40ssel - The value to set the field to.
13611 */
riu_rxstatecca40ssel_setf(uint16_t rxstatecca40ssel)13612 __INLINE void riu_rxstatecca40ssel_setf(uint16_t rxstatecca40ssel)
13613 {
13614 PLATFORM_REG_WRITE(RIU_RWNXAGCCCASTATE1_ADDR, (uint32_t)rxstatecca40ssel << 0);
13615 }
13616
13617 /// @}
13618
13619 /**
13620 * @name RWNXAGCCCATIMEOUT register definitions
13621 * <table>
13622 * <caption id="RWNXAGCCCATIMEOUT_BF">RWNXAGCCCATIMEOUT bitfields</caption>
13623 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
13624 * <tr><td>31:00 <td> CCATIMEOUT <td>R <td>R/W <td>0x88B80
13625 * </table>
13626 *
13627 * @{
13628 */
13629
13630 /// Address of the RWNXAGCCCATIMEOUT register
13631 #define RIU_RWNXAGCCCATIMEOUT_ADDR 0x4033B3BC
13632 /// Offset of the RWNXAGCCCATIMEOUT register from the base address
13633 #define RIU_RWNXAGCCCATIMEOUT_OFFSET 0x000003BC
13634 /// Index of the RWNXAGCCCATIMEOUT register
13635 #define RIU_RWNXAGCCCATIMEOUT_INDEX 0x000000EF
13636 /// Reset value of the RWNXAGCCCATIMEOUT register
13637 #define RIU_RWNXAGCCCATIMEOUT_RESET 0x00088B80
13638
13639 /**
13640 * @brief Returns the current value of the RWNXAGCCCATIMEOUT register.
13641 * The RWNXAGCCCATIMEOUT register will be read and its value returned.
13642 * @return The current value of the RWNXAGCCCATIMEOUT register.
13643 */
riu_rwnxagcccatimeout_get(void)13644 __INLINE uint32_t riu_rwnxagcccatimeout_get(void)
13645 {
13646 return PLATFORM_REG_READ(RIU_RWNXAGCCCATIMEOUT_ADDR);
13647 }
13648
13649 /**
13650 * @brief Sets the RWNXAGCCCATIMEOUT register to a value.
13651 * The RWNXAGCCCATIMEOUT register will be written.
13652 * @param value - The value to write.
13653 */
riu_rwnxagcccatimeout_set(uint32_t value)13654 __INLINE void riu_rwnxagcccatimeout_set(uint32_t value)
13655 {
13656 PLATFORM_REG_WRITE(RIU_RWNXAGCCCATIMEOUT_ADDR, value);
13657 }
13658
13659 // field definitions
13660 /// CCATIMEOUT field mask
13661 #define RIU_CCATIMEOUT_MASK ((uint32_t)0xFFFFFFFF)
13662 /// CCATIMEOUT field LSB position
13663 #define RIU_CCATIMEOUT_LSB 0
13664 /// CCATIMEOUT field width
13665 #define RIU_CCATIMEOUT_WIDTH ((uint32_t)0x00000020)
13666
13667 /// CCATIMEOUT field reset value
13668 #define RIU_CCATIMEOUT_RST 0x88B80
13669
13670 /**
13671 * @brief Returns the current value of the CCATIMEOUT field in the RWNXAGCCCATIMEOUT register.
13672 *
13673 * The RWNXAGCCCATIMEOUT register will be read and the CCATIMEOUT field's value will be returned.
13674 *
13675 * @return The current value of the CCATIMEOUT field in the RWNXAGCCCATIMEOUT register.
13676 */
riu_ccatimeout_getf(void)13677 __INLINE uint32_t riu_ccatimeout_getf(void)
13678 {
13679 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCATIMEOUT_ADDR);
13680 return (localVal >> 0);
13681 }
13682
13683 /**
13684 * @brief Sets the CCATIMEOUT field of the RWNXAGCCCATIMEOUT register.
13685 *
13686 * The RWNXAGCCCATIMEOUT register will be read, modified to contain the new field value, and written.
13687 *
13688 * @param[in] ccatimeout - The value to set the field to.
13689 */
riu_ccatimeout_setf(uint32_t ccatimeout)13690 __INLINE void riu_ccatimeout_setf(uint32_t ccatimeout)
13691 {
13692 PLATFORM_REG_WRITE(RIU_RWNXAGCCCATIMEOUT_ADDR, (uint32_t)ccatimeout << 0);
13693 }
13694
13695 /// @}
13696
13697 /**
13698 * @name RWNXAGCCOMP0 register definitions
13699 * <table>
13700 * <caption id="RWNXAGCCOMP0_BF">RWNXAGCCOMP0 bitfields</caption>
13701 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
13702 * <tr><td>31:24 <td>IDINBDPOWGAPDNQDBM <td>R <td>R/W <td>0x28
13703 * <tr><td>23:16 <td>IDINBDPOWGAPUPQDBM <td>R <td>R/W <td>0x28
13704 * <tr><td>15:08 <td> INBDPOWINFTHRDBM <td>R <td>R/W <td>0xB0
13705 * <tr><td>07:00 <td> INBDPOWSUPTHRDBM <td>R <td>R/W <td>0xC4
13706 * </table>
13707 *
13708 * @{
13709 */
13710
13711 /// Address of the RWNXAGCCOMP0 register
13712 #define RIU_RWNXAGCCOMP0_ADDR 0x4033B3C0
13713 /// Offset of the RWNXAGCCOMP0 register from the base address
13714 #define RIU_RWNXAGCCOMP0_OFFSET 0x000003C0
13715 /// Index of the RWNXAGCCOMP0 register
13716 #define RIU_RWNXAGCCOMP0_INDEX 0x000000F0
13717 /// Reset value of the RWNXAGCCOMP0 register
13718 #define RIU_RWNXAGCCOMP0_RESET 0x2828B0C4
13719
13720 /**
13721 * @brief Returns the current value of the RWNXAGCCOMP0 register.
13722 * The RWNXAGCCOMP0 register will be read and its value returned.
13723 * @return The current value of the RWNXAGCCOMP0 register.
13724 */
riu_rwnxagccomp0_get(void)13725 __INLINE uint32_t riu_rwnxagccomp0_get(void)
13726 {
13727 return PLATFORM_REG_READ(RIU_RWNXAGCCOMP0_ADDR);
13728 }
13729
13730 /**
13731 * @brief Sets the RWNXAGCCOMP0 register to a value.
13732 * The RWNXAGCCOMP0 register will be written.
13733 * @param value - The value to write.
13734 */
riu_rwnxagccomp0_set(uint32_t value)13735 __INLINE void riu_rwnxagccomp0_set(uint32_t value)
13736 {
13737 PLATFORM_REG_WRITE(RIU_RWNXAGCCOMP0_ADDR, value);
13738 }
13739
13740 // field definitions
13741 /// IDINBDPOWGAPDNQDBM field mask
13742 #define RIU_IDINBDPOWGAPDNQDBM_MASK ((uint32_t)0xFF000000)
13743 /// IDINBDPOWGAPDNQDBM field LSB position
13744 #define RIU_IDINBDPOWGAPDNQDBM_LSB 24
13745 /// IDINBDPOWGAPDNQDBM field width
13746 #define RIU_IDINBDPOWGAPDNQDBM_WIDTH ((uint32_t)0x00000008)
13747 /// IDINBDPOWGAPUPQDBM field mask
13748 #define RIU_IDINBDPOWGAPUPQDBM_MASK ((uint32_t)0x00FF0000)
13749 /// IDINBDPOWGAPUPQDBM field LSB position
13750 #define RIU_IDINBDPOWGAPUPQDBM_LSB 16
13751 /// IDINBDPOWGAPUPQDBM field width
13752 #define RIU_IDINBDPOWGAPUPQDBM_WIDTH ((uint32_t)0x00000008)
13753 /// INBDPOWINFTHRDBM field mask
13754 #define RIU_INBDPOWINFTHRDBM_MASK ((uint32_t)0x0000FF00)
13755 /// INBDPOWINFTHRDBM field LSB position
13756 #define RIU_INBDPOWINFTHRDBM_LSB 8
13757 /// INBDPOWINFTHRDBM field width
13758 #define RIU_INBDPOWINFTHRDBM_WIDTH ((uint32_t)0x00000008)
13759 /// INBDPOWSUPTHRDBM field mask
13760 #define RIU_INBDPOWSUPTHRDBM_MASK ((uint32_t)0x000000FF)
13761 /// INBDPOWSUPTHRDBM field LSB position
13762 #define RIU_INBDPOWSUPTHRDBM_LSB 0
13763 /// INBDPOWSUPTHRDBM field width
13764 #define RIU_INBDPOWSUPTHRDBM_WIDTH ((uint32_t)0x00000008)
13765
13766 /// IDINBDPOWGAPDNQDBM field reset value
13767 #define RIU_IDINBDPOWGAPDNQDBM_RST 0x28
13768 /// IDINBDPOWGAPUPQDBM field reset value
13769 #define RIU_IDINBDPOWGAPUPQDBM_RST 0x28
13770 /// INBDPOWINFTHRDBM field reset value
13771 #define RIU_INBDPOWINFTHRDBM_RST 0xB0
13772 /// INBDPOWSUPTHRDBM field reset value
13773 #define RIU_INBDPOWSUPTHRDBM_RST 0xC4
13774
13775 /**
13776 * @brief Constructs a value for the RWNXAGCCOMP0 register given values for its fields
13777 * and writes the value to the register.
13778 *
13779 * @param[in] idinbdpowgapdnqdbm - The value to use for the IDINBDPOWGAPDNQDBM field.
13780 * @param[in] idinbdpowgapupqdbm - The value to use for the IDINBDPOWGAPUPQDBM field.
13781 * @param[in] inbdpowinfthrdbm - The value to use for the INBDPOWINFTHRDBM field.
13782 * @param[in] inbdpowsupthrdbm - The value to use for the INBDPOWSUPTHRDBM field.
13783 */
riu_rwnxagccomp0_pack(uint8_t idinbdpowgapdnqdbm,uint8_t idinbdpowgapupqdbm,uint8_t inbdpowinfthrdbm,uint8_t inbdpowsupthrdbm)13784 __INLINE void riu_rwnxagccomp0_pack(uint8_t idinbdpowgapdnqdbm, uint8_t idinbdpowgapupqdbm, uint8_t inbdpowinfthrdbm, uint8_t inbdpowsupthrdbm)
13785 {
13786 PLATFORM_REG_WRITE(RIU_RWNXAGCCOMP0_ADDR, ((uint32_t)idinbdpowgapdnqdbm << 24) | ((uint32_t)idinbdpowgapupqdbm << 16) | ((uint32_t)inbdpowinfthrdbm << 8) | ((uint32_t)inbdpowsupthrdbm << 0));
13787 }
13788
13789 /**
13790 * @brief Unpacks RWNXAGCCOMP0's fields from current value of the RWNXAGCCOMP0 register.
13791 *
13792 * Reads the RWNXAGCCOMP0 register and populates all the _field variables with the corresponding
13793 * values from the register.
13794 *
13795 * @param[out] idinbdpowgapdnqdbm - Will be populated with the current value of this field from the register.
13796 * @param[out] idinbdpowgapupqdbm - Will be populated with the current value of this field from the register.
13797 * @param[out] inbdpowinfthrdbm - Will be populated with the current value of this field from the register.
13798 * @param[out] inbdpowsupthrdbm - Will be populated with the current value of this field from the register.
13799 */
riu_rwnxagccomp0_unpack(uint8_t * idinbdpowgapdnqdbm,uint8_t * idinbdpowgapupqdbm,uint8_t * inbdpowinfthrdbm,uint8_t * inbdpowsupthrdbm)13800 __INLINE void riu_rwnxagccomp0_unpack(uint8_t* idinbdpowgapdnqdbm, uint8_t* idinbdpowgapupqdbm, uint8_t* inbdpowinfthrdbm, uint8_t* inbdpowsupthrdbm)
13801 {
13802 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCOMP0_ADDR);
13803
13804 *idinbdpowgapdnqdbm = (localVal & ((uint32_t)0xFF000000)) >> 24;
13805 *idinbdpowgapupqdbm = (localVal & ((uint32_t)0x00FF0000)) >> 16;
13806 *inbdpowinfthrdbm = (localVal & ((uint32_t)0x0000FF00)) >> 8;
13807 *inbdpowsupthrdbm = (localVal & ((uint32_t)0x000000FF)) >> 0;
13808 }
13809
13810 /**
13811 * @brief Returns the current value of the IDINBDPOWGAPDNQDBM field in the RWNXAGCCOMP0 register.
13812 *
13813 * The RWNXAGCCOMP0 register will be read and the IDINBDPOWGAPDNQDBM field's value will be returned.
13814 *
13815 * @return The current value of the IDINBDPOWGAPDNQDBM field in the RWNXAGCCOMP0 register.
13816 */
riu_idinbdpowgapdnqdbm_getf(void)13817 __INLINE uint8_t riu_idinbdpowgapdnqdbm_getf(void)
13818 {
13819 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCOMP0_ADDR);
13820 return ((localVal & ((uint32_t)0xFF000000)) >> 24);
13821 }
13822
13823 /**
13824 * @brief Sets the IDINBDPOWGAPDNQDBM field of the RWNXAGCCOMP0 register.
13825 *
13826 * The RWNXAGCCOMP0 register will be read, modified to contain the new field value, and written.
13827 *
13828 * @param[in] idinbdpowgapdnqdbm - The value to set the field to.
13829 */
riu_idinbdpowgapdnqdbm_setf(uint8_t idinbdpowgapdnqdbm)13830 __INLINE void riu_idinbdpowgapdnqdbm_setf(uint8_t idinbdpowgapdnqdbm)
13831 {
13832 PLATFORM_REG_WRITE(RIU_RWNXAGCCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCOMP0_ADDR) & ~((uint32_t)0xFF000000)) | ((uint32_t)idinbdpowgapdnqdbm << 24));
13833 }
13834
13835 /**
13836 * @brief Returns the current value of the IDINBDPOWGAPUPQDBM field in the RWNXAGCCOMP0 register.
13837 *
13838 * The RWNXAGCCOMP0 register will be read and the IDINBDPOWGAPUPQDBM field's value will be returned.
13839 *
13840 * @return The current value of the IDINBDPOWGAPUPQDBM field in the RWNXAGCCOMP0 register.
13841 */
riu_idinbdpowgapupqdbm_getf(void)13842 __INLINE uint8_t riu_idinbdpowgapupqdbm_getf(void)
13843 {
13844 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCOMP0_ADDR);
13845 return ((localVal & ((uint32_t)0x00FF0000)) >> 16);
13846 }
13847
13848 /**
13849 * @brief Sets the IDINBDPOWGAPUPQDBM field of the RWNXAGCCOMP0 register.
13850 *
13851 * The RWNXAGCCOMP0 register will be read, modified to contain the new field value, and written.
13852 *
13853 * @param[in] idinbdpowgapupqdbm - The value to set the field to.
13854 */
riu_idinbdpowgapupqdbm_setf(uint8_t idinbdpowgapupqdbm)13855 __INLINE void riu_idinbdpowgapupqdbm_setf(uint8_t idinbdpowgapupqdbm)
13856 {
13857 PLATFORM_REG_WRITE(RIU_RWNXAGCCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCOMP0_ADDR) & ~((uint32_t)0x00FF0000)) | ((uint32_t)idinbdpowgapupqdbm << 16));
13858 }
13859
13860 /**
13861 * @brief Returns the current value of the INBDPOWINFTHRDBM field in the RWNXAGCCOMP0 register.
13862 *
13863 * The RWNXAGCCOMP0 register will be read and the INBDPOWINFTHRDBM field's value will be returned.
13864 *
13865 * @return The current value of the INBDPOWINFTHRDBM field in the RWNXAGCCOMP0 register.
13866 */
riu_inbdpowinfthrdbm_getf(void)13867 __INLINE uint8_t riu_inbdpowinfthrdbm_getf(void)
13868 {
13869 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCOMP0_ADDR);
13870 return ((localVal & ((uint32_t)0x0000FF00)) >> 8);
13871 }
13872
13873 /**
13874 * @brief Sets the INBDPOWINFTHRDBM field of the RWNXAGCCOMP0 register.
13875 *
13876 * The RWNXAGCCOMP0 register will be read, modified to contain the new field value, and written.
13877 *
13878 * @param[in] inbdpowinfthrdbm - The value to set the field to.
13879 */
riu_inbdpowinfthrdbm_setf(uint8_t inbdpowinfthrdbm)13880 __INLINE void riu_inbdpowinfthrdbm_setf(uint8_t inbdpowinfthrdbm)
13881 {
13882 PLATFORM_REG_WRITE(RIU_RWNXAGCCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCOMP0_ADDR) & ~((uint32_t)0x0000FF00)) | ((uint32_t)inbdpowinfthrdbm << 8));
13883 }
13884
13885 /**
13886 * @brief Returns the current value of the INBDPOWSUPTHRDBM field in the RWNXAGCCOMP0 register.
13887 *
13888 * The RWNXAGCCOMP0 register will be read and the INBDPOWSUPTHRDBM field's value will be returned.
13889 *
13890 * @return The current value of the INBDPOWSUPTHRDBM field in the RWNXAGCCOMP0 register.
13891 */
riu_inbdpowsupthrdbm_getf(void)13892 __INLINE uint8_t riu_inbdpowsupthrdbm_getf(void)
13893 {
13894 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCOMP0_ADDR);
13895 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
13896 }
13897
13898 /**
13899 * @brief Sets the INBDPOWSUPTHRDBM field of the RWNXAGCCOMP0 register.
13900 *
13901 * The RWNXAGCCOMP0 register will be read, modified to contain the new field value, and written.
13902 *
13903 * @param[in] inbdpowsupthrdbm - The value to set the field to.
13904 */
riu_inbdpowsupthrdbm_setf(uint8_t inbdpowsupthrdbm)13905 __INLINE void riu_inbdpowsupthrdbm_setf(uint8_t inbdpowsupthrdbm)
13906 {
13907 PLATFORM_REG_WRITE(RIU_RWNXAGCCOMP0_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCOMP0_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)inbdpowsupthrdbm << 0));
13908 }
13909
13910 /// @}
13911
13912 /**
13913 * @name RWNXAGCCOMP1 register definitions
13914 * <table>
13915 * <caption id="RWNXAGCCOMP1_BF">RWNXAGCCOMP1 bitfields</caption>
13916 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
13917 * <tr><td>31:24 <td> ADCPOWINFTHRDBV <td>R <td>R/W <td>0xDD
13918 * <tr><td>23:16 <td> ADCPOWSUPTHRDBV <td>R <td>R/W <td>0xDB
13919 * <tr><td>15:08 <td> ADCPOWINFTHRDBM <td>R <td>R/W <td>0xBF
13920 * <tr><td>07:00 <td> ADCPOWSUPTHRDBM <td>R <td>R/W <td>0xBE
13921 * </table>
13922 *
13923 * @{
13924 */
13925
13926 /// Address of the RWNXAGCCOMP1 register
13927 #define RIU_RWNXAGCCOMP1_ADDR 0x4033B3C4
13928 /// Offset of the RWNXAGCCOMP1 register from the base address
13929 #define RIU_RWNXAGCCOMP1_OFFSET 0x000003C4
13930 /// Index of the RWNXAGCCOMP1 register
13931 #define RIU_RWNXAGCCOMP1_INDEX 0x000000F1
13932 /// Reset value of the RWNXAGCCOMP1 register
13933 #define RIU_RWNXAGCCOMP1_RESET 0xDDDBBFBE
13934
13935 /**
13936 * @brief Returns the current value of the RWNXAGCCOMP1 register.
13937 * The RWNXAGCCOMP1 register will be read and its value returned.
13938 * @return The current value of the RWNXAGCCOMP1 register.
13939 */
riu_rwnxagccomp1_get(void)13940 __INLINE uint32_t riu_rwnxagccomp1_get(void)
13941 {
13942 return PLATFORM_REG_READ(RIU_RWNXAGCCOMP1_ADDR);
13943 }
13944
13945 /**
13946 * @brief Sets the RWNXAGCCOMP1 register to a value.
13947 * The RWNXAGCCOMP1 register will be written.
13948 * @param value - The value to write.
13949 */
riu_rwnxagccomp1_set(uint32_t value)13950 __INLINE void riu_rwnxagccomp1_set(uint32_t value)
13951 {
13952 PLATFORM_REG_WRITE(RIU_RWNXAGCCOMP1_ADDR, value);
13953 }
13954
13955 // field definitions
13956 /// ADCPOWINFTHRDBV field mask
13957 #define RIU_ADCPOWINFTHRDBV_MASK ((uint32_t)0xFF000000)
13958 /// ADCPOWINFTHRDBV field LSB position
13959 #define RIU_ADCPOWINFTHRDBV_LSB 24
13960 /// ADCPOWINFTHRDBV field width
13961 #define RIU_ADCPOWINFTHRDBV_WIDTH ((uint32_t)0x00000008)
13962 /// ADCPOWSUPTHRDBV field mask
13963 #define RIU_ADCPOWSUPTHRDBV_MASK ((uint32_t)0x00FF0000)
13964 /// ADCPOWSUPTHRDBV field LSB position
13965 #define RIU_ADCPOWSUPTHRDBV_LSB 16
13966 /// ADCPOWSUPTHRDBV field width
13967 #define RIU_ADCPOWSUPTHRDBV_WIDTH ((uint32_t)0x00000008)
13968 /// ADCPOWINFTHRDBM field mask
13969 #define RIU_ADCPOWINFTHRDBM_MASK ((uint32_t)0x0000FF00)
13970 /// ADCPOWINFTHRDBM field LSB position
13971 #define RIU_ADCPOWINFTHRDBM_LSB 8
13972 /// ADCPOWINFTHRDBM field width
13973 #define RIU_ADCPOWINFTHRDBM_WIDTH ((uint32_t)0x00000008)
13974 /// ADCPOWSUPTHRDBM field mask
13975 #define RIU_ADCPOWSUPTHRDBM_MASK ((uint32_t)0x000000FF)
13976 /// ADCPOWSUPTHRDBM field LSB position
13977 #define RIU_ADCPOWSUPTHRDBM_LSB 0
13978 /// ADCPOWSUPTHRDBM field width
13979 #define RIU_ADCPOWSUPTHRDBM_WIDTH ((uint32_t)0x00000008)
13980
13981 /// ADCPOWINFTHRDBV field reset value
13982 #define RIU_ADCPOWINFTHRDBV_RST 0xDD
13983 /// ADCPOWSUPTHRDBV field reset value
13984 #define RIU_ADCPOWSUPTHRDBV_RST 0xDB
13985 /// ADCPOWINFTHRDBM field reset value
13986 #define RIU_ADCPOWINFTHRDBM_RST 0xBF
13987 /// ADCPOWSUPTHRDBM field reset value
13988 #define RIU_ADCPOWSUPTHRDBM_RST 0xBE
13989
13990 /**
13991 * @brief Constructs a value for the RWNXAGCCOMP1 register given values for its fields
13992 * and writes the value to the register.
13993 *
13994 * @param[in] adcpowinfthrdbv - The value to use for the ADCPOWINFTHRDBV field.
13995 * @param[in] adcpowsupthrdbv - The value to use for the ADCPOWSUPTHRDBV field.
13996 * @param[in] adcpowinfthrdbm - The value to use for the ADCPOWINFTHRDBM field.
13997 * @param[in] adcpowsupthrdbm - The value to use for the ADCPOWSUPTHRDBM field.
13998 */
riu_rwnxagccomp1_pack(uint8_t adcpowinfthrdbv,uint8_t adcpowsupthrdbv,uint8_t adcpowinfthrdbm,uint8_t adcpowsupthrdbm)13999 __INLINE void riu_rwnxagccomp1_pack(uint8_t adcpowinfthrdbv, uint8_t adcpowsupthrdbv, uint8_t adcpowinfthrdbm, uint8_t adcpowsupthrdbm)
14000 {
14001 PLATFORM_REG_WRITE(RIU_RWNXAGCCOMP1_ADDR, ((uint32_t)adcpowinfthrdbv << 24) | ((uint32_t)adcpowsupthrdbv << 16) | ((uint32_t)adcpowinfthrdbm << 8) | ((uint32_t)adcpowsupthrdbm << 0));
14002 }
14003
14004 /**
14005 * @brief Unpacks RWNXAGCCOMP1's fields from current value of the RWNXAGCCOMP1 register.
14006 *
14007 * Reads the RWNXAGCCOMP1 register and populates all the _field variables with the corresponding
14008 * values from the register.
14009 *
14010 * @param[out] adcpowinfthrdbv - Will be populated with the current value of this field from the register.
14011 * @param[out] adcpowsupthrdbv - Will be populated with the current value of this field from the register.
14012 * @param[out] adcpowinfthrdbm - Will be populated with the current value of this field from the register.
14013 * @param[out] adcpowsupthrdbm - Will be populated with the current value of this field from the register.
14014 */
riu_rwnxagccomp1_unpack(uint8_t * adcpowinfthrdbv,uint8_t * adcpowsupthrdbv,uint8_t * adcpowinfthrdbm,uint8_t * adcpowsupthrdbm)14015 __INLINE void riu_rwnxagccomp1_unpack(uint8_t* adcpowinfthrdbv, uint8_t* adcpowsupthrdbv, uint8_t* adcpowinfthrdbm, uint8_t* adcpowsupthrdbm)
14016 {
14017 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCOMP1_ADDR);
14018
14019 *adcpowinfthrdbv = (localVal & ((uint32_t)0xFF000000)) >> 24;
14020 *adcpowsupthrdbv = (localVal & ((uint32_t)0x00FF0000)) >> 16;
14021 *adcpowinfthrdbm = (localVal & ((uint32_t)0x0000FF00)) >> 8;
14022 *adcpowsupthrdbm = (localVal & ((uint32_t)0x000000FF)) >> 0;
14023 }
14024
14025 /**
14026 * @brief Returns the current value of the ADCPOWINFTHRDBV field in the RWNXAGCCOMP1 register.
14027 *
14028 * The RWNXAGCCOMP1 register will be read and the ADCPOWINFTHRDBV field's value will be returned.
14029 *
14030 * @return The current value of the ADCPOWINFTHRDBV field in the RWNXAGCCOMP1 register.
14031 */
riu_adcpowinfthrdbv_getf(void)14032 __INLINE uint8_t riu_adcpowinfthrdbv_getf(void)
14033 {
14034 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCOMP1_ADDR);
14035 return ((localVal & ((uint32_t)0xFF000000)) >> 24);
14036 }
14037
14038 /**
14039 * @brief Sets the ADCPOWINFTHRDBV field of the RWNXAGCCOMP1 register.
14040 *
14041 * The RWNXAGCCOMP1 register will be read, modified to contain the new field value, and written.
14042 *
14043 * @param[in] adcpowinfthrdbv - The value to set the field to.
14044 */
riu_adcpowinfthrdbv_setf(uint8_t adcpowinfthrdbv)14045 __INLINE void riu_adcpowinfthrdbv_setf(uint8_t adcpowinfthrdbv)
14046 {
14047 PLATFORM_REG_WRITE(RIU_RWNXAGCCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCOMP1_ADDR) & ~((uint32_t)0xFF000000)) | ((uint32_t)adcpowinfthrdbv << 24));
14048 }
14049
14050 /**
14051 * @brief Returns the current value of the ADCPOWSUPTHRDBV field in the RWNXAGCCOMP1 register.
14052 *
14053 * The RWNXAGCCOMP1 register will be read and the ADCPOWSUPTHRDBV field's value will be returned.
14054 *
14055 * @return The current value of the ADCPOWSUPTHRDBV field in the RWNXAGCCOMP1 register.
14056 */
riu_adcpowsupthrdbv_getf(void)14057 __INLINE uint8_t riu_adcpowsupthrdbv_getf(void)
14058 {
14059 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCOMP1_ADDR);
14060 return ((localVal & ((uint32_t)0x00FF0000)) >> 16);
14061 }
14062
14063 /**
14064 * @brief Sets the ADCPOWSUPTHRDBV field of the RWNXAGCCOMP1 register.
14065 *
14066 * The RWNXAGCCOMP1 register will be read, modified to contain the new field value, and written.
14067 *
14068 * @param[in] adcpowsupthrdbv - The value to set the field to.
14069 */
riu_adcpowsupthrdbv_setf(uint8_t adcpowsupthrdbv)14070 __INLINE void riu_adcpowsupthrdbv_setf(uint8_t adcpowsupthrdbv)
14071 {
14072 PLATFORM_REG_WRITE(RIU_RWNXAGCCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCOMP1_ADDR) & ~((uint32_t)0x00FF0000)) | ((uint32_t)adcpowsupthrdbv << 16));
14073 }
14074
14075 /**
14076 * @brief Returns the current value of the ADCPOWINFTHRDBM field in the RWNXAGCCOMP1 register.
14077 *
14078 * The RWNXAGCCOMP1 register will be read and the ADCPOWINFTHRDBM field's value will be returned.
14079 *
14080 * @return The current value of the ADCPOWINFTHRDBM field in the RWNXAGCCOMP1 register.
14081 */
riu_adcpowinfthrdbm_getf(void)14082 __INLINE uint8_t riu_adcpowinfthrdbm_getf(void)
14083 {
14084 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCOMP1_ADDR);
14085 return ((localVal & ((uint32_t)0x0000FF00)) >> 8);
14086 }
14087
14088 /**
14089 * @brief Sets the ADCPOWINFTHRDBM field of the RWNXAGCCOMP1 register.
14090 *
14091 * The RWNXAGCCOMP1 register will be read, modified to contain the new field value, and written.
14092 *
14093 * @param[in] adcpowinfthrdbm - The value to set the field to.
14094 */
riu_adcpowinfthrdbm_setf(uint8_t adcpowinfthrdbm)14095 __INLINE void riu_adcpowinfthrdbm_setf(uint8_t adcpowinfthrdbm)
14096 {
14097 PLATFORM_REG_WRITE(RIU_RWNXAGCCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCOMP1_ADDR) & ~((uint32_t)0x0000FF00)) | ((uint32_t)adcpowinfthrdbm << 8));
14098 }
14099
14100 /**
14101 * @brief Returns the current value of the ADCPOWSUPTHRDBM field in the RWNXAGCCOMP1 register.
14102 *
14103 * The RWNXAGCCOMP1 register will be read and the ADCPOWSUPTHRDBM field's value will be returned.
14104 *
14105 * @return The current value of the ADCPOWSUPTHRDBM field in the RWNXAGCCOMP1 register.
14106 */
riu_adcpowsupthrdbm_getf(void)14107 __INLINE uint8_t riu_adcpowsupthrdbm_getf(void)
14108 {
14109 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCOMP1_ADDR);
14110 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
14111 }
14112
14113 /**
14114 * @brief Sets the ADCPOWSUPTHRDBM field of the RWNXAGCCOMP1 register.
14115 *
14116 * The RWNXAGCCOMP1 register will be read, modified to contain the new field value, and written.
14117 *
14118 * @param[in] adcpowsupthrdbm - The value to set the field to.
14119 */
riu_adcpowsupthrdbm_setf(uint8_t adcpowsupthrdbm)14120 __INLINE void riu_adcpowsupthrdbm_setf(uint8_t adcpowsupthrdbm)
14121 {
14122 PLATFORM_REG_WRITE(RIU_RWNXAGCCOMP1_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCOMP1_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)adcpowsupthrdbm << 0));
14123 }
14124
14125 /// @}
14126
14127 #if RW_RADAR_EN
14128 /**
14129 * @name RWNXAGCRADAR register definitions
14130 * <table>
14131 * <caption id="RWNXAGCRADAR_BF">RWNXAGCRADAR bitfields</caption>
14132 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
14133 * <tr><td>29:28 <td> ANTSELRADAR <td>R <td>R/W <td>0x0
14134 * <tr><td>27:24 <td> FREQSINGGAP <td>R <td>R/W <td>0x0
14135 * <tr><td>23:16 <td> FREQSING <td>R <td>R/W <td>0x0
14136 * <tr><td>11:08 <td> FOMSINGGAP <td>R <td>R/W <td>0x0
14137 * <tr><td>07:00 <td> FOMSING <td>R <td>R/W <td>0x0
14138 * </table>
14139 *
14140 * @{
14141 */
14142
14143 /// Address of the RWNXAGCRADAR register
14144 #define RIU_RWNXAGCRADAR_ADDR 0x4033B3C8
14145 /// Offset of the RWNXAGCRADAR register from the base address
14146 #define RIU_RWNXAGCRADAR_OFFSET 0x000003C8
14147 /// Index of the RWNXAGCRADAR register
14148 #define RIU_RWNXAGCRADAR_INDEX 0x000000F2
14149 /// Reset value of the RWNXAGCRADAR register
14150 #define RIU_RWNXAGCRADAR_RESET 0x00000000
14151
14152 /**
14153 * @brief Returns the current value of the RWNXAGCRADAR register.
14154 * The RWNXAGCRADAR register will be read and its value returned.
14155 * @return The current value of the RWNXAGCRADAR register.
14156 */
riu_rwnxagcradar_get(void)14157 __INLINE uint32_t riu_rwnxagcradar_get(void)
14158 {
14159 return PLATFORM_REG_READ(RIU_RWNXAGCRADAR_ADDR);
14160 }
14161
14162 /**
14163 * @brief Sets the RWNXAGCRADAR register to a value.
14164 * The RWNXAGCRADAR register will be written.
14165 * @param value - The value to write.
14166 */
riu_rwnxagcradar_set(uint32_t value)14167 __INLINE void riu_rwnxagcradar_set(uint32_t value)
14168 {
14169 PLATFORM_REG_WRITE(RIU_RWNXAGCRADAR_ADDR, value);
14170 }
14171
14172 // field definitions
14173 /// ANTSELRADAR field mask
14174 #define RIU_ANTSELRADAR_MASK ((uint32_t)0x30000000)
14175 /// ANTSELRADAR field LSB position
14176 #define RIU_ANTSELRADAR_LSB 28
14177 /// ANTSELRADAR field width
14178 #define RIU_ANTSELRADAR_WIDTH ((uint32_t)0x00000002)
14179 /// FREQSINGGAP field mask
14180 #define RIU_FREQSINGGAP_MASK ((uint32_t)0x0F000000)
14181 /// FREQSINGGAP field LSB position
14182 #define RIU_FREQSINGGAP_LSB 24
14183 /// FREQSINGGAP field width
14184 #define RIU_FREQSINGGAP_WIDTH ((uint32_t)0x00000004)
14185 /// FREQSING field mask
14186 #define RIU_FREQSING_MASK ((uint32_t)0x00FF0000)
14187 /// FREQSING field LSB position
14188 #define RIU_FREQSING_LSB 16
14189 /// FREQSING field width
14190 #define RIU_FREQSING_WIDTH ((uint32_t)0x00000008)
14191 /// FOMSINGGAP field mask
14192 #define RIU_FOMSINGGAP_MASK ((uint32_t)0x00000F00)
14193 /// FOMSINGGAP field LSB position
14194 #define RIU_FOMSINGGAP_LSB 8
14195 /// FOMSINGGAP field width
14196 #define RIU_FOMSINGGAP_WIDTH ((uint32_t)0x00000004)
14197 /// FOMSING field mask
14198 #define RIU_FOMSING_MASK ((uint32_t)0x000000FF)
14199 /// FOMSING field LSB position
14200 #define RIU_FOMSING_LSB 0
14201 /// FOMSING field width
14202 #define RIU_FOMSING_WIDTH ((uint32_t)0x00000008)
14203
14204 /// ANTSELRADAR field reset value
14205 #define RIU_ANTSELRADAR_RST 0x0
14206 /// FREQSINGGAP field reset value
14207 #define RIU_FREQSINGGAP_RST 0x0
14208 /// FREQSING field reset value
14209 #define RIU_FREQSING_RST 0x0
14210 /// FOMSINGGAP field reset value
14211 #define RIU_FOMSINGGAP_RST 0x0
14212 /// FOMSING field reset value
14213 #define RIU_FOMSING_RST 0x0
14214
14215 /**
14216 * @brief Constructs a value for the RWNXAGCRADAR register given values for its fields
14217 * and writes the value to the register.
14218 *
14219 * @param[in] antselradar - The value to use for the ANTSELRADAR field.
14220 * @param[in] freqsinggap - The value to use for the FREQSINGGAP field.
14221 * @param[in] freqsing - The value to use for the FREQSING field.
14222 * @param[in] fomsinggap - The value to use for the FOMSINGGAP field.
14223 * @param[in] fomsing - The value to use for the FOMSING field.
14224 */
riu_rwnxagcradar_pack(uint8_t antselradar,uint8_t freqsinggap,uint8_t freqsing,uint8_t fomsinggap,uint8_t fomsing)14225 __INLINE void riu_rwnxagcradar_pack(uint8_t antselradar, uint8_t freqsinggap, uint8_t freqsing, uint8_t fomsinggap, uint8_t fomsing)
14226 {
14227 PLATFORM_REG_WRITE(RIU_RWNXAGCRADAR_ADDR, ((uint32_t)antselradar << 28) | ((uint32_t)freqsinggap << 24) | ((uint32_t)freqsing << 16) | ((uint32_t)fomsinggap << 8) | ((uint32_t)fomsing << 0));
14228 }
14229
14230 /**
14231 * @brief Unpacks RWNXAGCRADAR's fields from current value of the RWNXAGCRADAR register.
14232 *
14233 * Reads the RWNXAGCRADAR register and populates all the _field variables with the corresponding
14234 * values from the register.
14235 *
14236 * @param[out] antselradar - Will be populated with the current value of this field from the register.
14237 * @param[out] freqsinggap - Will be populated with the current value of this field from the register.
14238 * @param[out] freqsing - Will be populated with the current value of this field from the register.
14239 * @param[out] fomsinggap - Will be populated with the current value of this field from the register.
14240 * @param[out] fomsing - Will be populated with the current value of this field from the register.
14241 */
riu_rwnxagcradar_unpack(uint8_t * antselradar,uint8_t * freqsinggap,uint8_t * freqsing,uint8_t * fomsinggap,uint8_t * fomsing)14242 __INLINE void riu_rwnxagcradar_unpack(uint8_t* antselradar, uint8_t* freqsinggap, uint8_t* freqsing, uint8_t* fomsinggap, uint8_t* fomsing)
14243 {
14244 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRADAR_ADDR);
14245
14246 *antselradar = (localVal & ((uint32_t)0x30000000)) >> 28;
14247 *freqsinggap = (localVal & ((uint32_t)0x0F000000)) >> 24;
14248 *freqsing = (localVal & ((uint32_t)0x00FF0000)) >> 16;
14249 *fomsinggap = (localVal & ((uint32_t)0x00000F00)) >> 8;
14250 *fomsing = (localVal & ((uint32_t)0x000000FF)) >> 0;
14251 }
14252
14253 /**
14254 * @brief Returns the current value of the ANTSELRADAR field in the RWNXAGCRADAR register.
14255 *
14256 * The RWNXAGCRADAR register will be read and the ANTSELRADAR field's value will be returned.
14257 *
14258 * @return The current value of the ANTSELRADAR field in the RWNXAGCRADAR register.
14259 */
riu_antselradar_getf(void)14260 __INLINE uint8_t riu_antselradar_getf(void)
14261 {
14262 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRADAR_ADDR);
14263 return ((localVal & ((uint32_t)0x30000000)) >> 28);
14264 }
14265
14266 /**
14267 * @brief Sets the ANTSELRADAR field of the RWNXAGCRADAR register.
14268 *
14269 * The RWNXAGCRADAR register will be read, modified to contain the new field value, and written.
14270 *
14271 * @param[in] antselradar - The value to set the field to.
14272 */
riu_antselradar_setf(uint8_t antselradar)14273 __INLINE void riu_antselradar_setf(uint8_t antselradar)
14274 {
14275 PLATFORM_REG_WRITE(RIU_RWNXAGCRADAR_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCRADAR_ADDR) & ~((uint32_t)0x30000000)) | ((uint32_t)antselradar << 28));
14276 }
14277
14278 /**
14279 * @brief Returns the current value of the FREQSINGGAP field in the RWNXAGCRADAR register.
14280 *
14281 * The RWNXAGCRADAR register will be read and the FREQSINGGAP field's value will be returned.
14282 *
14283 * @return The current value of the FREQSINGGAP field in the RWNXAGCRADAR register.
14284 */
riu_freqsinggap_getf(void)14285 __INLINE uint8_t riu_freqsinggap_getf(void)
14286 {
14287 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRADAR_ADDR);
14288 return ((localVal & ((uint32_t)0x0F000000)) >> 24);
14289 }
14290
14291 /**
14292 * @brief Sets the FREQSINGGAP field of the RWNXAGCRADAR register.
14293 *
14294 * The RWNXAGCRADAR register will be read, modified to contain the new field value, and written.
14295 *
14296 * @param[in] freqsinggap - The value to set the field to.
14297 */
riu_freqsinggap_setf(uint8_t freqsinggap)14298 __INLINE void riu_freqsinggap_setf(uint8_t freqsinggap)
14299 {
14300 PLATFORM_REG_WRITE(RIU_RWNXAGCRADAR_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCRADAR_ADDR) & ~((uint32_t)0x0F000000)) | ((uint32_t)freqsinggap << 24));
14301 }
14302
14303 /**
14304 * @brief Returns the current value of the FREQSING field in the RWNXAGCRADAR register.
14305 *
14306 * The RWNXAGCRADAR register will be read and the FREQSING field's value will be returned.
14307 *
14308 * @return The current value of the FREQSING field in the RWNXAGCRADAR register.
14309 */
riu_freqsing_getf(void)14310 __INLINE uint8_t riu_freqsing_getf(void)
14311 {
14312 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRADAR_ADDR);
14313 return ((localVal & ((uint32_t)0x00FF0000)) >> 16);
14314 }
14315
14316 /**
14317 * @brief Sets the FREQSING field of the RWNXAGCRADAR register.
14318 *
14319 * The RWNXAGCRADAR register will be read, modified to contain the new field value, and written.
14320 *
14321 * @param[in] freqsing - The value to set the field to.
14322 */
riu_freqsing_setf(uint8_t freqsing)14323 __INLINE void riu_freqsing_setf(uint8_t freqsing)
14324 {
14325 PLATFORM_REG_WRITE(RIU_RWNXAGCRADAR_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCRADAR_ADDR) & ~((uint32_t)0x00FF0000)) | ((uint32_t)freqsing << 16));
14326 }
14327
14328 /**
14329 * @brief Returns the current value of the FOMSINGGAP field in the RWNXAGCRADAR register.
14330 *
14331 * The RWNXAGCRADAR register will be read and the FOMSINGGAP field's value will be returned.
14332 *
14333 * @return The current value of the FOMSINGGAP field in the RWNXAGCRADAR register.
14334 */
riu_fomsinggap_getf(void)14335 __INLINE uint8_t riu_fomsinggap_getf(void)
14336 {
14337 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRADAR_ADDR);
14338 return ((localVal & ((uint32_t)0x00000F00)) >> 8);
14339 }
14340
14341 /**
14342 * @brief Sets the FOMSINGGAP field of the RWNXAGCRADAR register.
14343 *
14344 * The RWNXAGCRADAR register will be read, modified to contain the new field value, and written.
14345 *
14346 * @param[in] fomsinggap - The value to set the field to.
14347 */
riu_fomsinggap_setf(uint8_t fomsinggap)14348 __INLINE void riu_fomsinggap_setf(uint8_t fomsinggap)
14349 {
14350 PLATFORM_REG_WRITE(RIU_RWNXAGCRADAR_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCRADAR_ADDR) & ~((uint32_t)0x00000F00)) | ((uint32_t)fomsinggap << 8));
14351 }
14352
14353 /**
14354 * @brief Returns the current value of the FOMSING field in the RWNXAGCRADAR register.
14355 *
14356 * The RWNXAGCRADAR register will be read and the FOMSING field's value will be returned.
14357 *
14358 * @return The current value of the FOMSING field in the RWNXAGCRADAR register.
14359 */
riu_fomsing_getf(void)14360 __INLINE uint8_t riu_fomsing_getf(void)
14361 {
14362 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRADAR_ADDR);
14363 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
14364 }
14365
14366 /**
14367 * @brief Sets the FOMSING field of the RWNXAGCRADAR register.
14368 *
14369 * The RWNXAGCRADAR register will be read, modified to contain the new field value, and written.
14370 *
14371 * @param[in] fomsing - The value to set the field to.
14372 */
riu_fomsing_setf(uint8_t fomsing)14373 __INLINE void riu_fomsing_setf(uint8_t fomsing)
14374 {
14375 PLATFORM_REG_WRITE(RIU_RWNXAGCRADAR_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCRADAR_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)fomsing << 0));
14376 }
14377
14378 #endif // RW_RADAR_EN
14379 /// @}
14380
14381 #if RW_RADAR_EN
14382 /**
14383 * @name RWNXAGCRADARTIM register definitions
14384 * <table>
14385 * <caption id="RWNXAGCRADARTIM_BF">RWNXAGCRADARTIM bitfields</caption>
14386 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
14387 * <tr><td>31 <td> PULSETIMERCLEAR <td>R <td>S <td>0
14388 * <tr><td>18:16 <td> PULSEIRQFIFOTHR <td>R <td>R/W <td>0x3
14389 * <tr><td>07:00 <td> PULSEIRQTIMEOUT <td>R <td>R/W <td>0x8
14390 * </table>
14391 *
14392 * @{
14393 */
14394
14395 /// Address of the RWNXAGCRADARTIM register
14396 #define RIU_RWNXAGCRADARTIM_ADDR 0x4033B3CC
14397 /// Offset of the RWNXAGCRADARTIM register from the base address
14398 #define RIU_RWNXAGCRADARTIM_OFFSET 0x000003CC
14399 /// Index of the RWNXAGCRADARTIM register
14400 #define RIU_RWNXAGCRADARTIM_INDEX 0x000000F3
14401 /// Reset value of the RWNXAGCRADARTIM register
14402 #define RIU_RWNXAGCRADARTIM_RESET 0x00030008
14403
14404 /**
14405 * @brief Returns the current value of the RWNXAGCRADARTIM register.
14406 * The RWNXAGCRADARTIM register will be read and its value returned.
14407 * @return The current value of the RWNXAGCRADARTIM register.
14408 */
riu_rwnxagcradartim_get(void)14409 __INLINE uint32_t riu_rwnxagcradartim_get(void)
14410 {
14411 return PLATFORM_REG_READ(RIU_RWNXAGCRADARTIM_ADDR);
14412 }
14413
14414 /**
14415 * @brief Sets the RWNXAGCRADARTIM register to a value.
14416 * The RWNXAGCRADARTIM register will be written.
14417 * @param value - The value to write.
14418 */
riu_rwnxagcradartim_set(uint32_t value)14419 __INLINE void riu_rwnxagcradartim_set(uint32_t value)
14420 {
14421 PLATFORM_REG_WRITE(RIU_RWNXAGCRADARTIM_ADDR, value);
14422 }
14423
14424 // field definitions
14425 /// PULSETIMERCLEAR field bit
14426 #define RIU_PULSETIMERCLEAR_BIT ((uint32_t)0x80000000)
14427 /// PULSETIMERCLEAR field position
14428 #define RIU_PULSETIMERCLEAR_POS 31
14429 /// PULSEIRQFIFOTHR field mask
14430 #define RIU_PULSEIRQFIFOTHR_MASK ((uint32_t)0x00070000)
14431 /// PULSEIRQFIFOTHR field LSB position
14432 #define RIU_PULSEIRQFIFOTHR_LSB 16
14433 /// PULSEIRQFIFOTHR field width
14434 #define RIU_PULSEIRQFIFOTHR_WIDTH ((uint32_t)0x00000003)
14435 /// PULSEIRQTIMEOUT field mask
14436 #define RIU_PULSEIRQTIMEOUT_MASK ((uint32_t)0x000000FF)
14437 /// PULSEIRQTIMEOUT field LSB position
14438 #define RIU_PULSEIRQTIMEOUT_LSB 0
14439 /// PULSEIRQTIMEOUT field width
14440 #define RIU_PULSEIRQTIMEOUT_WIDTH ((uint32_t)0x00000008)
14441
14442 /// PULSETIMERCLEAR field reset value
14443 #define RIU_PULSETIMERCLEAR_RST 0x0
14444 /// PULSEIRQFIFOTHR field reset value
14445 #define RIU_PULSEIRQFIFOTHR_RST 0x3
14446 /// PULSEIRQTIMEOUT field reset value
14447 #define RIU_PULSEIRQTIMEOUT_RST 0x8
14448
14449 /**
14450 * @brief Constructs a value for the RWNXAGCRADARTIM register given values for its fields
14451 * and writes the value to the register.
14452 *
14453 * @param[in] pulsetimerclear - The value to use for the PULSETIMERCLEAR field.
14454 * @param[in] pulseirqfifothr - The value to use for the PULSEIRQFIFOTHR field.
14455 * @param[in] pulseirqtimeout - The value to use for the PULSEIRQTIMEOUT field.
14456 */
riu_rwnxagcradartim_pack(uint8_t pulsetimerclear,uint8_t pulseirqfifothr,uint8_t pulseirqtimeout)14457 __INLINE void riu_rwnxagcradartim_pack(uint8_t pulsetimerclear, uint8_t pulseirqfifothr, uint8_t pulseirqtimeout)
14458 {
14459 PLATFORM_REG_WRITE(RIU_RWNXAGCRADARTIM_ADDR, ((uint32_t)pulsetimerclear << 31) | ((uint32_t)pulseirqfifothr << 16) | ((uint32_t)pulseirqtimeout << 0));
14460 }
14461
14462 /**
14463 * @brief Unpacks RWNXAGCRADARTIM's fields from current value of the RWNXAGCRADARTIM register.
14464 *
14465 * Reads the RWNXAGCRADARTIM register and populates all the _field variables with the corresponding
14466 * values from the register.
14467 *
14468 * @param[out] pulsetimerclear - Will be populated with the current value of this field from the register.
14469 * @param[out] pulseirqfifothr - Will be populated with the current value of this field from the register.
14470 * @param[out] pulseirqtimeout - Will be populated with the current value of this field from the register.
14471 */
riu_rwnxagcradartim_unpack(uint8_t * pulsetimerclear,uint8_t * pulseirqfifothr,uint8_t * pulseirqtimeout)14472 __INLINE void riu_rwnxagcradartim_unpack(uint8_t* pulsetimerclear, uint8_t* pulseirqfifothr, uint8_t* pulseirqtimeout)
14473 {
14474 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRADARTIM_ADDR);
14475
14476 *pulsetimerclear = (localVal & ((uint32_t)0x80000000)) >> 31;
14477 *pulseirqfifothr = (localVal & ((uint32_t)0x00070000)) >> 16;
14478 *pulseirqtimeout = (localVal & ((uint32_t)0x000000FF)) >> 0;
14479 }
14480
14481 /**
14482 * @brief Returns the current value of the PULSETIMERCLEAR field in the RWNXAGCRADARTIM register.
14483 *
14484 * The RWNXAGCRADARTIM register will be read and the PULSETIMERCLEAR field's value will be returned.
14485 *
14486 * @return The current value of the PULSETIMERCLEAR field in the RWNXAGCRADARTIM register.
14487 */
riu_pulsetimerclear_getf(void)14488 __INLINE uint8_t riu_pulsetimerclear_getf(void)
14489 {
14490 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRADARTIM_ADDR);
14491 return ((localVal & ((uint32_t)0x80000000)) >> 31);
14492 }
14493
14494 /**
14495 * @brief Sets the PULSETIMERCLEAR field of the RWNXAGCRADARTIM register.
14496 *
14497 * The RWNXAGCRADARTIM register will be read, modified to contain the new field value, and written.
14498 *
14499 * @param[in] pulsetimerclear - The value to set the field to.
14500 */
riu_pulsetimerclear_setf(uint8_t pulsetimerclear)14501 __INLINE void riu_pulsetimerclear_setf(uint8_t pulsetimerclear)
14502 {
14503 PLATFORM_REG_WRITE(RIU_RWNXAGCRADARTIM_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCRADARTIM_ADDR) & ~((uint32_t)0x80000000)) | ((uint32_t)pulsetimerclear << 31));
14504 }
14505
14506 /**
14507 * @brief Returns the current value of the PULSEIRQFIFOTHR field in the RWNXAGCRADARTIM register.
14508 *
14509 * The RWNXAGCRADARTIM register will be read and the PULSEIRQFIFOTHR field's value will be returned.
14510 *
14511 * @return The current value of the PULSEIRQFIFOTHR field in the RWNXAGCRADARTIM register.
14512 */
riu_pulseirqfifothr_getf(void)14513 __INLINE uint8_t riu_pulseirqfifothr_getf(void)
14514 {
14515 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRADARTIM_ADDR);
14516 return ((localVal & ((uint32_t)0x00070000)) >> 16);
14517 }
14518
14519 /**
14520 * @brief Sets the PULSEIRQFIFOTHR field of the RWNXAGCRADARTIM register.
14521 *
14522 * The RWNXAGCRADARTIM register will be read, modified to contain the new field value, and written.
14523 *
14524 * @param[in] pulseirqfifothr - The value to set the field to.
14525 */
riu_pulseirqfifothr_setf(uint8_t pulseirqfifothr)14526 __INLINE void riu_pulseirqfifothr_setf(uint8_t pulseirqfifothr)
14527 {
14528 PLATFORM_REG_WRITE(RIU_RWNXAGCRADARTIM_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCRADARTIM_ADDR) & ~((uint32_t)0x00070000)) | ((uint32_t)pulseirqfifothr << 16));
14529 }
14530
14531 /**
14532 * @brief Returns the current value of the PULSEIRQTIMEOUT field in the RWNXAGCRADARTIM register.
14533 *
14534 * The RWNXAGCRADARTIM register will be read and the PULSEIRQTIMEOUT field's value will be returned.
14535 *
14536 * @return The current value of the PULSEIRQTIMEOUT field in the RWNXAGCRADARTIM register.
14537 */
riu_pulseirqtimeout_getf(void)14538 __INLINE uint8_t riu_pulseirqtimeout_getf(void)
14539 {
14540 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCRADARTIM_ADDR);
14541 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
14542 }
14543
14544 /**
14545 * @brief Sets the PULSEIRQTIMEOUT field of the RWNXAGCRADARTIM register.
14546 *
14547 * The RWNXAGCRADARTIM register will be read, modified to contain the new field value, and written.
14548 *
14549 * @param[in] pulseirqtimeout - The value to set the field to.
14550 */
riu_pulseirqtimeout_setf(uint8_t pulseirqtimeout)14551 __INLINE void riu_pulseirqtimeout_setf(uint8_t pulseirqtimeout)
14552 {
14553 PLATFORM_REG_WRITE(RIU_RWNXAGCRADARTIM_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCRADARTIM_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)pulseirqtimeout << 0));
14554 }
14555
14556 #endif // RW_RADAR_EN
14557 /// @}
14558
14559 #if RW_RADAR_EN
14560 /**
14561 * @name RWNXAGCDCCOMPRADAR register definitions
14562 * <table>
14563 * <caption id="RWNXAGCDCCOMPRADAR_BF">RWNXAGCDCCOMPRADAR bitfields</caption>
14564 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
14565 * <tr><td>29:28 <td> DCRADARTYPE <td>R <td>R/W <td>0x0
14566 * <tr><td>22:16 <td>DCRADARHOLDTIME50NS <td>R <td>R/W <td>0x8
14567 * <tr><td>14:08 <td>DCRADARZEROTIME50NS <td>R <td>R/W <td>0x0
14568 * </table>
14569 *
14570 * @{
14571 */
14572
14573 /// Address of the RWNXAGCDCCOMPRADAR register
14574 #define RIU_RWNXAGCDCCOMPRADAR_ADDR 0x4033B3D0
14575 /// Offset of the RWNXAGCDCCOMPRADAR register from the base address
14576 #define RIU_RWNXAGCDCCOMPRADAR_OFFSET 0x000003D0
14577 /// Index of the RWNXAGCDCCOMPRADAR register
14578 #define RIU_RWNXAGCDCCOMPRADAR_INDEX 0x000000F4
14579 /// Reset value of the RWNXAGCDCCOMPRADAR register
14580 #define RIU_RWNXAGCDCCOMPRADAR_RESET 0x00080000
14581
14582 /**
14583 * @brief Returns the current value of the RWNXAGCDCCOMPRADAR register.
14584 * The RWNXAGCDCCOMPRADAR register will be read and its value returned.
14585 * @return The current value of the RWNXAGCDCCOMPRADAR register.
14586 */
riu_rwnxagcdccompradar_get(void)14587 __INLINE uint32_t riu_rwnxagcdccompradar_get(void)
14588 {
14589 return PLATFORM_REG_READ(RIU_RWNXAGCDCCOMPRADAR_ADDR);
14590 }
14591
14592 /**
14593 * @brief Sets the RWNXAGCDCCOMPRADAR register to a value.
14594 * The RWNXAGCDCCOMPRADAR register will be written.
14595 * @param value - The value to write.
14596 */
riu_rwnxagcdccompradar_set(uint32_t value)14597 __INLINE void riu_rwnxagcdccompradar_set(uint32_t value)
14598 {
14599 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMPRADAR_ADDR, value);
14600 }
14601
14602 // field definitions
14603 /// DCRADARTYPE field mask
14604 #define RIU_DCRADARTYPE_MASK ((uint32_t)0x30000000)
14605 /// DCRADARTYPE field LSB position
14606 #define RIU_DCRADARTYPE_LSB 28
14607 /// DCRADARTYPE field width
14608 #define RIU_DCRADARTYPE_WIDTH ((uint32_t)0x00000002)
14609 /// DCRADARHOLDTIME50NS field mask
14610 #define RIU_DCRADARHOLDTIME50NS_MASK ((uint32_t)0x007F0000)
14611 /// DCRADARHOLDTIME50NS field LSB position
14612 #define RIU_DCRADARHOLDTIME50NS_LSB 16
14613 /// DCRADARHOLDTIME50NS field width
14614 #define RIU_DCRADARHOLDTIME50NS_WIDTH ((uint32_t)0x00000007)
14615 /// DCRADARZEROTIME50NS field mask
14616 #define RIU_DCRADARZEROTIME50NS_MASK ((uint32_t)0x00007F00)
14617 /// DCRADARZEROTIME50NS field LSB position
14618 #define RIU_DCRADARZEROTIME50NS_LSB 8
14619 /// DCRADARZEROTIME50NS field width
14620 #define RIU_DCRADARZEROTIME50NS_WIDTH ((uint32_t)0x00000007)
14621
14622 /// DCRADARTYPE field reset value
14623 #define RIU_DCRADARTYPE_RST 0x0
14624 /// DCRADARHOLDTIME50NS field reset value
14625 #define RIU_DCRADARHOLDTIME50NS_RST 0x8
14626 /// DCRADARZEROTIME50NS field reset value
14627 #define RIU_DCRADARZEROTIME50NS_RST 0x0
14628
14629 /**
14630 * @brief Constructs a value for the RWNXAGCDCCOMPRADAR register given values for its fields
14631 * and writes the value to the register.
14632 *
14633 * @param[in] dcradartype - The value to use for the DCRADARTYPE field.
14634 * @param[in] dcradarholdtime50ns - The value to use for the DCRADARHOLDTIME50NS field.
14635 * @param[in] dcradarzerotime50ns - The value to use for the DCRADARZEROTIME50NS field.
14636 */
riu_rwnxagcdccompradar_pack(uint8_t dcradartype,uint8_t dcradarholdtime50ns,uint8_t dcradarzerotime50ns)14637 __INLINE void riu_rwnxagcdccompradar_pack(uint8_t dcradartype, uint8_t dcradarholdtime50ns, uint8_t dcradarzerotime50ns)
14638 {
14639 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMPRADAR_ADDR, ((uint32_t)dcradartype << 28) | ((uint32_t)dcradarholdtime50ns << 16) | ((uint32_t)dcradarzerotime50ns << 8));
14640 }
14641
14642 /**
14643 * @brief Unpacks RWNXAGCDCCOMPRADAR's fields from current value of the RWNXAGCDCCOMPRADAR register.
14644 *
14645 * Reads the RWNXAGCDCCOMPRADAR register and populates all the _field variables with the corresponding
14646 * values from the register.
14647 *
14648 * @param[out] dcradartype - Will be populated with the current value of this field from the register.
14649 * @param[out] dcradarholdtime50ns - Will be populated with the current value of this field from the register.
14650 * @param[out] dcradarzerotime50ns - Will be populated with the current value of this field from the register.
14651 */
riu_rwnxagcdccompradar_unpack(uint8_t * dcradartype,uint8_t * dcradarholdtime50ns,uint8_t * dcradarzerotime50ns)14652 __INLINE void riu_rwnxagcdccompradar_unpack(uint8_t* dcradartype, uint8_t* dcradarholdtime50ns, uint8_t* dcradarzerotime50ns)
14653 {
14654 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMPRADAR_ADDR);
14655
14656 *dcradartype = (localVal & ((uint32_t)0x30000000)) >> 28;
14657 *dcradarholdtime50ns = (localVal & ((uint32_t)0x007F0000)) >> 16;
14658 *dcradarzerotime50ns = (localVal & ((uint32_t)0x00007F00)) >> 8;
14659 }
14660
14661 /**
14662 * @brief Returns the current value of the DCRADARTYPE field in the RWNXAGCDCCOMPRADAR register.
14663 *
14664 * The RWNXAGCDCCOMPRADAR register will be read and the DCRADARTYPE field's value will be returned.
14665 *
14666 * @return The current value of the DCRADARTYPE field in the RWNXAGCDCCOMPRADAR register.
14667 */
riu_dcradartype_getf(void)14668 __INLINE uint8_t riu_dcradartype_getf(void)
14669 {
14670 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMPRADAR_ADDR);
14671 return ((localVal & ((uint32_t)0x30000000)) >> 28);
14672 }
14673
14674 /**
14675 * @brief Sets the DCRADARTYPE field of the RWNXAGCDCCOMPRADAR register.
14676 *
14677 * The RWNXAGCDCCOMPRADAR register will be read, modified to contain the new field value, and written.
14678 *
14679 * @param[in] dcradartype - The value to set the field to.
14680 */
riu_dcradartype_setf(uint8_t dcradartype)14681 __INLINE void riu_dcradartype_setf(uint8_t dcradartype)
14682 {
14683 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMPRADAR_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMPRADAR_ADDR) & ~((uint32_t)0x30000000)) | ((uint32_t)dcradartype << 28));
14684 }
14685
14686 /**
14687 * @brief Returns the current value of the DCRADARHOLDTIME50NS field in the RWNXAGCDCCOMPRADAR register.
14688 *
14689 * The RWNXAGCDCCOMPRADAR register will be read and the DCRADARHOLDTIME50NS field's value will be returned.
14690 *
14691 * @return The current value of the DCRADARHOLDTIME50NS field in the RWNXAGCDCCOMPRADAR register.
14692 */
riu_dcradarholdtime50ns_getf(void)14693 __INLINE uint8_t riu_dcradarholdtime50ns_getf(void)
14694 {
14695 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMPRADAR_ADDR);
14696 return ((localVal & ((uint32_t)0x007F0000)) >> 16);
14697 }
14698
14699 /**
14700 * @brief Sets the DCRADARHOLDTIME50NS field of the RWNXAGCDCCOMPRADAR register.
14701 *
14702 * The RWNXAGCDCCOMPRADAR register will be read, modified to contain the new field value, and written.
14703 *
14704 * @param[in] dcradarholdtime50ns - The value to set the field to.
14705 */
riu_dcradarholdtime50ns_setf(uint8_t dcradarholdtime50ns)14706 __INLINE void riu_dcradarholdtime50ns_setf(uint8_t dcradarholdtime50ns)
14707 {
14708 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMPRADAR_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMPRADAR_ADDR) & ~((uint32_t)0x007F0000)) | ((uint32_t)dcradarholdtime50ns << 16));
14709 }
14710
14711 /**
14712 * @brief Returns the current value of the DCRADARZEROTIME50NS field in the RWNXAGCDCCOMPRADAR register.
14713 *
14714 * The RWNXAGCDCCOMPRADAR register will be read and the DCRADARZEROTIME50NS field's value will be returned.
14715 *
14716 * @return The current value of the DCRADARZEROTIME50NS field in the RWNXAGCDCCOMPRADAR register.
14717 */
riu_dcradarzerotime50ns_getf(void)14718 __INLINE uint8_t riu_dcradarzerotime50ns_getf(void)
14719 {
14720 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCDCCOMPRADAR_ADDR);
14721 return ((localVal & ((uint32_t)0x00007F00)) >> 8);
14722 }
14723
14724 /**
14725 * @brief Sets the DCRADARZEROTIME50NS field of the RWNXAGCDCCOMPRADAR register.
14726 *
14727 * The RWNXAGCDCCOMPRADAR register will be read, modified to contain the new field value, and written.
14728 *
14729 * @param[in] dcradarzerotime50ns - The value to set the field to.
14730 */
riu_dcradarzerotime50ns_setf(uint8_t dcradarzerotime50ns)14731 __INLINE void riu_dcradarzerotime50ns_setf(uint8_t dcradarzerotime50ns)
14732 {
14733 PLATFORM_REG_WRITE(RIU_RWNXAGCDCCOMPRADAR_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCDCCOMPRADAR_ADDR) & ~((uint32_t)0x00007F00)) | ((uint32_t)dcradarzerotime50ns << 8));
14734 }
14735
14736 #endif // RW_RADAR_EN
14737 /// @}
14738
14739 /**
14740 * @name RWNXAGCCCA2 register definitions
14741 * <table>
14742 * <caption id="RWNXAGCCCA2_BF">RWNXAGCCCA2 bitfields</caption>
14743 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
14744 * <tr><td>28:20 <td>INBDCCA20SPOWMINDBM <td>R <td>R/W <td>0x1B0
14745 * <tr><td>19:12 <td> CCA20SFALLTHRDBM <td>R <td>R/W <td>0xB5
14746 * <tr><td>07:00 <td> CCA20SRISETHRDBM <td>R <td>R/W <td>0xB8
14747 * </table>
14748 *
14749 * @{
14750 */
14751
14752 /// Address of the RWNXAGCCCA2 register
14753 #define RIU_RWNXAGCCCA2_ADDR 0x4033B3D4
14754 /// Offset of the RWNXAGCCCA2 register from the base address
14755 #define RIU_RWNXAGCCCA2_OFFSET 0x000003D4
14756 /// Index of the RWNXAGCCCA2 register
14757 #define RIU_RWNXAGCCCA2_INDEX 0x000000F5
14758 /// Reset value of the RWNXAGCCCA2 register
14759 #define RIU_RWNXAGCCCA2_RESET 0x1B0B50B8
14760
14761 /**
14762 * @brief Returns the current value of the RWNXAGCCCA2 register.
14763 * The RWNXAGCCCA2 register will be read and its value returned.
14764 * @return The current value of the RWNXAGCCCA2 register.
14765 */
riu_rwnxagccca2_get(void)14766 __INLINE uint32_t riu_rwnxagccca2_get(void)
14767 {
14768 return PLATFORM_REG_READ(RIU_RWNXAGCCCA2_ADDR);
14769 }
14770
14771 /**
14772 * @brief Sets the RWNXAGCCCA2 register to a value.
14773 * The RWNXAGCCCA2 register will be written.
14774 * @param value - The value to write.
14775 */
riu_rwnxagccca2_set(uint32_t value)14776 __INLINE void riu_rwnxagccca2_set(uint32_t value)
14777 {
14778 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA2_ADDR, value);
14779 }
14780
14781 // field definitions
14782 /// INBDCCA20SPOWMINDBM field mask
14783 #define RIU_INBDCCA20SPOWMINDBM_MASK ((uint32_t)0x1FF00000)
14784 /// INBDCCA20SPOWMINDBM field LSB position
14785 #define RIU_INBDCCA20SPOWMINDBM_LSB 20
14786 /// INBDCCA20SPOWMINDBM field width
14787 #define RIU_INBDCCA20SPOWMINDBM_WIDTH ((uint32_t)0x00000009)
14788 /// CCA20SFALLTHRDBM field mask
14789 #define RIU_CCA20SFALLTHRDBM_MASK ((uint32_t)0x000FF000)
14790 /// CCA20SFALLTHRDBM field LSB position
14791 #define RIU_CCA20SFALLTHRDBM_LSB 12
14792 /// CCA20SFALLTHRDBM field width
14793 #define RIU_CCA20SFALLTHRDBM_WIDTH ((uint32_t)0x00000008)
14794 /// CCA20SRISETHRDBM field mask
14795 #define RIU_CCA20SRISETHRDBM_MASK ((uint32_t)0x000000FF)
14796 /// CCA20SRISETHRDBM field LSB position
14797 #define RIU_CCA20SRISETHRDBM_LSB 0
14798 /// CCA20SRISETHRDBM field width
14799 #define RIU_CCA20SRISETHRDBM_WIDTH ((uint32_t)0x00000008)
14800
14801 /// INBDCCA20SPOWMINDBM field reset value
14802 #define RIU_INBDCCA20SPOWMINDBM_RST 0x1B0
14803 /// CCA20SFALLTHRDBM field reset value
14804 #define RIU_CCA20SFALLTHRDBM_RST 0xB5
14805 /// CCA20SRISETHRDBM field reset value
14806 #define RIU_CCA20SRISETHRDBM_RST 0xB8
14807
14808 /**
14809 * @brief Constructs a value for the RWNXAGCCCA2 register given values for its fields
14810 * and writes the value to the register.
14811 *
14812 * @param[in] inbdcca20spowmindbm - The value to use for the INBDCCA20SPOWMINDBM field.
14813 * @param[in] cca20sfallthrdbm - The value to use for the CCA20SFALLTHRDBM field.
14814 * @param[in] cca20srisethrdbm - The value to use for the CCA20SRISETHRDBM field.
14815 */
riu_rwnxagccca2_pack(uint16_t inbdcca20spowmindbm,uint8_t cca20sfallthrdbm,uint8_t cca20srisethrdbm)14816 __INLINE void riu_rwnxagccca2_pack(uint16_t inbdcca20spowmindbm, uint8_t cca20sfallthrdbm, uint8_t cca20srisethrdbm)
14817 {
14818 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA2_ADDR, ((uint32_t)inbdcca20spowmindbm << 20) | ((uint32_t)cca20sfallthrdbm << 12) | ((uint32_t)cca20srisethrdbm << 0));
14819 }
14820
14821 /**
14822 * @brief Unpacks RWNXAGCCCA2's fields from current value of the RWNXAGCCCA2 register.
14823 *
14824 * Reads the RWNXAGCCCA2 register and populates all the _field variables with the corresponding
14825 * values from the register.
14826 *
14827 * @param[out] inbdcca20spowmindbm - Will be populated with the current value of this field from the register.
14828 * @param[out] cca20sfallthrdbm - Will be populated with the current value of this field from the register.
14829 * @param[out] cca20srisethrdbm - Will be populated with the current value of this field from the register.
14830 */
riu_rwnxagccca2_unpack(uint16_t * inbdcca20spowmindbm,uint8_t * cca20sfallthrdbm,uint8_t * cca20srisethrdbm)14831 __INLINE void riu_rwnxagccca2_unpack(uint16_t* inbdcca20spowmindbm, uint8_t* cca20sfallthrdbm, uint8_t* cca20srisethrdbm)
14832 {
14833 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA2_ADDR);
14834
14835 *inbdcca20spowmindbm = (localVal & ((uint32_t)0x1FF00000)) >> 20;
14836 *cca20sfallthrdbm = (localVal & ((uint32_t)0x000FF000)) >> 12;
14837 *cca20srisethrdbm = (localVal & ((uint32_t)0x000000FF)) >> 0;
14838 }
14839
14840 /**
14841 * @brief Returns the current value of the INBDCCA20SPOWMINDBM field in the RWNXAGCCCA2 register.
14842 *
14843 * The RWNXAGCCCA2 register will be read and the INBDCCA20SPOWMINDBM field's value will be returned.
14844 *
14845 * @return The current value of the INBDCCA20SPOWMINDBM field in the RWNXAGCCCA2 register.
14846 */
riu_inbdcca20spowmindbm_getf(void)14847 __INLINE uint16_t riu_inbdcca20spowmindbm_getf(void)
14848 {
14849 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA2_ADDR);
14850 return ((localVal & ((uint32_t)0x1FF00000)) >> 20);
14851 }
14852
14853 /**
14854 * @brief Sets the INBDCCA20SPOWMINDBM field of the RWNXAGCCCA2 register.
14855 *
14856 * The RWNXAGCCCA2 register will be read, modified to contain the new field value, and written.
14857 *
14858 * @param[in] inbdcca20spowmindbm - The value to set the field to.
14859 */
riu_inbdcca20spowmindbm_setf(uint16_t inbdcca20spowmindbm)14860 __INLINE void riu_inbdcca20spowmindbm_setf(uint16_t inbdcca20spowmindbm)
14861 {
14862 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA2_ADDR) & ~((uint32_t)0x1FF00000)) | ((uint32_t)inbdcca20spowmindbm << 20));
14863 }
14864
14865 /**
14866 * @brief Returns the current value of the CCA20SFALLTHRDBM field in the RWNXAGCCCA2 register.
14867 *
14868 * The RWNXAGCCCA2 register will be read and the CCA20SFALLTHRDBM field's value will be returned.
14869 *
14870 * @return The current value of the CCA20SFALLTHRDBM field in the RWNXAGCCCA2 register.
14871 */
riu_cca20sfallthrdbm_getf(void)14872 __INLINE uint8_t riu_cca20sfallthrdbm_getf(void)
14873 {
14874 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA2_ADDR);
14875 return ((localVal & ((uint32_t)0x000FF000)) >> 12);
14876 }
14877
14878 /**
14879 * @brief Sets the CCA20SFALLTHRDBM field of the RWNXAGCCCA2 register.
14880 *
14881 * The RWNXAGCCCA2 register will be read, modified to contain the new field value, and written.
14882 *
14883 * @param[in] cca20sfallthrdbm - The value to set the field to.
14884 */
riu_cca20sfallthrdbm_setf(uint8_t cca20sfallthrdbm)14885 __INLINE void riu_cca20sfallthrdbm_setf(uint8_t cca20sfallthrdbm)
14886 {
14887 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA2_ADDR) & ~((uint32_t)0x000FF000)) | ((uint32_t)cca20sfallthrdbm << 12));
14888 }
14889
14890 /**
14891 * @brief Returns the current value of the CCA20SRISETHRDBM field in the RWNXAGCCCA2 register.
14892 *
14893 * The RWNXAGCCCA2 register will be read and the CCA20SRISETHRDBM field's value will be returned.
14894 *
14895 * @return The current value of the CCA20SRISETHRDBM field in the RWNXAGCCCA2 register.
14896 */
riu_cca20srisethrdbm_getf(void)14897 __INLINE uint8_t riu_cca20srisethrdbm_getf(void)
14898 {
14899 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA2_ADDR);
14900 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
14901 }
14902
14903 /**
14904 * @brief Sets the CCA20SRISETHRDBM field of the RWNXAGCCCA2 register.
14905 *
14906 * The RWNXAGCCCA2 register will be read, modified to contain the new field value, and written.
14907 *
14908 * @param[in] cca20srisethrdbm - The value to set the field to.
14909 */
riu_cca20srisethrdbm_setf(uint8_t cca20srisethrdbm)14910 __INLINE void riu_cca20srisethrdbm_setf(uint8_t cca20srisethrdbm)
14911 {
14912 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA2_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA2_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)cca20srisethrdbm << 0));
14913 }
14914
14915 /// @}
14916
14917 /**
14918 * @name RWNXAGCCCA3 register definitions
14919 * <table>
14920 * <caption id="RWNXAGCCCA3_BF">RWNXAGCCCA3 bitfields</caption>
14921 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
14922 * <tr><td>28:20 <td>INBDCCA40SPOWMINDBM <td>R <td>R/W <td>0x1B0
14923 * <tr><td>19:12 <td> CCA40SFALLTHRDBM <td>R <td>R/W <td>0xB5
14924 * <tr><td>07:00 <td> CCA40SRISETHRDBM <td>R <td>R/W <td>0xB8
14925 * </table>
14926 *
14927 * @{
14928 */
14929
14930 /// Address of the RWNXAGCCCA3 register
14931 #define RIU_RWNXAGCCCA3_ADDR 0x4033B3D8
14932 /// Offset of the RWNXAGCCCA3 register from the base address
14933 #define RIU_RWNXAGCCCA3_OFFSET 0x000003D8
14934 /// Index of the RWNXAGCCCA3 register
14935 #define RIU_RWNXAGCCCA3_INDEX 0x000000F6
14936 /// Reset value of the RWNXAGCCCA3 register
14937 #define RIU_RWNXAGCCCA3_RESET 0x1B0B50B8
14938
14939 /**
14940 * @brief Returns the current value of the RWNXAGCCCA3 register.
14941 * The RWNXAGCCCA3 register will be read and its value returned.
14942 * @return The current value of the RWNXAGCCCA3 register.
14943 */
riu_rwnxagccca3_get(void)14944 __INLINE uint32_t riu_rwnxagccca3_get(void)
14945 {
14946 return PLATFORM_REG_READ(RIU_RWNXAGCCCA3_ADDR);
14947 }
14948
14949 /**
14950 * @brief Sets the RWNXAGCCCA3 register to a value.
14951 * The RWNXAGCCCA3 register will be written.
14952 * @param value - The value to write.
14953 */
riu_rwnxagccca3_set(uint32_t value)14954 __INLINE void riu_rwnxagccca3_set(uint32_t value)
14955 {
14956 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA3_ADDR, value);
14957 }
14958
14959 // field definitions
14960 /// INBDCCA40SPOWMINDBM field mask
14961 #define RIU_INBDCCA40SPOWMINDBM_MASK ((uint32_t)0x1FF00000)
14962 /// INBDCCA40SPOWMINDBM field LSB position
14963 #define RIU_INBDCCA40SPOWMINDBM_LSB 20
14964 /// INBDCCA40SPOWMINDBM field width
14965 #define RIU_INBDCCA40SPOWMINDBM_WIDTH ((uint32_t)0x00000009)
14966 /// CCA40SFALLTHRDBM field mask
14967 #define RIU_CCA40SFALLTHRDBM_MASK ((uint32_t)0x000FF000)
14968 /// CCA40SFALLTHRDBM field LSB position
14969 #define RIU_CCA40SFALLTHRDBM_LSB 12
14970 /// CCA40SFALLTHRDBM field width
14971 #define RIU_CCA40SFALLTHRDBM_WIDTH ((uint32_t)0x00000008)
14972 /// CCA40SRISETHRDBM field mask
14973 #define RIU_CCA40SRISETHRDBM_MASK ((uint32_t)0x000000FF)
14974 /// CCA40SRISETHRDBM field LSB position
14975 #define RIU_CCA40SRISETHRDBM_LSB 0
14976 /// CCA40SRISETHRDBM field width
14977 #define RIU_CCA40SRISETHRDBM_WIDTH ((uint32_t)0x00000008)
14978
14979 /// INBDCCA40SPOWMINDBM field reset value
14980 #define RIU_INBDCCA40SPOWMINDBM_RST 0x1B0
14981 /// CCA40SFALLTHRDBM field reset value
14982 #define RIU_CCA40SFALLTHRDBM_RST 0xB5
14983 /// CCA40SRISETHRDBM field reset value
14984 #define RIU_CCA40SRISETHRDBM_RST 0xB8
14985
14986 /**
14987 * @brief Constructs a value for the RWNXAGCCCA3 register given values for its fields
14988 * and writes the value to the register.
14989 *
14990 * @param[in] inbdcca40spowmindbm - The value to use for the INBDCCA40SPOWMINDBM field.
14991 * @param[in] cca40sfallthrdbm - The value to use for the CCA40SFALLTHRDBM field.
14992 * @param[in] cca40srisethrdbm - The value to use for the CCA40SRISETHRDBM field.
14993 */
riu_rwnxagccca3_pack(uint16_t inbdcca40spowmindbm,uint8_t cca40sfallthrdbm,uint8_t cca40srisethrdbm)14994 __INLINE void riu_rwnxagccca3_pack(uint16_t inbdcca40spowmindbm, uint8_t cca40sfallthrdbm, uint8_t cca40srisethrdbm)
14995 {
14996 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA3_ADDR, ((uint32_t)inbdcca40spowmindbm << 20) | ((uint32_t)cca40sfallthrdbm << 12) | ((uint32_t)cca40srisethrdbm << 0));
14997 }
14998
14999 /**
15000 * @brief Unpacks RWNXAGCCCA3's fields from current value of the RWNXAGCCCA3 register.
15001 *
15002 * Reads the RWNXAGCCCA3 register and populates all the _field variables with the corresponding
15003 * values from the register.
15004 *
15005 * @param[out] inbdcca40spowmindbm - Will be populated with the current value of this field from the register.
15006 * @param[out] cca40sfallthrdbm - Will be populated with the current value of this field from the register.
15007 * @param[out] cca40srisethrdbm - Will be populated with the current value of this field from the register.
15008 */
riu_rwnxagccca3_unpack(uint16_t * inbdcca40spowmindbm,uint8_t * cca40sfallthrdbm,uint8_t * cca40srisethrdbm)15009 __INLINE void riu_rwnxagccca3_unpack(uint16_t* inbdcca40spowmindbm, uint8_t* cca40sfallthrdbm, uint8_t* cca40srisethrdbm)
15010 {
15011 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA3_ADDR);
15012
15013 *inbdcca40spowmindbm = (localVal & ((uint32_t)0x1FF00000)) >> 20;
15014 *cca40sfallthrdbm = (localVal & ((uint32_t)0x000FF000)) >> 12;
15015 *cca40srisethrdbm = (localVal & ((uint32_t)0x000000FF)) >> 0;
15016 }
15017
15018 /**
15019 * @brief Returns the current value of the INBDCCA40SPOWMINDBM field in the RWNXAGCCCA3 register.
15020 *
15021 * The RWNXAGCCCA3 register will be read and the INBDCCA40SPOWMINDBM field's value will be returned.
15022 *
15023 * @return The current value of the INBDCCA40SPOWMINDBM field in the RWNXAGCCCA3 register.
15024 */
riu_inbdcca40spowmindbm_getf(void)15025 __INLINE uint16_t riu_inbdcca40spowmindbm_getf(void)
15026 {
15027 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA3_ADDR);
15028 return ((localVal & ((uint32_t)0x1FF00000)) >> 20);
15029 }
15030
15031 /**
15032 * @brief Sets the INBDCCA40SPOWMINDBM field of the RWNXAGCCCA3 register.
15033 *
15034 * The RWNXAGCCCA3 register will be read, modified to contain the new field value, and written.
15035 *
15036 * @param[in] inbdcca40spowmindbm - The value to set the field to.
15037 */
riu_inbdcca40spowmindbm_setf(uint16_t inbdcca40spowmindbm)15038 __INLINE void riu_inbdcca40spowmindbm_setf(uint16_t inbdcca40spowmindbm)
15039 {
15040 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA3_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA3_ADDR) & ~((uint32_t)0x1FF00000)) | ((uint32_t)inbdcca40spowmindbm << 20));
15041 }
15042
15043 /**
15044 * @brief Returns the current value of the CCA40SFALLTHRDBM field in the RWNXAGCCCA3 register.
15045 *
15046 * The RWNXAGCCCA3 register will be read and the CCA40SFALLTHRDBM field's value will be returned.
15047 *
15048 * @return The current value of the CCA40SFALLTHRDBM field in the RWNXAGCCCA3 register.
15049 */
riu_cca40sfallthrdbm_getf(void)15050 __INLINE uint8_t riu_cca40sfallthrdbm_getf(void)
15051 {
15052 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA3_ADDR);
15053 return ((localVal & ((uint32_t)0x000FF000)) >> 12);
15054 }
15055
15056 /**
15057 * @brief Sets the CCA40SFALLTHRDBM field of the RWNXAGCCCA3 register.
15058 *
15059 * The RWNXAGCCCA3 register will be read, modified to contain the new field value, and written.
15060 *
15061 * @param[in] cca40sfallthrdbm - The value to set the field to.
15062 */
riu_cca40sfallthrdbm_setf(uint8_t cca40sfallthrdbm)15063 __INLINE void riu_cca40sfallthrdbm_setf(uint8_t cca40sfallthrdbm)
15064 {
15065 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA3_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA3_ADDR) & ~((uint32_t)0x000FF000)) | ((uint32_t)cca40sfallthrdbm << 12));
15066 }
15067
15068 /**
15069 * @brief Returns the current value of the CCA40SRISETHRDBM field in the RWNXAGCCCA3 register.
15070 *
15071 * The RWNXAGCCCA3 register will be read and the CCA40SRISETHRDBM field's value will be returned.
15072 *
15073 * @return The current value of the CCA40SRISETHRDBM field in the RWNXAGCCCA3 register.
15074 */
riu_cca40srisethrdbm_getf(void)15075 __INLINE uint8_t riu_cca40srisethrdbm_getf(void)
15076 {
15077 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXAGCCCA3_ADDR);
15078 return ((localVal & ((uint32_t)0x000000FF)) >> 0);
15079 }
15080
15081 /**
15082 * @brief Sets the CCA40SRISETHRDBM field of the RWNXAGCCCA3 register.
15083 *
15084 * The RWNXAGCCCA3 register will be read, modified to contain the new field value, and written.
15085 *
15086 * @param[in] cca40srisethrdbm - The value to set the field to.
15087 */
riu_cca40srisethrdbm_setf(uint8_t cca40srisethrdbm)15088 __INLINE void riu_cca40srisethrdbm_setf(uint8_t cca40srisethrdbm)
15089 {
15090 PLATFORM_REG_WRITE(RIU_RWNXAGCCCA3_ADDR, (PLATFORM_REG_READ(RIU_RWNXAGCCCA3_ADDR) & ~((uint32_t)0x000000FF)) | ((uint32_t)cca40srisethrdbm << 0));
15091 }
15092
15093 /// @}
15094
15095 /**
15096 * @name RWNXMACINTEN register definitions
15097 * <table>
15098 * <caption id="RWNXMACINTEN_BF">RWNXMACINTEN bitfields</caption>
15099 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
15100 * <tr><td>12 <td> IRQMACRADARDETEN <td>R <td>R/W <td>0
15101 * <tr><td>08 <td>IRQMACCCATIMEOUTEN <td>R <td>R/W <td>0
15102 * </table>
15103 *
15104 * @{
15105 */
15106
15107 /// Address of the RWNXMACINTEN register
15108 #define RIU_RWNXMACINTEN_ADDR 0x4033B414
15109 /// Offset of the RWNXMACINTEN register from the base address
15110 #define RIU_RWNXMACINTEN_OFFSET 0x00000414
15111 /// Index of the RWNXMACINTEN register
15112 #define RIU_RWNXMACINTEN_INDEX 0x00000105
15113 /// Reset value of the RWNXMACINTEN register
15114 #define RIU_RWNXMACINTEN_RESET 0x00000000
15115
15116 /**
15117 * @brief Returns the current value of the RWNXMACINTEN register.
15118 * The RWNXMACINTEN register will be read and its value returned.
15119 * @return The current value of the RWNXMACINTEN register.
15120 */
riu_rwnxmacinten_get(void)15121 __INLINE uint32_t riu_rwnxmacinten_get(void)
15122 {
15123 return PLATFORM_REG_READ(RIU_RWNXMACINTEN_ADDR);
15124 }
15125
15126 /**
15127 * @brief Sets the RWNXMACINTEN register to a value.
15128 * The RWNXMACINTEN register will be written.
15129 * @param value - The value to write.
15130 */
riu_rwnxmacinten_set(uint32_t value)15131 __INLINE void riu_rwnxmacinten_set(uint32_t value)
15132 {
15133 PLATFORM_REG_WRITE(RIU_RWNXMACINTEN_ADDR, value);
15134 }
15135
15136 // field definitions
15137 /// IRQMACRADARDETEN field bit
15138 #define RIU_IRQMACRADARDETEN_BIT ((uint32_t)0x00001000)
15139 /// IRQMACRADARDETEN field position
15140 #define RIU_IRQMACRADARDETEN_POS 12
15141 /// IRQMACCCATIMEOUTEN field bit
15142 #define RIU_IRQMACCCATIMEOUTEN_BIT ((uint32_t)0x00000100)
15143 /// IRQMACCCATIMEOUTEN field position
15144 #define RIU_IRQMACCCATIMEOUTEN_POS 8
15145
15146 /// IRQMACRADARDETEN field reset value
15147 #define RIU_IRQMACRADARDETEN_RST 0x0
15148 /// IRQMACCCATIMEOUTEN field reset value
15149 #define RIU_IRQMACCCATIMEOUTEN_RST 0x0
15150
15151 /**
15152 * @brief Constructs a value for the RWNXMACINTEN register given values for its fields
15153 * and writes the value to the register.
15154 *
15155 * @param[in] irqmacradardeten - The value to use for the IRQMACRADARDETEN field.
15156 * @param[in] irqmacccatimeouten - The value to use for the IRQMACCCATIMEOUTEN field.
15157 */
riu_rwnxmacinten_pack(uint8_t irqmacradardeten,uint8_t irqmacccatimeouten)15158 __INLINE void riu_rwnxmacinten_pack(uint8_t irqmacradardeten, uint8_t irqmacccatimeouten)
15159 {
15160 PLATFORM_REG_WRITE(RIU_RWNXMACINTEN_ADDR, ((uint32_t)irqmacradardeten << 12) | ((uint32_t)irqmacccatimeouten << 8));
15161 }
15162
15163 /**
15164 * @brief Unpacks RWNXMACINTEN's fields from current value of the RWNXMACINTEN register.
15165 *
15166 * Reads the RWNXMACINTEN register and populates all the _field variables with the corresponding
15167 * values from the register.
15168 *
15169 * @param[out] irqmacradardeten - Will be populated with the current value of this field from the register.
15170 * @param[out] irqmacccatimeouten - Will be populated with the current value of this field from the register.
15171 */
riu_rwnxmacinten_unpack(uint8_t * irqmacradardeten,uint8_t * irqmacccatimeouten)15172 __INLINE void riu_rwnxmacinten_unpack(uint8_t* irqmacradardeten, uint8_t* irqmacccatimeouten)
15173 {
15174 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTEN_ADDR);
15175
15176 *irqmacradardeten = (localVal & ((uint32_t)0x00001000)) >> 12;
15177 *irqmacccatimeouten = (localVal & ((uint32_t)0x00000100)) >> 8;
15178 }
15179
15180 /**
15181 * @brief Returns the current value of the IRQMACRADARDETEN field in the RWNXMACINTEN register.
15182 *
15183 * The RWNXMACINTEN register will be read and the IRQMACRADARDETEN field's value will be returned.
15184 *
15185 * @return The current value of the IRQMACRADARDETEN field in the RWNXMACINTEN register.
15186 */
riu_irqmacradardeten_getf(void)15187 __INLINE uint8_t riu_irqmacradardeten_getf(void)
15188 {
15189 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTEN_ADDR);
15190 return ((localVal & ((uint32_t)0x00001000)) >> 12);
15191 }
15192
15193 /**
15194 * @brief Sets the IRQMACRADARDETEN field of the RWNXMACINTEN register.
15195 *
15196 * The RWNXMACINTEN register will be read, modified to contain the new field value, and written.
15197 *
15198 * @param[in] irqmacradardeten - The value to set the field to.
15199 */
riu_irqmacradardeten_setf(uint8_t irqmacradardeten)15200 __INLINE void riu_irqmacradardeten_setf(uint8_t irqmacradardeten)
15201 {
15202 PLATFORM_REG_WRITE(RIU_RWNXMACINTEN_ADDR, (PLATFORM_REG_READ(RIU_RWNXMACINTEN_ADDR) & ~((uint32_t)0x00001000)) | ((uint32_t)irqmacradardeten << 12));
15203 }
15204
15205 /**
15206 * @brief Returns the current value of the IRQMACCCATIMEOUTEN field in the RWNXMACINTEN register.
15207 *
15208 * The RWNXMACINTEN register will be read and the IRQMACCCATIMEOUTEN field's value will be returned.
15209 *
15210 * @return The current value of the IRQMACCCATIMEOUTEN field in the RWNXMACINTEN register.
15211 */
riu_irqmacccatimeouten_getf(void)15212 __INLINE uint8_t riu_irqmacccatimeouten_getf(void)
15213 {
15214 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTEN_ADDR);
15215 return ((localVal & ((uint32_t)0x00000100)) >> 8);
15216 }
15217
15218 /**
15219 * @brief Sets the IRQMACCCATIMEOUTEN field of the RWNXMACINTEN register.
15220 *
15221 * The RWNXMACINTEN register will be read, modified to contain the new field value, and written.
15222 *
15223 * @param[in] irqmacccatimeouten - The value to set the field to.
15224 */
riu_irqmacccatimeouten_setf(uint8_t irqmacccatimeouten)15225 __INLINE void riu_irqmacccatimeouten_setf(uint8_t irqmacccatimeouten)
15226 {
15227 PLATFORM_REG_WRITE(RIU_RWNXMACINTEN_ADDR, (PLATFORM_REG_READ(RIU_RWNXMACINTEN_ADDR) & ~((uint32_t)0x00000100)) | ((uint32_t)irqmacccatimeouten << 8));
15228 }
15229
15230 /// @}
15231
15232 /**
15233 * @name RWNXMACINTSTATRAW register definitions
15234 * <table>
15235 * <caption id="RWNXMACINTSTATRAW_BF">RWNXMACINTSTATRAW bitfields</caption>
15236 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
15237 * <tr><td>12 <td> IRQMACRADARDETRAW <td>W <td>R <td>0
15238 * <tr><td>08 <td>IRQMACCCATIMEOUTRAW <td>W <td>R <td>0
15239 * </table>
15240 *
15241 * @{
15242 */
15243
15244 /// Address of the RWNXMACINTSTATRAW register
15245 #define RIU_RWNXMACINTSTATRAW_ADDR 0x4033B418
15246 /// Offset of the RWNXMACINTSTATRAW register from the base address
15247 #define RIU_RWNXMACINTSTATRAW_OFFSET 0x00000418
15248 /// Index of the RWNXMACINTSTATRAW register
15249 #define RIU_RWNXMACINTSTATRAW_INDEX 0x00000106
15250 /// Reset value of the RWNXMACINTSTATRAW register
15251 #define RIU_RWNXMACINTSTATRAW_RESET 0x00000000
15252
15253 /**
15254 * @brief Returns the current value of the RWNXMACINTSTATRAW register.
15255 * The RWNXMACINTSTATRAW register will be read and its value returned.
15256 * @return The current value of the RWNXMACINTSTATRAW register.
15257 */
riu_rwnxmacintstatraw_get(void)15258 __INLINE uint32_t riu_rwnxmacintstatraw_get(void)
15259 {
15260 return PLATFORM_REG_READ(RIU_RWNXMACINTSTATRAW_ADDR);
15261 }
15262
15263 // field definitions
15264 /// IRQMACRADARDETRAW field bit
15265 #define RIU_IRQMACRADARDETRAW_BIT ((uint32_t)0x00001000)
15266 /// IRQMACRADARDETRAW field position
15267 #define RIU_IRQMACRADARDETRAW_POS 12
15268 /// IRQMACCCATIMEOUTRAW field bit
15269 #define RIU_IRQMACCCATIMEOUTRAW_BIT ((uint32_t)0x00000100)
15270 /// IRQMACCCATIMEOUTRAW field position
15271 #define RIU_IRQMACCCATIMEOUTRAW_POS 8
15272
15273 /// IRQMACRADARDETRAW field reset value
15274 #define RIU_IRQMACRADARDETRAW_RST 0x0
15275 /// IRQMACCCATIMEOUTRAW field reset value
15276 #define RIU_IRQMACCCATIMEOUTRAW_RST 0x0
15277
15278 /**
15279 * @brief Unpacks RWNXMACINTSTATRAW's fields from current value of the RWNXMACINTSTATRAW register.
15280 *
15281 * Reads the RWNXMACINTSTATRAW register and populates all the _field variables with the corresponding
15282 * values from the register.
15283 *
15284 * @param[out] irqmacradardetraw - Will be populated with the current value of this field from the register.
15285 * @param[out] irqmacccatimeoutraw - Will be populated with the current value of this field from the register.
15286 */
riu_rwnxmacintstatraw_unpack(uint8_t * irqmacradardetraw,uint8_t * irqmacccatimeoutraw)15287 __INLINE void riu_rwnxmacintstatraw_unpack(uint8_t* irqmacradardetraw, uint8_t* irqmacccatimeoutraw)
15288 {
15289 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTSTATRAW_ADDR);
15290
15291 *irqmacradardetraw = (localVal & ((uint32_t)0x00001000)) >> 12;
15292 *irqmacccatimeoutraw = (localVal & ((uint32_t)0x00000100)) >> 8;
15293 }
15294
15295 /**
15296 * @brief Returns the current value of the IRQMACRADARDETRAW field in the RWNXMACINTSTATRAW register.
15297 *
15298 * The RWNXMACINTSTATRAW register will be read and the IRQMACRADARDETRAW field's value will be returned.
15299 *
15300 * @return The current value of the IRQMACRADARDETRAW field in the RWNXMACINTSTATRAW register.
15301 */
riu_irqmacradardetraw_getf(void)15302 __INLINE uint8_t riu_irqmacradardetraw_getf(void)
15303 {
15304 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTSTATRAW_ADDR);
15305 return ((localVal & ((uint32_t)0x00001000)) >> 12);
15306 }
15307
15308 /**
15309 * @brief Returns the current value of the IRQMACCCATIMEOUTRAW field in the RWNXMACINTSTATRAW register.
15310 *
15311 * The RWNXMACINTSTATRAW register will be read and the IRQMACCCATIMEOUTRAW field's value will be returned.
15312 *
15313 * @return The current value of the IRQMACCCATIMEOUTRAW field in the RWNXMACINTSTATRAW register.
15314 */
riu_irqmacccatimeoutraw_getf(void)15315 __INLINE uint8_t riu_irqmacccatimeoutraw_getf(void)
15316 {
15317 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTSTATRAW_ADDR);
15318 return ((localVal & ((uint32_t)0x00000100)) >> 8);
15319 }
15320
15321 /// @}
15322
15323 /**
15324 * @name RWNXMACINTSTATMASKED register definitions
15325 * <table>
15326 * <caption id="RWNXMACINTSTATMASKED_BF">RWNXMACINTSTATMASKED bitfields</caption>
15327 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
15328 * <tr><td>12 <td>IRQMACRADARDETMASKED <td>W <td>R <td>0
15329 * <tr><td>08 <td>IRQMACCCATIMEOUTMASKED <td>W <td>R <td>0
15330 * </table>
15331 *
15332 * @{
15333 */
15334
15335 /// Address of the RWNXMACINTSTATMASKED register
15336 #define RIU_RWNXMACINTSTATMASKED_ADDR 0x4033B41C
15337 /// Offset of the RWNXMACINTSTATMASKED register from the base address
15338 #define RIU_RWNXMACINTSTATMASKED_OFFSET 0x0000041C
15339 /// Index of the RWNXMACINTSTATMASKED register
15340 #define RIU_RWNXMACINTSTATMASKED_INDEX 0x00000107
15341 /// Reset value of the RWNXMACINTSTATMASKED register
15342 #define RIU_RWNXMACINTSTATMASKED_RESET 0x00000000
15343
15344 /**
15345 * @brief Returns the current value of the RWNXMACINTSTATMASKED register.
15346 * The RWNXMACINTSTATMASKED register will be read and its value returned.
15347 * @return The current value of the RWNXMACINTSTATMASKED register.
15348 */
riu_rwnxmacintstatmasked_get(void)15349 __INLINE uint32_t riu_rwnxmacintstatmasked_get(void)
15350 {
15351 return PLATFORM_REG_READ(RIU_RWNXMACINTSTATMASKED_ADDR);
15352 }
15353
15354 // field definitions
15355 /// IRQMACRADARDETMASKED field bit
15356 #define RIU_IRQMACRADARDETMASKED_BIT ((uint32_t)0x00001000)
15357 /// IRQMACRADARDETMASKED field position
15358 #define RIU_IRQMACRADARDETMASKED_POS 12
15359 /// IRQMACCCATIMEOUTMASKED field bit
15360 #define RIU_IRQMACCCATIMEOUTMASKED_BIT ((uint32_t)0x00000100)
15361 /// IRQMACCCATIMEOUTMASKED field position
15362 #define RIU_IRQMACCCATIMEOUTMASKED_POS 8
15363
15364 /// IRQMACRADARDETMASKED field reset value
15365 #define RIU_IRQMACRADARDETMASKED_RST 0x0
15366 /// IRQMACCCATIMEOUTMASKED field reset value
15367 #define RIU_IRQMACCCATIMEOUTMASKED_RST 0x0
15368
15369 /**
15370 * @brief Unpacks RWNXMACINTSTATMASKED's fields from current value of the RWNXMACINTSTATMASKED register.
15371 *
15372 * Reads the RWNXMACINTSTATMASKED register and populates all the _field variables with the corresponding
15373 * values from the register.
15374 *
15375 * @param[out] irqmacradardetmasked - Will be populated with the current value of this field from the register.
15376 * @param[out] irqmacccatimeoutmasked - Will be populated with the current value of this field from the register.
15377 */
riu_rwnxmacintstatmasked_unpack(uint8_t * irqmacradardetmasked,uint8_t * irqmacccatimeoutmasked)15378 __INLINE void riu_rwnxmacintstatmasked_unpack(uint8_t* irqmacradardetmasked, uint8_t* irqmacccatimeoutmasked)
15379 {
15380 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTSTATMASKED_ADDR);
15381
15382 *irqmacradardetmasked = (localVal & ((uint32_t)0x00001000)) >> 12;
15383 *irqmacccatimeoutmasked = (localVal & ((uint32_t)0x00000100)) >> 8;
15384 }
15385
15386 /**
15387 * @brief Returns the current value of the IRQMACRADARDETMASKED field in the RWNXMACINTSTATMASKED register.
15388 *
15389 * The RWNXMACINTSTATMASKED register will be read and the IRQMACRADARDETMASKED field's value will be returned.
15390 *
15391 * @return The current value of the IRQMACRADARDETMASKED field in the RWNXMACINTSTATMASKED register.
15392 */
riu_irqmacradardetmasked_getf(void)15393 __INLINE uint8_t riu_irqmacradardetmasked_getf(void)
15394 {
15395 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTSTATMASKED_ADDR);
15396 return ((localVal & ((uint32_t)0x00001000)) >> 12);
15397 }
15398
15399 /**
15400 * @brief Returns the current value of the IRQMACCCATIMEOUTMASKED field in the RWNXMACINTSTATMASKED register.
15401 *
15402 * The RWNXMACINTSTATMASKED register will be read and the IRQMACCCATIMEOUTMASKED field's value will be returned.
15403 *
15404 * @return The current value of the IRQMACCCATIMEOUTMASKED field in the RWNXMACINTSTATMASKED register.
15405 */
riu_irqmacccatimeoutmasked_getf(void)15406 __INLINE uint8_t riu_irqmacccatimeoutmasked_getf(void)
15407 {
15408 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTSTATMASKED_ADDR);
15409 return ((localVal & ((uint32_t)0x00000100)) >> 8);
15410 }
15411
15412 /// @}
15413
15414 /**
15415 * @name RWNXMACINTACK register definitions
15416 * <table>
15417 * <caption id="RWNXMACINTACK_BF">RWNXMACINTACK bitfields</caption>
15418 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
15419 * <tr><td>12 <td> IRQMACRADARDETACK <td>R <td>C <td>0
15420 * <tr><td>08 <td>IRQMACCCATIMEOUTACK <td>R <td>C <td>0
15421 * </table>
15422 *
15423 * @{
15424 */
15425
15426 /// Address of the RWNXMACINTACK register
15427 #define RIU_RWNXMACINTACK_ADDR 0x4033B420
15428 /// Offset of the RWNXMACINTACK register from the base address
15429 #define RIU_RWNXMACINTACK_OFFSET 0x00000420
15430 /// Index of the RWNXMACINTACK register
15431 #define RIU_RWNXMACINTACK_INDEX 0x00000108
15432 /// Reset value of the RWNXMACINTACK register
15433 #define RIU_RWNXMACINTACK_RESET 0x00000000
15434
15435 /**
15436 * @brief Returns the current value of the RWNXMACINTACK register.
15437 * The RWNXMACINTACK register will be read and its value returned.
15438 * @return The current value of the RWNXMACINTACK register.
15439 */
riu_rwnxmacintack_get(void)15440 __INLINE uint32_t riu_rwnxmacintack_get(void)
15441 {
15442 return PLATFORM_REG_READ(RIU_RWNXMACINTACK_ADDR);
15443 }
15444
15445 /**
15446 * @brief Sets the RWNXMACINTACK register to a value.
15447 * The RWNXMACINTACK register will be written.
15448 * @param value - The value to write.
15449 */
riu_rwnxmacintack_clear(uint32_t value)15450 __INLINE void riu_rwnxmacintack_clear(uint32_t value)
15451 {
15452 PLATFORM_REG_WRITE(RIU_RWNXMACINTACK_ADDR, value);
15453 }
15454
15455 // field definitions
15456 /// IRQMACRADARDETACK field bit
15457 #define RIU_IRQMACRADARDETACK_BIT ((uint32_t)0x00001000)
15458 /// IRQMACRADARDETACK field position
15459 #define RIU_IRQMACRADARDETACK_POS 12
15460 /// IRQMACCCATIMEOUTACK field bit
15461 #define RIU_IRQMACCCATIMEOUTACK_BIT ((uint32_t)0x00000100)
15462 /// IRQMACCCATIMEOUTACK field position
15463 #define RIU_IRQMACCCATIMEOUTACK_POS 8
15464
15465 /// IRQMACRADARDETACK field reset value
15466 #define RIU_IRQMACRADARDETACK_RST 0x0
15467 /// IRQMACCCATIMEOUTACK field reset value
15468 #define RIU_IRQMACCCATIMEOUTACK_RST 0x0
15469
15470 /**
15471 * @brief Constructs a value for the RWNXMACINTACK register given values for its fields
15472 * and writes the value to the register.
15473 *
15474 * @param[in] irqmacradardetack - The value to use for the IRQMACRADARDETACK field.
15475 * @param[in] irqmacccatimeoutack - The value to use for the IRQMACCCATIMEOUTACK field.
15476 */
riu_rwnxmacintack_pack(uint8_t irqmacradardetack,uint8_t irqmacccatimeoutack)15477 __INLINE void riu_rwnxmacintack_pack(uint8_t irqmacradardetack, uint8_t irqmacccatimeoutack)
15478 {
15479 PLATFORM_REG_WRITE(RIU_RWNXMACINTACK_ADDR, ((uint32_t)irqmacradardetack << 12) | ((uint32_t)irqmacccatimeoutack << 8));
15480 }
15481
15482 /**
15483 * @brief Unpacks RWNXMACINTACK's fields from current value of the RWNXMACINTACK register.
15484 *
15485 * Reads the RWNXMACINTACK register and populates all the _field variables with the corresponding
15486 * values from the register.
15487 *
15488 * @param[out] irqmacradardetack - Will be populated with the current value of this field from the register.
15489 * @param[out] irqmacccatimeoutack - Will be populated with the current value of this field from the register.
15490 */
riu_rwnxmacintack_unpack(uint8_t * irqmacradardetack,uint8_t * irqmacccatimeoutack)15491 __INLINE void riu_rwnxmacintack_unpack(uint8_t* irqmacradardetack, uint8_t* irqmacccatimeoutack)
15492 {
15493 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTACK_ADDR);
15494
15495 *irqmacradardetack = (localVal & ((uint32_t)0x00001000)) >> 12;
15496 *irqmacccatimeoutack = (localVal & ((uint32_t)0x00000100)) >> 8;
15497 }
15498
15499 /**
15500 * @brief Returns the current value of the IRQMACRADARDETACK field in the RWNXMACINTACK register.
15501 *
15502 * The RWNXMACINTACK register will be read and the IRQMACRADARDETACK field's value will be returned.
15503 *
15504 * @return The current value of the IRQMACRADARDETACK field in the RWNXMACINTACK register.
15505 */
riu_irqmacradardetack_getf(void)15506 __INLINE uint8_t riu_irqmacradardetack_getf(void)
15507 {
15508 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTACK_ADDR);
15509 return ((localVal & ((uint32_t)0x00001000)) >> 12);
15510 }
15511
15512 /**
15513 * @brief Sets the IRQMACRADARDETACK field of the RWNXMACINTACK register.
15514 *
15515 * The RWNXMACINTACK register will be read, modified to contain the new field value, and written.
15516 *
15517 * @param[in] irqmacradardetack - The value to set the field to.
15518 */
riu_irqmacradardetack_clearf(uint8_t irqmacradardetack)15519 __INLINE void riu_irqmacradardetack_clearf(uint8_t irqmacradardetack)
15520 {
15521 PLATFORM_REG_WRITE(RIU_RWNXMACINTACK_ADDR, (uint32_t)irqmacradardetack << 12);
15522 }
15523
15524 /**
15525 * @brief Returns the current value of the IRQMACCCATIMEOUTACK field in the RWNXMACINTACK register.
15526 *
15527 * The RWNXMACINTACK register will be read and the IRQMACCCATIMEOUTACK field's value will be returned.
15528 *
15529 * @return The current value of the IRQMACCCATIMEOUTACK field in the RWNXMACINTACK register.
15530 */
riu_irqmacccatimeoutack_getf(void)15531 __INLINE uint8_t riu_irqmacccatimeoutack_getf(void)
15532 {
15533 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTACK_ADDR);
15534 return ((localVal & ((uint32_t)0x00000100)) >> 8);
15535 }
15536
15537 /**
15538 * @brief Sets the IRQMACCCATIMEOUTACK field of the RWNXMACINTACK register.
15539 *
15540 * The RWNXMACINTACK register will be read, modified to contain the new field value, and written.
15541 *
15542 * @param[in] irqmacccatimeoutack - The value to set the field to.
15543 */
riu_irqmacccatimeoutack_clearf(uint8_t irqmacccatimeoutack)15544 __INLINE void riu_irqmacccatimeoutack_clearf(uint8_t irqmacccatimeoutack)
15545 {
15546 PLATFORM_REG_WRITE(RIU_RWNXMACINTACK_ADDR, (uint32_t)irqmacccatimeoutack << 8);
15547 }
15548
15549 /// @}
15550
15551 /**
15552 * @name RWNXMACINTGEN register definitions
15553 * <table>
15554 * <caption id="RWNXMACINTGEN_BF">RWNXMACINTGEN bitfields</caption>
15555 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
15556 * <tr><td>12 <td> IRQMACRADARDETGEN <td>R <td>S <td>0
15557 * <tr><td>08 <td>IRQMACCCATIMEOUTGEN <td>R <td>S <td>0
15558 * </table>
15559 *
15560 * @{
15561 */
15562
15563 /// Address of the RWNXMACINTGEN register
15564 #define RIU_RWNXMACINTGEN_ADDR 0x4033B424
15565 /// Offset of the RWNXMACINTGEN register from the base address
15566 #define RIU_RWNXMACINTGEN_OFFSET 0x00000424
15567 /// Index of the RWNXMACINTGEN register
15568 #define RIU_RWNXMACINTGEN_INDEX 0x00000109
15569 /// Reset value of the RWNXMACINTGEN register
15570 #define RIU_RWNXMACINTGEN_RESET 0x00000000
15571
15572 /**
15573 * @brief Returns the current value of the RWNXMACINTGEN register.
15574 * The RWNXMACINTGEN register will be read and its value returned.
15575 * @return The current value of the RWNXMACINTGEN register.
15576 */
riu_rwnxmacintgen_get(void)15577 __INLINE uint32_t riu_rwnxmacintgen_get(void)
15578 {
15579 return PLATFORM_REG_READ(RIU_RWNXMACINTGEN_ADDR);
15580 }
15581
15582 /**
15583 * @brief Sets the RWNXMACINTGEN register to a value.
15584 * The RWNXMACINTGEN register will be written.
15585 * @param value - The value to write.
15586 */
riu_rwnxmacintgen_set(uint32_t value)15587 __INLINE void riu_rwnxmacintgen_set(uint32_t value)
15588 {
15589 PLATFORM_REG_WRITE(RIU_RWNXMACINTGEN_ADDR, value);
15590 }
15591
15592 // field definitions
15593 /// IRQMACRADARDETGEN field bit
15594 #define RIU_IRQMACRADARDETGEN_BIT ((uint32_t)0x00001000)
15595 /// IRQMACRADARDETGEN field position
15596 #define RIU_IRQMACRADARDETGEN_POS 12
15597 /// IRQMACCCATIMEOUTGEN field bit
15598 #define RIU_IRQMACCCATIMEOUTGEN_BIT ((uint32_t)0x00000100)
15599 /// IRQMACCCATIMEOUTGEN field position
15600 #define RIU_IRQMACCCATIMEOUTGEN_POS 8
15601
15602 /// IRQMACRADARDETGEN field reset value
15603 #define RIU_IRQMACRADARDETGEN_RST 0x0
15604 /// IRQMACCCATIMEOUTGEN field reset value
15605 #define RIU_IRQMACCCATIMEOUTGEN_RST 0x0
15606
15607 /**
15608 * @brief Constructs a value for the RWNXMACINTGEN register given values for its fields
15609 * and writes the value to the register.
15610 *
15611 * @param[in] irqmacradardetgen - The value to use for the IRQMACRADARDETGEN field.
15612 * @param[in] irqmacccatimeoutgen - The value to use for the IRQMACCCATIMEOUTGEN field.
15613 */
riu_rwnxmacintgen_pack(uint8_t irqmacradardetgen,uint8_t irqmacccatimeoutgen)15614 __INLINE void riu_rwnxmacintgen_pack(uint8_t irqmacradardetgen, uint8_t irqmacccatimeoutgen)
15615 {
15616 PLATFORM_REG_WRITE(RIU_RWNXMACINTGEN_ADDR, ((uint32_t)irqmacradardetgen << 12) | ((uint32_t)irqmacccatimeoutgen << 8));
15617 }
15618
15619 /**
15620 * @brief Unpacks RWNXMACINTGEN's fields from current value of the RWNXMACINTGEN register.
15621 *
15622 * Reads the RWNXMACINTGEN register and populates all the _field variables with the corresponding
15623 * values from the register.
15624 *
15625 * @param[out] irqmacradardetgen - Will be populated with the current value of this field from the register.
15626 * @param[out] irqmacccatimeoutgen - Will be populated with the current value of this field from the register.
15627 */
riu_rwnxmacintgen_unpack(uint8_t * irqmacradardetgen,uint8_t * irqmacccatimeoutgen)15628 __INLINE void riu_rwnxmacintgen_unpack(uint8_t* irqmacradardetgen, uint8_t* irqmacccatimeoutgen)
15629 {
15630 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTGEN_ADDR);
15631
15632 *irqmacradardetgen = (localVal & ((uint32_t)0x00001000)) >> 12;
15633 *irqmacccatimeoutgen = (localVal & ((uint32_t)0x00000100)) >> 8;
15634 }
15635
15636 /**
15637 * @brief Returns the current value of the IRQMACRADARDETGEN field in the RWNXMACINTGEN register.
15638 *
15639 * The RWNXMACINTGEN register will be read and the IRQMACRADARDETGEN field's value will be returned.
15640 *
15641 * @return The current value of the IRQMACRADARDETGEN field in the RWNXMACINTGEN register.
15642 */
riu_irqmacradardetgen_getf(void)15643 __INLINE uint8_t riu_irqmacradardetgen_getf(void)
15644 {
15645 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTGEN_ADDR);
15646 return ((localVal & ((uint32_t)0x00001000)) >> 12);
15647 }
15648
15649 /**
15650 * @brief Sets the IRQMACRADARDETGEN field of the RWNXMACINTGEN register.
15651 *
15652 * The RWNXMACINTGEN register will be read, modified to contain the new field value, and written.
15653 *
15654 * @param[in] irqmacradardetgen - The value to set the field to.
15655 */
riu_irqmacradardetgen_setf(uint8_t irqmacradardetgen)15656 __INLINE void riu_irqmacradardetgen_setf(uint8_t irqmacradardetgen)
15657 {
15658 PLATFORM_REG_WRITE(RIU_RWNXMACINTGEN_ADDR, (uint32_t)irqmacradardetgen << 12);
15659 }
15660
15661 /**
15662 * @brief Returns the current value of the IRQMACCCATIMEOUTGEN field in the RWNXMACINTGEN register.
15663 *
15664 * The RWNXMACINTGEN register will be read and the IRQMACCCATIMEOUTGEN field's value will be returned.
15665 *
15666 * @return The current value of the IRQMACCCATIMEOUTGEN field in the RWNXMACINTGEN register.
15667 */
riu_irqmacccatimeoutgen_getf(void)15668 __INLINE uint8_t riu_irqmacccatimeoutgen_getf(void)
15669 {
15670 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXMACINTGEN_ADDR);
15671 return ((localVal & ((uint32_t)0x00000100)) >> 8);
15672 }
15673
15674 /**
15675 * @brief Sets the IRQMACCCATIMEOUTGEN field of the RWNXMACINTGEN register.
15676 *
15677 * The RWNXMACINTGEN register will be read, modified to contain the new field value, and written.
15678 *
15679 * @param[in] irqmacccatimeoutgen - The value to set the field to.
15680 */
riu_irqmacccatimeoutgen_setf(uint8_t irqmacccatimeoutgen)15681 __INLINE void riu_irqmacccatimeoutgen_setf(uint8_t irqmacccatimeoutgen)
15682 {
15683 PLATFORM_REG_WRITE(RIU_RWNXMACINTGEN_ADDR, (uint32_t)irqmacccatimeoutgen << 8);
15684 }
15685
15686 /// @}
15687
15688 #if RW_NX_DERIV_80211B
15689 /**
15690 * @name RWNXFEDSSSCCKCNTL register definitions
15691 * <table>
15692 * <caption id="RWNXFEDSSSCCKCNTL_BF">RWNXFEDSSSCCKCNTL bitfields</caption>
15693 * <tr><th>Bits <th>Field Name <th>HW Access <th>SW Access <th>Reset Value
15694 * <tr><td>18:16 <td> RXSHIFT4044 <td>R <td>R/W <td>0x4
15695 * <tr><td>13:12 <td> TXSHIFT4044 <td>R <td>R/W <td>0x1
15696 * <tr><td>06:05 <td> BRXPATHSELREG <td>R <td>R/W <td>0x0
15697 * <tr><td>04 <td> RXPATHSELFROMREG <td>R <td>R/W <td>1
15698 * </table>
15699 *
15700 * @{
15701 */
15702
15703 /// Address of the RWNXFEDSSSCCKCNTL register
15704 #define RIU_RWNXFEDSSSCCKCNTL_ADDR 0x4033B500
15705 /// Offset of the RWNXFEDSSSCCKCNTL register from the base address
15706 #define RIU_RWNXFEDSSSCCKCNTL_OFFSET 0x00000500
15707 /// Index of the RWNXFEDSSSCCKCNTL register
15708 #define RIU_RWNXFEDSSSCCKCNTL_INDEX 0x00000140
15709 /// Reset value of the RWNXFEDSSSCCKCNTL register
15710 #define RIU_RWNXFEDSSSCCKCNTL_RESET 0x00041010
15711
15712 /**
15713 * @brief Returns the current value of the RWNXFEDSSSCCKCNTL register.
15714 * The RWNXFEDSSSCCKCNTL register will be read and its value returned.
15715 * @return The current value of the RWNXFEDSSSCCKCNTL register.
15716 */
riu_rwnxfedssscckcntl_get(void)15717 __INLINE uint32_t riu_rwnxfedssscckcntl_get(void)
15718 {
15719 return PLATFORM_REG_READ(RIU_RWNXFEDSSSCCKCNTL_ADDR);
15720 }
15721
15722 /**
15723 * @brief Sets the RWNXFEDSSSCCKCNTL register to a value.
15724 * The RWNXFEDSSSCCKCNTL register will be written.
15725 * @param value - The value to write.
15726 */
riu_rwnxfedssscckcntl_set(uint32_t value)15727 __INLINE void riu_rwnxfedssscckcntl_set(uint32_t value)
15728 {
15729 PLATFORM_REG_WRITE(RIU_RWNXFEDSSSCCKCNTL_ADDR, value);
15730 }
15731
15732 // field definitions
15733 /// RXSHIFT4044 field mask
15734 #define RIU_RXSHIFT4044_MASK ((uint32_t)0x00070000)
15735 /// RXSHIFT4044 field LSB position
15736 #define RIU_RXSHIFT4044_LSB 16
15737 /// RXSHIFT4044 field width
15738 #define RIU_RXSHIFT4044_WIDTH ((uint32_t)0x00000003)
15739 /// TXSHIFT4044 field mask
15740 #define RIU_TXSHIFT4044_MASK ((uint32_t)0x00003000)
15741 /// TXSHIFT4044 field LSB position
15742 #define RIU_TXSHIFT4044_LSB 12
15743 /// TXSHIFT4044 field width
15744 #define RIU_TXSHIFT4044_WIDTH ((uint32_t)0x00000002)
15745 /// BRXPATHSELREG field mask
15746 #define RIU_BRXPATHSELREG_MASK ((uint32_t)0x00000060)
15747 /// BRXPATHSELREG field LSB position
15748 #define RIU_BRXPATHSELREG_LSB 5
15749 /// BRXPATHSELREG field width
15750 #define RIU_BRXPATHSELREG_WIDTH ((uint32_t)0x00000002)
15751 /// RXPATHSELFROMREG field bit
15752 #define RIU_RXPATHSELFROMREG_BIT ((uint32_t)0x00000010)
15753 /// RXPATHSELFROMREG field position
15754 #define RIU_RXPATHSELFROMREG_POS 4
15755
15756 /// RXSHIFT4044 field reset value
15757 #define RIU_RXSHIFT4044_RST 0x4
15758 /// TXSHIFT4044 field reset value
15759 #define RIU_TXSHIFT4044_RST 0x1
15760 /// BRXPATHSELREG field reset value
15761 #define RIU_BRXPATHSELREG_RST 0x0
15762 /// RXPATHSELFROMREG field reset value
15763 #define RIU_RXPATHSELFROMREG_RST 0x1
15764
15765 /**
15766 * @brief Constructs a value for the RWNXFEDSSSCCKCNTL register given values for its fields
15767 * and writes the value to the register.
15768 *
15769 * @param[in] rxshift4044 - The value to use for the RXSHIFT4044 field.
15770 * @param[in] txshift4044 - The value to use for the TXSHIFT4044 field.
15771 * @param[in] brxpathselreg - The value to use for the BRXPATHSELREG field.
15772 * @param[in] rxpathselfromreg - The value to use for the RXPATHSELFROMREG field.
15773 */
riu_rwnxfedssscckcntl_pack(uint8_t rxshift4044,uint8_t txshift4044,uint8_t brxpathselreg,uint8_t rxpathselfromreg)15774 __INLINE void riu_rwnxfedssscckcntl_pack(uint8_t rxshift4044, uint8_t txshift4044, uint8_t brxpathselreg, uint8_t rxpathselfromreg)
15775 {
15776 PLATFORM_REG_WRITE(RIU_RWNXFEDSSSCCKCNTL_ADDR, ((uint32_t)rxshift4044 << 16) | ((uint32_t)txshift4044 << 12) | ((uint32_t)brxpathselreg << 5) | ((uint32_t)rxpathselfromreg << 4));
15777 }
15778
15779 /**
15780 * @brief Unpacks RWNXFEDSSSCCKCNTL's fields from current value of the RWNXFEDSSSCCKCNTL register.
15781 *
15782 * Reads the RWNXFEDSSSCCKCNTL register and populates all the _field variables with the corresponding
15783 * values from the register.
15784 *
15785 * @param[out] rxshift4044 - Will be populated with the current value of this field from the register.
15786 * @param[out] txshift4044 - Will be populated with the current value of this field from the register.
15787 * @param[out] brxpathselreg - Will be populated with the current value of this field from the register.
15788 * @param[out] rxpathselfromreg - Will be populated with the current value of this field from the register.
15789 */
riu_rwnxfedssscckcntl_unpack(uint8_t * rxshift4044,uint8_t * txshift4044,uint8_t * brxpathselreg,uint8_t * rxpathselfromreg)15790 __INLINE void riu_rwnxfedssscckcntl_unpack(uint8_t* rxshift4044, uint8_t* txshift4044, uint8_t* brxpathselreg, uint8_t* rxpathselfromreg)
15791 {
15792 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEDSSSCCKCNTL_ADDR);
15793
15794 *rxshift4044 = (localVal & ((uint32_t)0x00070000)) >> 16;
15795 *txshift4044 = (localVal & ((uint32_t)0x00003000)) >> 12;
15796 *brxpathselreg = (localVal & ((uint32_t)0x00000060)) >> 5;
15797 *rxpathselfromreg = (localVal & ((uint32_t)0x00000010)) >> 4;
15798 }
15799
15800 /**
15801 * @brief Returns the current value of the RXSHIFT4044 field in the RWNXFEDSSSCCKCNTL register.
15802 *
15803 * The RWNXFEDSSSCCKCNTL register will be read and the RXSHIFT4044 field's value will be returned.
15804 *
15805 * @return The current value of the RXSHIFT4044 field in the RWNXFEDSSSCCKCNTL register.
15806 */
riu_rxshift4044_getf(void)15807 __INLINE uint8_t riu_rxshift4044_getf(void)
15808 {
15809 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEDSSSCCKCNTL_ADDR);
15810 return ((localVal & ((uint32_t)0x00070000)) >> 16);
15811 }
15812
15813 /**
15814 * @brief Sets the RXSHIFT4044 field of the RWNXFEDSSSCCKCNTL register.
15815 *
15816 * The RWNXFEDSSSCCKCNTL register will be read, modified to contain the new field value, and written.
15817 *
15818 * @param[in] rxshift4044 - The value to set the field to.
15819 */
riu_rxshift4044_setf(uint8_t rxshift4044)15820 __INLINE void riu_rxshift4044_setf(uint8_t rxshift4044)
15821 {
15822 PLATFORM_REG_WRITE(RIU_RWNXFEDSSSCCKCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEDSSSCCKCNTL_ADDR) & ~((uint32_t)0x00070000)) | ((uint32_t)rxshift4044 << 16));
15823 }
15824
15825 /**
15826 * @brief Returns the current value of the TXSHIFT4044 field in the RWNXFEDSSSCCKCNTL register.
15827 *
15828 * The RWNXFEDSSSCCKCNTL register will be read and the TXSHIFT4044 field's value will be returned.
15829 *
15830 * @return The current value of the TXSHIFT4044 field in the RWNXFEDSSSCCKCNTL register.
15831 */
riu_txshift4044_getf(void)15832 __INLINE uint8_t riu_txshift4044_getf(void)
15833 {
15834 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEDSSSCCKCNTL_ADDR);
15835 return ((localVal & ((uint32_t)0x00003000)) >> 12);
15836 }
15837
15838 /**
15839 * @brief Sets the TXSHIFT4044 field of the RWNXFEDSSSCCKCNTL register.
15840 *
15841 * The RWNXFEDSSSCCKCNTL register will be read, modified to contain the new field value, and written.
15842 *
15843 * @param[in] txshift4044 - The value to set the field to.
15844 */
riu_txshift4044_setf(uint8_t txshift4044)15845 __INLINE void riu_txshift4044_setf(uint8_t txshift4044)
15846 {
15847 PLATFORM_REG_WRITE(RIU_RWNXFEDSSSCCKCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEDSSSCCKCNTL_ADDR) & ~((uint32_t)0x00003000)) | ((uint32_t)txshift4044 << 12));
15848 }
15849
15850 /**
15851 * @brief Returns the current value of the BRXPATHSELREG field in the RWNXFEDSSSCCKCNTL register.
15852 *
15853 * The RWNXFEDSSSCCKCNTL register will be read and the BRXPATHSELREG field's value will be returned.
15854 *
15855 * @return The current value of the BRXPATHSELREG field in the RWNXFEDSSSCCKCNTL register.
15856 */
riu_brxpathselreg_getf(void)15857 __INLINE uint8_t riu_brxpathselreg_getf(void)
15858 {
15859 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEDSSSCCKCNTL_ADDR);
15860 return ((localVal & ((uint32_t)0x00000060)) >> 5);
15861 }
15862
15863 /**
15864 * @brief Sets the BRXPATHSELREG field of the RWNXFEDSSSCCKCNTL register.
15865 *
15866 * The RWNXFEDSSSCCKCNTL register will be read, modified to contain the new field value, and written.
15867 *
15868 * @param[in] brxpathselreg - The value to set the field to.
15869 */
riu_brxpathselreg_setf(uint8_t brxpathselreg)15870 __INLINE void riu_brxpathselreg_setf(uint8_t brxpathselreg)
15871 {
15872 PLATFORM_REG_WRITE(RIU_RWNXFEDSSSCCKCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEDSSSCCKCNTL_ADDR) & ~((uint32_t)0x00000060)) | ((uint32_t)brxpathselreg << 5));
15873 }
15874
15875 /**
15876 * @brief Returns the current value of the RXPATHSELFROMREG field in the RWNXFEDSSSCCKCNTL register.
15877 *
15878 * The RWNXFEDSSSCCKCNTL register will be read and the RXPATHSELFROMREG field's value will be returned.
15879 *
15880 * @return The current value of the RXPATHSELFROMREG field in the RWNXFEDSSSCCKCNTL register.
15881 */
riu_rxpathselfromreg_getf(void)15882 __INLINE uint8_t riu_rxpathselfromreg_getf(void)
15883 {
15884 uint32_t localVal = PLATFORM_REG_READ(RIU_RWNXFEDSSSCCKCNTL_ADDR);
15885 return ((localVal & ((uint32_t)0x00000010)) >> 4);
15886 }
15887
15888 /**
15889 * @brief Sets the RXPATHSELFROMREG field of the RWNXFEDSSSCCKCNTL register.
15890 *
15891 * The RWNXFEDSSSCCKCNTL register will be read, modified to contain the new field value, and written.
15892 *
15893 * @param[in] rxpathselfromreg - The value to set the field to.
15894 */
riu_rxpathselfromreg_setf(uint8_t rxpathselfromreg)15895 __INLINE void riu_rxpathselfromreg_setf(uint8_t rxpathselfromreg)
15896 {
15897 PLATFORM_REG_WRITE(RIU_RWNXFEDSSSCCKCNTL_ADDR, (PLATFORM_REG_READ(RIU_RWNXFEDSSSCCKCNTL_ADDR) & ~((uint32_t)0x00000010)) | ((uint32_t)rxpathselfromreg << 4));
15898 }
15899
15900 #endif // RW_NX_DERIV_80211B
15901 /// @}
15902
15903
15904 #endif // _REG_RIU_H_
15905
15906 /// @}
15907
15908